Pārlūkot izejas kodu

融资申请校验问题修复

liuj 6 mēneši atpakaļ
vecāks
revīzija
b7df24f8cb

+ 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");