From a80458d48896ce5d9a20c2041578e800cfcb50d9 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Fri, 29 Nov 2024 14:31:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java index 4a3c1a9..0dd010d 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmsInPlanServiceImpl.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.List; import com.ktg.common.utils.DateUtils; +import com.ktg.generator.util.MultiModuleCodeGenerator; import com.ktg.mes.md.domain.MdItem; import com.ktg.mes.md.service.IMdItemService; import com.ktg.mes.wm.domain.WmsInPlanDetailEntity; @@ -90,6 +91,8 @@ public class WmsInPlanServiceImpl implements IWmsInPlanService { @Override public int insertWmsInPlan(WmsInPlan wmsInPlan) { wmsInPlan.setCreateTime(DateUtils.getNowDate()); + // 设置计划编码 + wmsInPlan.setPlanCode(MultiModuleCodeGenerator.generateTaskCode("RKP")); int rows = wmsInPlanMapper.insertWmsInPlan(wmsInPlan); insertWmsInPlanDetails(wmsInPlan); return rows;