| | |
| | | @Synchronized |
| | | // @PostConstruct |
| | | public void inStockExecute(){ |
| | | // inStock的表头和表身 |
| | | List<InStockDto> readyInStock = erpService.getReadyInStock(); |
| | | |
| | | for (InStockDto dto : readyInStock) { |
| | | |
| | | //同一单号存在相同物料编码数据,该单号不予处理 |
| | |
| | | } |
| | | continue; |
| | | } |
| | | |
| | | if (Cools.isEmpty(dto) || Cools.isEmpty(dto.getInStockBillEntries())) { |
| | | continue; |
| | | } |
| | | for (InStockBillEntry entry : dto.getInStockBillEntries()) { |
| | | MatCode matCode = matCodeService.selectById(entry.getFnumber()); |
| | | if (null != matCode) { |
| | |
| | | //同一单号存在相同物料编码数据,该单号不予处理 |
| | | Number fnumberCount = erpService.QueryFnumberOutCount(outStockBill.getFInterID()); |
| | | if(fnumberCount.intValue() > 1){ |
| | | log.info("出库通知单存在物料相同数据[FBillNo={},FInterID={},]", outStockBill.getFBillNo(), outStockBill.getFInterID()); |
| | | if (!erpService.haveReadOutBill(outStockBill.getFBillNo(),outStockBill.getFInterID(),-1)) { |
| | | log.error("更新出库通知单读取状态为-1失败[FBrNo={},FInterID={}]", outStockBill.getFBrNo(),outStockBill.getFInterID()); |
| | | } |