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;