소스 검색

执行人问题

QuYueTing 1 개월 전
부모
커밋
6446025c2b

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform-mld/src/main/java/com/management/platform/controller/TaskController.java

@@ -1059,7 +1059,7 @@ public class TaskController {
             list.get(0).setCreatorName(name);
         }
         //查询任务的执行人
-        List<TaskExecutor> executorList = taskExecutorMapper.getInfoWithFileCharge(t.getId());
+        List<TaskExecutor> executorList = taskExecutorMapper.selectList(new QueryWrapper<TaskExecutor>().eq("task_id", id));
         List<TaskDailyAllocate> allocateList = taskDailyAllocateService.list(new QueryWrapper<TaskDailyAllocate>().eq("task_id", id));
         // 1. 按 userId 预先分组(避免后续重复筛选)
         Map<String, List<TaskDailyAllocate>> allocateMap = allocateList.stream()

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform-mld/src/main/resources/mapper/TaskExecutorMapper.xml

@@ -26,7 +26,7 @@
     </sql>
     <select id="getInfoWithFileCharge" resultType="com.management.platform.entity.TaskExecutor">
         select te.id as id,   task_id, executor_id, executor_name, executor_color, plan_hours, project_id
-             , service_id, real_cost, file_charge_one_id, file_charge_two_id
+             , service_id, real_cost, file_charge_one_id, file_charge_two_id,first_auditor_id, second_auditor_id, audit_status
              , u1.name as fileChargeOneName,u1.corpwx_userid as chargeOneWxId
              ,u2.name as fileChargeTwoName,u2.corpwx_userid  as chargeTwoWxId
         from task_executor te