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("出库任务创建失败,原因:数据库插入失败");