소스 검색

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

liutao 1 개월 전
부모
커밋
24e001192c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/sunxung/factoring/service/smb/impl/FinancingFromInvestorsServiceImpl.java

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