ソースを参照

融资申请校验问题修复

liuj 6 ヶ月 前
コミット
b7df24f8cb
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/main/java/com/inkasso/factoring/financingmanagement/service/impl/FinancingApplyServiceImpl.java

+ 1 - 1
src/main/java/com/inkasso/factoring/financingmanagement/service/impl/FinancingApplyServiceImpl.java

@@ -611,7 +611,7 @@ public class FinancingApplyServiceImpl implements FinancingApplyService {
     public PaymentCollectionBasic getViewLatestPlan(Long id) {
 
         CFinancingBasicInfo financingBasicInfo = financingBasicInfoService.getById(id);
-        if (financingBasicInfo != null && financingBasicInfo.getSopAccountsReceivableId() != null) {
+        if (financingBasicInfo != null && financingBasicInfo.getSopAccountsReceivableId() != null && !financingBasicInfo.getSopAccountsReceivableId().equals(0L)) {
             JSONObject jsonObject = restTemplate.getForObject(viewLatestPlanUrl + "?sopAccountsReceivableId=" + financingBasicInfo.getSopAccountsReceivableId(), JSONObject.class);
             Integer code = jsonObject.getInt("code");
             Boolean success = jsonObject.getBool("success");