From ee33bd62afc10bede85c4dd15d106a0e545d5913 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854> Date: Mon, 24 Apr 2023 09:49:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E7=94=9F=E4=BA=A7=E6=B6=88?= =?UTF-8?q?=E6=81=AF=204.24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ZyProductPlanController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyProductPlanController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyProductPlanController.java index c8590c4f..e6674f27 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyProductPlanController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyProductPlanController.java @@ -13,6 +13,8 @@ import org.jeecg.common.aspect.annotation.AutoLog; import org.jeecg.common.exception.JeecgBootException; import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.modules.message.entity.ZySpeechMessage; +import org.jeecg.modules.message.service.IZySpeechMessageService; import org.jeecg.modules.productplan.entity.ZyProductPlan; import org.jeecg.modules.productplan.entity.vo.PaiWeiTuVo; import org.jeecg.modules.productplan.service.IZyProductPlanService; @@ -50,6 +52,9 @@ public class ZyProductPlanController extends JeecgController add(@RequestBody ZyProductPlan zyProductPlan) { zyProductPlanService.create(zyProductPlan); + + //保存生产计划语音播报消息 + ZySpeechMessage zySpeechMessage = new ZySpeechMessage(); + String productCode = zyProductPlan.getProductCode(); + String code = productCode.substring(productCode.length() - 10); + String mess = "工单尾号" + code + ",生产计划已完成制定,请跟进后续生产作业."; + zySpeechMessage.setMessage(mess); + zySpeechMessage.setWorkorderId(productCode); + iZySpeechMessageService.save(zySpeechMessage); return Result.OK("添加成功!"); }