Bladeren bron

fix(苏商银行):续授信逻辑修改

liutao 1 maand geleden
bovenliggende
commit
24e001192c

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

@@ -766,7 +766,7 @@ public class FinancingFromInvestorsServiceImpl extends ServiceImpl<FinancingFrom
                 FinancingFromInvestorsHistory financingFromInvestorsHistory = financingFromInvestorsHistories.get(0);
                 FinancingFromInvestorsNotice financingFromInvestorsNotice = financingFromInvestorsNoticeService.lambdaQuery().eq(FinancingFromInvestorsNotice::getFinancingFromInvestorsHistoryId, financingFromInvestorsHistory.getId()).one();
                 if(financingFromInvestorsNotice != null){
-                    if (financingFromInvestorsNotice != null && financingFromInvestorsNotice.getExpiringDate().compareTo(new Date()) < 1) {
+                    if (financingFromInvestorsNotice != null && financingFromInvestorsNotice.getExpiringDate() != null && financingFromInvestorsNotice.getExpiringDate().compareTo(new Date()) < 1) {
                         financingFromInvestors.setCreditStatus(SmbCreditStatusEnum.STATUS_12.getCode());
                         this.updateById(financingFromInvestors);
                     }