fix:更新任务所有结构细化完成时间、工位升级时间、清单下发时间
This commit is contained in:
@@ -19,6 +19,5 @@ public class GetDedicatedTimeReq extends BaseReq {
|
||||
* 节点UUID()
|
||||
*/
|
||||
@Schema(description = "节点UUID,可以传阶段uuid,用于获取阶段下的所有工位")
|
||||
@NotBlank(message = "nodeUuid不能为空")
|
||||
private String nodeUuid;
|
||||
}
|
||||
|
||||
@@ -148,4 +148,10 @@ public class SpdmAddDemandReq extends BaseEntity {
|
||||
*/
|
||||
private String description;
|
||||
|
||||
|
||||
/**
|
||||
* 是否为绿元亨项目
|
||||
*/
|
||||
private boolean isLyric=false;
|
||||
|
||||
}
|
||||
|
||||
@@ -233,10 +233,12 @@ public class DemandServiceImpl extends BaseService implements IDemandService {
|
||||
SdmResponse updatePermissionResponse = dataFeignClient.updatePermission(updatePermissionReq);
|
||||
log.info("创建需求时,更新需求创建人和需求仿真负责人(确认人)权限的返回值为:{}",updatePermissionResponse);
|
||||
|
||||
// 同步创建任务
|
||||
SimulationDemand demand = new SimulationDemand();
|
||||
BeanUtils.copyProperties(req, demand);
|
||||
simulationTaskService.batchCreateTaskFromDemand(Collections.singletonList(demand));
|
||||
// 只有绿元亨需要在创建需求的同时创建任务
|
||||
if (req.isLyric()) {
|
||||
SimulationDemand demand = new SimulationDemand();
|
||||
BeanUtils.copyProperties(req, demand);
|
||||
simulationTaskService.batchCreateTaskFromDemand(Collections.singletonList(demand));
|
||||
}
|
||||
|
||||
return SdmResponse.success(req.getUuid());
|
||||
}
|
||||
|
||||
@@ -1299,6 +1299,11 @@ public class NodeServiceImpl extends ServiceImpl<SimulationNodeMapper, Simulatio
|
||||
public SdmResponse getDedicatedTime(GetDedicatedTimeReq req) {
|
||||
String projectUuid = req.getProjectUuid();
|
||||
|
||||
if(ObjectUtils.isEmpty(req.getNodeUuid())){
|
||||
// 未传nodeUuid,默认不查询,直接返回
|
||||
return SdmResponse.success(new ArrayList<>());
|
||||
}
|
||||
|
||||
// 验证项目存在性
|
||||
SimulationNode project = getProjectOrThrow(projectUuid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user