refactor(出库计划): 消息提示
This commit is contained in:
parent
9736e66955
commit
a425fd5ea4
@ -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("出库任务创建失败,原因:数据库插入失败");
|
||||
|
Loading…
Reference in New Issue
Block a user