Преглед на файлове

fix(苏商银行):账户信息查询修改

liutao преди 1 месец
родител
ревизия
98902d2075
променени са 1 файла, в които са добавени 22 реда и са изтрити 2 реда
  1. 22 2
      src/main/java/com/sunxung/factoring/service/smb/impl/FinancingFromInvestorsServiceImpl.java

+ 22 - 2
src/main/java/com/sunxung/factoring/service/smb/impl/FinancingFromInvestorsServiceImpl.java

@@ -909,7 +909,11 @@ public class FinancingFromInvestorsServiceImpl extends ServiceImpl<FinancingFrom
             financingFromInvestorsNotice.setLimitStatus("失效");
         }
         financingFromInvestorsNotice.setValidityPeriod(DateUtil.parseDate(creditProcessQueryResp.getAuthEndDate()));
-        financingFromInvestorsNotice.setLoopFlag(creditProcessQueryResp.getCycleType());
+        if(creditProcessQueryResp.getCycleType().equals("0")){
+            financingFromInvestorsNotice.setLoopFlag("否");
+        }else if(creditProcessQueryResp.getCycleType().equals("1")){
+            financingFromInvestorsNotice.setLoopFlag("是");
+        }
         financingFromInvestorsNotice.setCreditLimit(new BigDecimal(creditProcessQueryResp.getCreditLimit()));
         financingFromInvestorsNotice.setRemainingAvailableCreditLimit(new BigDecimal(creditProcessQueryResp.getCreditLimit()));
         financingFromInvestorsNotice.setEffectiveDate(DateUtil.parseDate(creditProcessQueryResp.getStartDate()));
@@ -920,7 +924,23 @@ public class FinancingFromInvestorsServiceImpl extends ServiceImpl<FinancingFrom
         } else if (creditProcessQueryResp.getPayoffFlag().equals("N")) {
             financingFromInvestorsNotice.setPendingLoanReceipt("否");
         }
-        financingFromInvestorsNotice.setGuaranteeMethod(creditProcessQueryResp.getGuaranteeFlag());
+        if(creditProcessQueryResp.getGuaranteeFlag().equals("0")){
+            financingFromInvestorsNotice.setGuaranteeMethod("质押");
+        }else if(creditProcessQueryResp.getGuaranteeFlag().equals("1")){
+            financingFromInvestorsNotice.setGuaranteeMethod("抵押");
+        }else if(creditProcessQueryResp.getGuaranteeFlag().equals("3")){
+            financingFromInvestorsNotice.setGuaranteeMethod("保证");
+        }else if(creditProcessQueryResp.getGuaranteeFlag().equals("4")){
+            financingFromInvestorsNotice.setGuaranteeMethod("信用");
+        }else if(creditProcessQueryResp.getGuaranteeFlag().equals("5")){
+            financingFromInvestorsNotice.setGuaranteeMethod("组合(含保证)担保");
+        }else if(creditProcessQueryResp.getGuaranteeFlag().equals("6")){
+            financingFromInvestorsNotice.setGuaranteeMethod("组合(不含保证)担保");
+        }else if(creditProcessQueryResp.getGuaranteeFlag().equals("7")){
+            financingFromInvestorsNotice.setGuaranteeMethod("农户联保");
+        }else if(creditProcessQueryResp.getGuaranteeFlag().equals("9")){
+            financingFromInvestorsNotice.setGuaranteeMethod("其他");
+        }
         financingFromInvestorsNotice.setLimitNumber(creditProcessQueryResp.getProductLimitNo());
 
         financingFromInvestorsNoticeService.save(financingFromInvestorsNotice);