Browse Source

新增任务信息

lqc 4 years ago
parent
commit
e643fdc74e

+ 4 - 1
src/main/java/com/mokamrp/privates/controller/pangu/FosterwxCashScheduleTaskListController.java

@@ -57,7 +57,10 @@ public class FosterwxCashScheduleTaskListController extends BaseController<Foste
         }
         ResHandle<List<FosterwxCashScheduleTaskList>> res = fosterwxCashScheduleTaskListService.getList(handle);
 
-        res.getList().forEach(fosterwxCashScheduleTaskList -> fosterwxCashScheduleTaskList.setFosterwxCashWorkwxTaskList(fosterwxCashWorkwxTaskListService.getById(fosterwxCashScheduleTaskList.getChildTaskId())));
+        res.getList().forEach(fosterwxCashScheduleTaskList -> {
+            FosterwxCashScheduleTaskList detail = fosterwxCashScheduleTaskListService.getById(fosterwxCashScheduleTaskList.getId());
+            fosterwxCashScheduleTaskList.setFosterwxCashWorkwxTaskList(fosterwxCashWorkwxTaskListService.getById(detail.getChildTaskId()));
+        });
         return AjaxResult.success(res);
     }