Browse Source

feat(退款管理):处理人

Wangyafan 7 months ago
parent
commit
0eaf44c4fb

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

@@ -256,11 +256,14 @@ public class RefundManagementServiceImpl extends ServiceImpl<RefundManagementMap
                 }
                 paymentCollectionBasicVoList.add(paymentCollectionBasicVo);
 
-                autoExecutor(taskVo);
             });
 
             autoPlanAndAmount(paymentCollectionBasicVoList, rows);
 
+            rows.forEach(row->{
+                autoExecutor(row);
+            });
+
         }
         return rows;
     }
@@ -632,9 +635,9 @@ public class RefundManagementServiceImpl extends ServiceImpl<RefundManagementMap
     //填充执行人
     void autoExecutor(BusinessProcessingTaskVo taskVo) {
         if (taskVo != null) {
-            if (taskVo.getStage().equals("退款审核")){
+            if ("退款审核".equals(taskVo.getTaskName())){
                 taskVo.setExecutor("风控经理");
-            }else if (taskVo.getStage().equals("退款申请")){
+            }else if ("退款申请".equals(taskVo.getTaskName())){
                 taskVo.setExecutor("业务经理");
             }
         }