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