| | |
| | | public TableDataInfo list(OmProductionOrdeInfo omProductionOrdeInfo) |
| | | { |
| | | startPage(); |
| | | if (StrUtil.isNotBlank(omProductionOrdeInfo.getEngineNo())){ |
| | | BsOrderScheduling bsOrderScheduling = bsOrderSchedulingService.selectBsOrderSchedulingSNCode(omProductionOrdeInfo.getEngineNo()); |
| | | if (ObjectUtil.isNotEmpty(bsOrderScheduling)){ |
| | | String orderNo = bsOrderScheduling.getOrderNo(); |
| | | if (StrUtil.isNotBlank(orderNo)){ |
| | | omProductionOrdeInfo.setWorkOrderNo(orderNo); |
| | | } |
| | | } |
| | | } |
| | | List<OmProductionOrdeInfo> list = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(omProductionOrdeInfo); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | if (StrUtil.isBlank(factory)){ |
| | | throw new ServiceException("请选择工厂编号"); |
| | | } |
| | | List<OmProductionOrdeInfo> omProductionOrdeInfos = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(omProductionOrdeInfo); |
| | | if(omProductionOrdeInfos.size() == 0){ |
| | | OmProductionOrdeInfo queryProductOrder = new OmProductionOrdeInfo(); |
| | | queryProductOrder.setWorkshopCode(factory); |
| | | queryProductOrder.setProductionNotice(productionNotice); |
| | | List<OmProductionOrdeInfo> omProductionOrdeInfos = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(queryProductOrder); |
| | | if(CollUtil.isEmpty(omProductionOrdeInfos)){ |
| | | try { |
| | | logger.info("接收工单号:,{}",productionNotice); |
| | | ReceivingServices.insertWebserviceData(factory,productionNotice); |