Parcourir la source

feat(豁免跟进):数据进入

Wangyafan il y a 6 mois
Parent
commit
441045610b

+ 1 - 1
src/main/java/com/sunxung/factoring/service/loanmanagement/impl/ExemptionMattersServiceImpl.java

@@ -169,7 +169,7 @@ public class ExemptionMattersServiceImpl extends ServiceImpl<ExemptionMattersMap
         PaymentInfo paymentInfo = paymentInfoService.getById(paymentApply.getPaymentInfoId());
 
         List<PaymentCondition> conditions = paymentApplyService.findConditions(paymentApplyId);
-        boolean anyMatch = conditions.stream().anyMatch(r -> r.getFollow() != null && r.getFollow().equals("1"));
+        boolean anyMatch = conditions.stream().anyMatch(r -> r.getFollow() != null && r.getFollow().equals(1));
         if (anyMatch) {
             //获取项目经理
             ProjectInformationVo projectInformationVo = projectInformationService.getByBusinessNo(paymentInfo.getBusinessNo());

+ 13 - 0
src/main/java/com/sunxung/factoring/web/loanmanagement/ExemptionMattersFollowController.java

@@ -86,4 +86,17 @@ public class ExemptionMattersFollowController {
 //        return new ResponseJson("邮件发送成功!");
 //    }
 
+    /**
+     * 数据推送(测试接口)
+     * @param paymentApplyId
+     * @return
+     */
+    @RequestMapping("api/exemption/statrtProcess")
+    public ResponseJson download(@RequestParam Long paymentApplyId) {
+        exemptionMattersService.startProcess(paymentApplyId);
+        return new ResponseJson("推送成功!");
+    }
+
+
+
 }