Explorar o código

feat(退款管理):执行人

Wangyafan hai 7 meses
pai
achega
c4992aa187

+ 6 - 2
src/main/java/com/sunxung/factoring/service/refundsManagement/impl/RefundManagementServiceImpl.java

@@ -632,7 +632,11 @@ public class RefundManagementServiceImpl extends ServiceImpl<RefundManagementMap
     //填充执行人
     void autoExecutor(BusinessProcessingTaskVo taskVo) {
         if (taskVo != null) {
-//            if (taskVo.getTaskName())
+            if (taskVo.getStage().equals("退款审核")){
+                taskVo.setExecutor("风控经理");
+            }else if (taskVo.getStage().equals("退款申请")){
+                taskVo.setExecutor("业务经理");
+            }
         }
     }
 
@@ -673,7 +677,7 @@ public class RefundManagementServiceImpl extends ServiceImpl<RefundManagementMap
                     .list();
             if (CollectionUtil.isNotEmpty(fundGoodsAssignList)) {
                 List<LedgerAccountBasicInfo> ledgerAccountBasicInfos = fundGoodsAssignList.stream().map(fundGoodsAssign ->
-                     ledgerAccountBasicInfoService.getById(fundGoodsAssign.getLedgerAccountBasicInfoId())
+                        ledgerAccountBasicInfoService.getById(fundGoodsAssign.getLedgerAccountBasicInfoId())
                 ).sorted(Comparator.comparing(LedgerAccountBasicInfo::getGmtCreate).reversed()).collect(Collectors.toList());
                 List<RefundsApplyAccountInfo> accountInfoList = new ArrayList<>();
                 if (CollectionUtil.isNotEmpty(ledgerAccountBasicInfos)) {