fix:需求关联任务提出人
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.sdm.project.model.vo;
|
package com.sdm.project.model.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.sdm.common.entity.pojo.BaseEntity;
|
import com.sdm.common.entity.pojo.BaseEntity;
|
||||||
import com.sdm.common.entity.resp.system.CIDUserResp;
|
import com.sdm.common.entity.resp.system.CIDUserResp;
|
||||||
@@ -178,4 +179,15 @@ public class SpdmTaskDetailVo extends BaseEntity {
|
|||||||
private String tag8Code;
|
private String tag8Code;
|
||||||
private String tag9Code;
|
private String tag9Code;
|
||||||
private String tag10Code;
|
private String tag10Code;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联的需求提出人
|
||||||
|
*/
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||||
|
private Long submitter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联的需求提出人名称
|
||||||
|
*/
|
||||||
|
private String submitterName;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3594,20 +3594,6 @@ public class TaskServiceImpl implements ITaskService {
|
|||||||
spdmNewTaskVo::setTag5,
|
spdmNewTaskVo::setTag5,
|
||||||
spdmNewTaskVo::setTag5Code);
|
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<String> taskIdList = taskVoList.stream().map(SpdmNewTaskVo::getUuid).toList();
|
||||||
List<SpdmTaskMemberVo> memberList = mapper.getMemberList(taskIdList, null);
|
List<SpdmTaskMemberVo> memberList = mapper.getMemberList(taskIdList, null);
|
||||||
List<SpdmTaskDetailVo> spdmTaskDetailVoList = new ArrayList<>();
|
List<SpdmTaskDetailVo> spdmTaskDetailVoList = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user