From 7ba7b7e0a917a51130388e326693b9d9cbd8fea6 Mon Sep 17 00:00:00 2001 From: Ledo Date: Tue, 14 Jan 2025 01:38:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E7=BB=88=E6=A3=80=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../taskdispatch/TaskDispatchServiceImpl.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/taskdispatch/TaskDispatchServiceImpl.java b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/taskdispatch/TaskDispatchServiceImpl.java index e5f0883..852c452 100644 --- a/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/taskdispatch/TaskDispatchServiceImpl.java +++ b/mes-module-heli/mes-module-heli-biz/src/main/java/com/chanko/yunxi/mes/module/heli/service/taskdispatch/TaskDispatchServiceImpl.java @@ -31,7 +31,10 @@ import com.chanko.yunxi.mes.module.heli.dal.mysql.taskdispatch.TaskDispatchMappe import com.chanko.yunxi.mes.module.heli.dal.mysql.taskreport.TaskReportMapper; import com.chanko.yunxi.mes.module.heli.enums.*; import com.chanko.yunxi.mes.module.heli.manager.CrossOrderManager; +import com.chanko.yunxi.mes.module.heli.service.pgmaster.PgMasterService; import com.chanko.yunxi.mes.module.heli.service.serialnumber.SerialNumberService; +import com.chanko.yunxi.mes.module.heli.service.zjbgmasterline.ZjBgMasterLineService; +import com.chanko.yunxi.mes.module.heli.service.zjpgmaster.ZjPgMasterService; import com.chanko.yunxi.mes.module.system.dal.dataobject.user.AdminUserDO; import com.chanko.yunxi.mes.module.system.service.user.AdminUserService; import org.apache.commons.lang3.SerializationUtils; @@ -84,7 +87,10 @@ public class TaskDispatchServiceImpl implements TaskDispatchService { private FpUserDetailMapper fpUserDetailMapper; @Resource private PlanMapper planMapper; - + @Resource + private ZjPgMasterService zjPgMasterService; + @Resource + private PgMasterService pgMasterService; @Override @Transactional(rollbackFor = Exception.class) public Long createTaskDispatch(TaskDispatchSaveReqVO createReqVO) { @@ -470,6 +476,11 @@ public class TaskDispatchServiceImpl implements TaskDispatchService { PlanDO planDO = planMapper.selectById(taskDispatchDO.getTaskId()); planDO.setStatus(3); planMapper.updateBatch(planDO); + if(taskDispatchDO.getDispatchType().equals("ASSEMBLE")){ + zjPgMasterService.insertZjList(planDO.getId(),planDO.getProjectId()); + } else if (taskDispatchDO.getDispatchType().equals("PRODUCTION")) { + pgMasterService.insertPgList(planDO.getId(),planDO.getProjectId()); + } } } taskDispatchDetailMapper.updateById(taskDispatchDetailDO);