1、【我关注的】接口bugfix
This commit is contained in:
@@ -64,6 +64,9 @@ public class SimulationWork implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private CIDUserResp ownerValue;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String ownerStr;
|
||||
|
||||
@ApiModelProperty(value = "描述")
|
||||
@TableField("description")
|
||||
private String description;
|
||||
|
||||
@@ -626,13 +626,6 @@ public class NodeServiceImpl extends ServiceImpl<SimulationNodeMapper, Simulatio
|
||||
if (nodeMapper.addNodeBatch(addNodeList) <= 0) {
|
||||
return null;
|
||||
}
|
||||
for (SpdmProjectNodeEditReq spdmProjectNodeEditReq : addNodeList) {
|
||||
if (NodeTypeEnum.PROJECT.getValue().equals(spdmProjectNodeEditReq.getNodeType())) {
|
||||
createDir(spdmProjectNodeEditReq.getUuid(), spdmProjectNodeEditReq.getNodeType(), null, spdmProjectNodeEditReq.getNodeName());
|
||||
}else {
|
||||
createDir(spdmProjectNodeEditReq.getUuid(), spdmProjectNodeEditReq.getNodeType(), spdmProjectNodeEditReq.getPid(), spdmProjectNodeEditReq.getNodeName());
|
||||
}
|
||||
}
|
||||
SpdmProjectNodeEditReq projectNode = addNodeList.stream().filter(node -> NodeTypeEnum.PROJECT.getValue().equals(node.getNodeType())).findFirst().orElse(null);
|
||||
List<SpdmProjectNodeEditReq> addPhaseNodeList = addNodeList.stream().filter(node -> NodeTypeEnum.PHASE.getValue().equals(node.getNodeType())).toList();
|
||||
List<SpdmProjectNodeEditReq> addMachineNodeList = addNodeList.stream().filter(node -> NodeTypeEnum.MACHINE.getValue().equals(node.getNodeType())).toList();
|
||||
|
||||
@@ -137,6 +137,7 @@ public class SimulationWorkServiceImpl extends ServiceImpl<SimulationWorkMapper,
|
||||
continue;
|
||||
}
|
||||
simulationWork.setOwnerValue(userMap.get(simulationWork.getOwner()));
|
||||
simulationWork.setOwnerStr(String.valueOf(simulationWork.getOwner()));
|
||||
}
|
||||
PageInfo<SimulationWork> page = new PageInfo<>(workList);
|
||||
return PageUtils.getJsonObjectSdmResponse(workList, page);
|
||||
|
||||
@@ -504,7 +504,7 @@ public class TaskServiceImpl implements ITaskService {
|
||||
|
||||
taskMemberVoList = mapper.getMemberList(taskList.stream().map(SpdmTaskVo::getUuid).toList(), null);
|
||||
|
||||
if (CollectionUtils.isNotEmpty(taskMemberVoList)) {
|
||||
if (type != 1 && CollectionUtils.isNotEmpty(taskMemberVoList)) {
|
||||
if (ObjectUtils.isNotEmpty(req.getPMemberList())) {
|
||||
List<Long> pMemberIdList = Stream.of(req.getPMemberList().split(",")).map(Long::valueOf).toList();
|
||||
// 通过仿真负责人过滤
|
||||
|
||||
Reference in New Issue
Block a user