Browse Source

苏商还款计划接口优化

liuj 1 month ago
parent
commit
96aa8ef833

+ 2 - 2
src/main/java/com/sunxung/factoring/service/financing/payment/impl/PaymentApplyServiceImpl.java

@@ -984,7 +984,7 @@ public class PaymentApplyServiceImpl extends ServiceImpl<PaymentApplyMapper, Pay
             List<RepayPlanResp.RepayPlan> list = repayPlanResp.getList();
             if (CollectionUtil.isNotEmpty(repayPlanResp.getList())) {
                 for (RepayPlanResp.RepayPlan repayPlan : list) {
-                    if (StringUtils.isNotBlank(repayPlan.getPrcp())) {
+                    if (StringUtils.isNotBlank(repayPlan.getPrcp()) && !"0".equals(repayPlan.getPrcp())) {
                         //本金有值
                         PaymentCollectionPlanRefinancingApi plan = new PaymentCollectionPlanRefinancingApi();
                         //约定日期
@@ -994,7 +994,7 @@ public class PaymentApplyServiceImpl extends ServiceImpl<PaymentApplyMapper, Pay
                         plan.setPayCollType(ConstantConversionUtil.PAY_COLL_COLLECTION);
                         planRefinancingApiList.add(plan);
                     }
-                    if (StringUtils.isNotBlank(repayPlan.getRepayint())) {
+                    if (StringUtils.isNotBlank(repayPlan.getRepayint()) && !"0".equals(repayPlan.getRepayint())) {
                         //利息有值
                         PaymentCollectionPlanRefinancingApi plan = new PaymentCollectionPlanRefinancingApi();
                         //约定日期