| | |
| | | /** |
| | | * 读取入库单据 |
| | | */ |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | @Scheduled(cron = "0/10 * * * * ? ") |
| | | public void readInOrder() { |
| | | log.info("读取入库单据"); |
| | | //log.info("读取入库单据"); |
| | | List<String> orderNos = exdInstockSourceMapper.listOrderNo(); |
| | | for (String orderNo : orderNos) { |
| | | List<ExdInstockSource> exdInstockSources = exdInstockSourceMapper.listAll(orderNo); |
| | |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("读取入库单据信息失败:{},{}", exdInstockSources, e.getMessage()); |
| | | e.printStackTrace(); |
| | | for (ExdInstockSource exdInstockSource : exdInstockSources) { |
| | | exdInstockSource.setReadormsg(e.getMessage()); |
| | | exdInstockSource.setStatus(2); |
| | |
| | | /** |
| | | * 读取出库单据 |
| | | */ |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | @Scheduled(cron = "0/10 * * * * ? ") |
| | | public void readOutOrder() { |
| | | log.info("读取出库单据"); |
| | | List<String> orderNos = exdInstockSourceMapper.listOrderNo(); |
| | | //log.info("读取出库单据"); |
| | | List<String> orderNos = exdOutstockSourceMapper.listOrderNo(); |
| | | for (String orderNo : orderNos) { |
| | | List<ExdOutstockSource> exdOutstockSources = exdOutstockSourceMapper.listAll(orderNo); |
| | | try { |
| | |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("读取出库单据信息失败:{},{}", exdOutstockSources, e.getMessage()); |
| | | e.printStackTrace(); |
| | | for (ExdOutstockSource exdOutstockSource : exdOutstockSources) { |
| | | exdOutstockSource.setStatus(2); |
| | | exdOutstockSource.setReadormsg(e.getMessage()); |