fix: 子任务组显示主任务的一级分类(新品/优化)而不是子任务的具体类型

This commit is contained in:
Your Name 2026-01-07 20:06:49 +08:00
parent 6290a35dff
commit 5c1579fa3f

View File

@ -1099,14 +1099,16 @@ public class TaskItemService {
}
}
// 子任务的任务类型信息
groupInfo.put("taskTypeId", item.getTaskTypeId());
if (item.getTaskTypeId() != null) {
com.designhub.entity.DemandType taskType = demandTypeMapper.selectById(item.getTaskTypeId());
// 主任务的任务类型信息(显示一级分类如"新品"、"优化")
groupInfo.put("taskTypeId", mainTask.getTaskTypeId());
if (mainTask.getTaskTypeId() != null) {
com.designhub.entity.DemandType taskType = demandTypeMapper.selectById(mainTask.getTaskTypeId());
if (taskType != null) {
groupInfo.put("taskTypeName", taskType.getName());
}
}
// 子任务的具体任务类型ID(用于审核流程)
groupInfo.put("subTaskTypeId", item.getTaskTypeId());
// 添加审核人信息(目标部门负责人)
Long targetDeptId = getTargetDeptIdFromTaskType(item.getTaskTypeId());