From a425fd5ea4ff9651203c6d5b9351a3462de74f56 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Mon, 6 Jan 2025 17:24:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=87=BA=E5=BA=93=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ktg/mes/md/controller/WmsOutPlanController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java index 9fe9a22..5990f98 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/WmsOutPlanController.java @@ -16,6 +16,8 @@ import com.ktg.mes.md.service.IAP0AEService; import com.ktg.mes.md.service.IMdItemService; import com.ktg.mes.md.service.IWmsBusinessTypeService; import com.ktg.mes.md.service.IWmsOutPlanService; +import com.ktg.system.domain.SysMessage; +import com.ktg.system.service.ISysMessageService; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; @@ -40,6 +42,7 @@ public class WmsOutPlanController extends BaseController { private final IWmsOutPlanService wmsOutPlanService; private final IWmsBusinessTypeService wmsBusinessTypeService; private final IMdItemService mdItemService; + private final ISysMessageService sysMessageService; /** * 查询出库计划管理列表 @@ -95,6 +98,9 @@ public class WmsOutPlanController extends BaseController { try { int i = wmsOutPlanService.insertWmsOutPlanAndRun(wmsOutPlan); if (i > 0) { + // 创建消息通知 + sysMessageService.insertSysPromptMessage("出库任务","整刀出库: " + wmsOutboundOrderDto.getMaterialCode()); + return AjaxResult.success("出库任务创建成功"); } else { return AjaxResult.error("出库任务创建失败,原因:数据库插入失败");