diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyorders/service/impl/ZyOrdersServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyorders/service/impl/ZyOrdersServiceImpl.java index 76970ffb..4b6c4e6d 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyorders/service/impl/ZyOrdersServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyorders/service/impl/ZyOrdersServiceImpl.java @@ -26,6 +26,8 @@ import org.jeecg.modules.demo.zyorders.entity.ZyOrders; import org.jeecg.modules.demo.zyorders.entity.ZyOrdersJk; import org.jeecg.modules.demo.zyorders.mapper.ZyOrdersMapper; import org.jeecg.modules.demo.zyorders.service.IZyOrdersService; +import org.jeecg.modules.message.entity.ZySpeechMessage; +import org.jeecg.modules.message.mapper.ZySpeechMessageMapper; import org.jeecg.modules.orderbymakeclothplan.vo.TodayOrderAndQIriVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -91,6 +93,11 @@ public class ZyOrdersServiceImpl extends ServiceImpl i @Autowired CustomerInvoiceMapper customerInvoiceMapper; + //定时播报 + @Autowired + private ZySpeechMessageMapper zySpeechMessageMapper; + + /** @@ -309,6 +316,17 @@ public class ZyOrdersServiceImpl extends ServiceImpl i og = listog.get(i); og.setOrdersId(zo.getId()); zyOrderGoodsMapper.updateById(og); + //定时播报 + ZySpeechMessage message=new ZySpeechMessage(); + //订单商品id + message.setOrdergoodsId(zo.getId()); +// //工单id +// message.setWorkorderId(); +// //生产计划工序id +// message.setZyplanprocessId(); + //消息 + message.setMessage("您有新的订单,订单编号:"+zo.getOrdersNum()+",请及时查看!"); + zySpeechMessageMapper.insert(message); } } } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java index d0eef500..9391b8bd 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java @@ -25,6 +25,8 @@ import org.jeecg.modules.demo.zyStyleModular.entity.ZyStyleModular; import org.jeecg.modules.demo.zyStyleModular.mapper.ZyStyleModularMapper; import org.jeecg.modules.demo.zyorders.entity.ZyOrders; import org.jeecg.modules.demo.zyorders.mapper.ZyOrdersMapper; +import org.jeecg.modules.message.entity.ZySpeechMessage; +import org.jeecg.modules.message.mapper.ZySpeechMessageMapper; import org.jeecg.modules.operationtool.entity.ZyOperationtool; import org.jeecg.modules.operationtool.mapper.ZyOperationtoolMapper; import org.jeecg.modules.product.pdaccessories.entity.ProductAccessories; @@ -177,6 +179,11 @@ public class WorkOrderServiceImpl extends ServiceImpl0)