fix:更新任务所有结构细化完成时间、工位升级时间、清单下发时间

This commit is contained in:
2026-01-30 16:29:04 +08:00
parent 356f47eaee
commit 387a2fc210
4 changed files with 17 additions and 5 deletions

View File

@@ -19,6 +19,5 @@ public class GetDedicatedTimeReq extends BaseReq {
* 节点UUID()
*/
@Schema(description = "节点UUID可以传阶段uuid用于获取阶段下的所有工位")
@NotBlank(message = "nodeUuid不能为空")
private String nodeUuid;
}

View File

@@ -148,4 +148,10 @@ public class SpdmAddDemandReq extends BaseEntity {
*/
private String description;
/**
* 是否为绿元亨项目
*/
private boolean isLyric=false;
}

View File

@@ -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());
}

View File

@@ -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);