From c734d69ce51ce817a0eb0113f7a3c9f44e5171fa Mon Sep 17 00:00:00 2001 From: LGH <1746689524@qq.com> Date: Thu, 14 Jul 2022 22:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AD=A5=E9=AA=A4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=88=9B=E5=BB=BA=E7=94=9F=E4=BA=A7=E5=8D=95=E5=90=8E?= =?UTF-8?q?=E7=BB=99=E5=90=8E=E7=BB=AD=E6=AD=A5=E9=AA=A4=E8=B5=8B=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E5=8D=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mt/wms/empty/task/AsynRunTaskService.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java index 964f00a..8a1b03c 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/AsynRunTaskService.java @@ -1104,6 +1104,19 @@ public class AsynRunTaskService extends BaseService { logger.info(currTask.getId() + "创建apms生产单号成功"); currTask.setSheetNo(processSheet.getData().getSheetNo()); 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; } }