| | |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void execute1() { |
| | | List<String> ids = storeTypeService.listOwn(); |
| | | List<String> Ids = nccSaleXsfhmxWmsService.selectXsfh(ids); |
| | | List<String> warehouseIds = storeTypeService.listOwn(); |
| | | List<String> Ids = nccSaleXsfhmxWmsService.selectXsfh(warehouseIds); |
| | | for (String id : Ids) { |
| | | List<NccSaleXsfhmxWms> wmsFlag = nccSaleXsfhmxWmsService.selectList(new EntityWrapper<NccSaleXsfhmxWms>().eq("vbillcode", id).ne("wms_flag", 1).eq("fstatusflag", 2).eq("hdr", 0).eq("bdr", 0)); |
| | | List<NccSaleXsfhmxWms> wmsFlag = nccSaleXsfhmxWmsService.selectList(new EntityWrapper<NccSaleXsfhmxWms>() |
| | | .eq("vbillcode", id) |
| | | .ne("wms_flag", 1) |
| | | .eq("fstatusflag", 2) |
| | | .eq("hdr", 0) |
| | | .eq("bdr", 0) |
| | | .in("fhckbm",warehouseIds) |
| | | ); |
| | | if (wmsFlag == null || wmsFlag.isEmpty()) { |
| | | return; |
| | | continue; |
| | | } |
| | | ReturnT<String> returnT = planOrderHandler.start1(wmsFlag); |
| | | if (!returnT.isSuccess()) { |