fix:需求关联任务提出人

This commit is contained in:
2026-03-13 18:11:59 +08:00
parent 664138caef
commit 6d11078d0d
2 changed files with 12 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
package com.sdm.project.model.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sdm.common.entity.pojo.BaseEntity;
import com.sdm.common.entity.resp.system.CIDUserResp;
@@ -178,4 +179,15 @@ public class SpdmTaskDetailVo extends BaseEntity {
private String tag8Code;
private String tag9Code;
private String tag10Code;
/**
* 关联的需求提出人
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long submitter;
/**
* 关联的需求提出人名称
*/
private String submitterName;
}

View File

@@ -3594,20 +3594,6 @@ public class TaskServiceImpl implements ITaskService {
spdmNewTaskVo::setTag5,
spdmNewTaskVo::setTag5Code);
}
taskVoList.forEach(task -> {
SpdmNodeVo phaseNode = nodeMapper.getNodeById(task.getNewTag2());
if (phaseNode != null) {
task.setPhaseName(phaseNode.getNodeName());
task.setTag2(phaseNode.getNodeName());
}
SpdmNodeVo projectNode = nodeMapper.getNodeById(task.getNewTag1());
if (projectNode != null) {
task.setProjectName(projectNode.getNodeName());
task.setTag1(projectNode.getNodeName());
}
});
List<String> taskIdList = taskVoList.stream().map(SpdmNewTaskVo::getUuid).toList();
List<SpdmTaskMemberVo> memberList = mapper.getMemberList(taskIdList, null);
List<SpdmTaskDetailVo> spdmTaskDetailVoList = new ArrayList<>();