fix[project]: 仿真策划时,创建的任务关联待办id
This commit is contained in:
@@ -2363,6 +2363,8 @@ public class ProjectServiceImpl extends BaseService implements IProjectService {
|
||||
}
|
||||
}
|
||||
taskNode.setTag10(Collections.singletonList(subjectName + taskNode.getTaskName()));
|
||||
// 设置关联的待办id
|
||||
taskNode.setDemandId(RandomUtil.generateString(32));
|
||||
}
|
||||
}
|
||||
if (mapper.batchAddSimulationTask(taskNodeList) <= 0) {
|
||||
@@ -2496,10 +2498,10 @@ public class ProjectServiceImpl extends BaseService implements IProjectService {
|
||||
}
|
||||
|
||||
public void addDemandByTask(List<TaskNode> taskNodeList,List<SpdmNodeExtraVo> nodeExtraList) {
|
||||
log.info("addDemandByTask 策划任务时,新增需求");
|
||||
Long tenantId = ThreadLocalContext.getTenantId();
|
||||
Long jobNumber = ThreadLocalContext.getUserId();
|
||||
String curDateStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
||||
log.info("addDemandByTask taskNodeList为:{}",taskNodeList);
|
||||
for (TaskNode taskNode : taskNodeList) {
|
||||
SpdmDemandVo demandByName = demandMapper.getDemandByNameNoPermission(tenantId,String.join(",", taskNode.getTag10()));
|
||||
if (ObjectUtils.isNotEmpty(demandByName)) {
|
||||
|
||||
Reference in New Issue
Block a user