liuj 8 часов назад
Родитель
Сommit
f75e72556d
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/main/java/com/sunxung/factoring/start/impl/SMBNoticeInit.java

+ 3 - 2
src/main/java/com/sunxung/factoring/start/impl/SMBNoticeInit.java

@@ -23,6 +23,7 @@ public class SMBNoticeInit {
             if (withdrawNotifyPayloadDto.getPayoutNo() != null) {
                 FinancingLoanInfo loanInfo = getFinancingLoanInfoService().lambdaQuery().eq(FinancingLoanInfo::getPayoutNo, withdrawNotifyPayloadDto.getPayoutNo()).one();
                 if (loanInfo != null) {
+                    String beforeStatus = loanInfo.getPayoutStatus();
                     //借据编号
                     loanInfo.setDueBillNo(withdrawNotifyPayloadDto.getDuebillNo());
                     //到期日期
@@ -40,8 +41,8 @@ public class SMBNoticeInit {
                         loanInfo.setFailMsg(withdrawNotifyPayloadDto.getRemark());
                     }
                     getFinancingLoanInfoService().updateById(loanInfo);
-//                    if ("02".equals(withdrawNotifyPayloadDto.getStatus())) {
-//                        //如果提款成功、需要向sop推送融资信息
+//                    if ("01".equals(beforeStatus) && "02".equals(withdrawNotifyPayloadDto.getStatus())) {
+//                        //如果提款状态由处理中->成功、需要向sop推送融资信息
 //                        if (loanInfo.getcFinancingBasicInfoId() != null) {
 //                            CFinancingBasicInfo financingBasicInfo = getFinancingBasicInfoService().getById(loanInfo.getcFinancingBasicInfoId());
 //                            if (financingBasicInfo != null) {