|
|
|
@ -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<ZyOrdersMapper, ZyOrders> i |
|
|
|
|
@Autowired |
|
|
|
|
CustomerInvoiceMapper customerInvoiceMapper; |
|
|
|
|
|
|
|
|
|
//定时播报
|
|
|
|
|
@Autowired |
|
|
|
|
private ZySpeechMessageMapper zySpeechMessageMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -309,6 +316,17 @@ public class ZyOrdersServiceImpl extends ServiceImpl<ZyOrdersMapper, ZyOrders> 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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|