第一步骤任务创建生产单后给后续步骤赋生产单号
This commit is contained in:
parent
52dfdc9c7f
commit
c734d69ce5
@ -1104,6 +1104,19 @@ public class AsynRunTaskService extends BaseService {
|
|||||||
logger.info(currTask.getId() + "创建apms生产单号成功");
|
logger.info(currTask.getId() + "创建apms生产单号成功");
|
||||||
currTask.setSheetNo(processSheet.getData().getSheetNo());
|
currTask.setSheetNo(processSheet.getData().getSheetNo());
|
||||||
currTaskServiceBiz.updateById(currTask);
|
currTaskServiceBiz.updateById(currTask);
|
||||||
|
//多步骤任务除了第一步写入sheetNo
|
||||||
|
if (currTask.getIsAuto()==1){
|
||||||
|
AutoExeTask autoExeTask = autoExeTaskServiceBiz.getById(currTask.getAutoExeTaskId());
|
||||||
|
CurrTask secondCurrTask = currTaskServiceBiz.getById(autoExeTask.getTTaskId());
|
||||||
|
secondCurrTask.setSheetNo(currTask.getSheetNo());
|
||||||
|
currTaskServiceBiz.updateById(secondCurrTask);
|
||||||
|
//三步任务
|
||||||
|
if (autoExeTask.getProcessFlowType()==2){
|
||||||
|
CurrTask threeCurrTask = currTaskServiceBiz.getById(autoExeTask.getThTaskId());
|
||||||
|
threeCurrTask.setSheetNo(currTask.getSheetNo());
|
||||||
|
currTaskServiceBiz.updateById(threeCurrTask);
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user