2023-05-14-02-bug

master
喻忠伟 2 years ago
parent 5a39c03548
commit 0ad315236f
  1. 18
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyorders/service/impl/ZyOrdersServiceImpl.java
  2. 14
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.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<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);
}
}
}

@ -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 ServiceImpl<WorkOrderMapper, WorkOrder
@Autowired
private ProductProcessAccessoriesMapper productProcessAccessoriesMapper;
//定时播报
@Autowired
private ZySpeechMessageMapper zySpeechMessageMapper;
/**
* 自定义分页查询
* @param page
@ -246,6 +253,13 @@ public class WorkOrderServiceImpl extends ServiceImpl<WorkOrderMapper, WorkOrder
workOrder.setWorkOrderStatus(0);//工单状态
workOrder.setEnterprisesId(depId);//企业id
baseMapper.insert(workOrder);
//定时播报
ZySpeechMessage message=new ZySpeechMessage();
//订单商品id
message.setWorkorderId(workOrder.getId());
//消息
message.setMessage("您的工单已生成,工单编号:"+workOrder.getProductCode()+",请及时查看!");
zySpeechMessageMapper.insert(message);
//保存产品
if(goodNum>0)

Loading…
Cancel
Save