diff --git a/ms-biz/src/main/java/com/ms/api/service/impl/PurchaseOrderServiceImpl.java b/ms-biz/src/main/java/com/ms/api/service/impl/PurchaseOrderServiceImpl.java index eb890aec..53dd915c 100644 --- a/ms-biz/src/main/java/com/ms/api/service/impl/PurchaseOrderServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/api/service/impl/PurchaseOrderServiceImpl.java @@ -1842,30 +1842,30 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService { @Override @Transactional(rollbackFor = Exception.class) public boolean doMoveDsAutoPurchaseBufferToQueue(Map shopIdAndMoveCntMap) { - final int pageSize = 100; - - List allOrderIds = new ArrayList<>(); - Map allBufferMap = new HashMap<>(); - - for (Long shopId : shopIdAndMoveCntMap.keySet()) { - if (!shopIdAndMoveCntMap.containsKey(shopId) && shopIdAndMoveCntMap.get(shopId) == null || shopIdAndMoveCntMap.get(shopId) <= 0) { - continue; - } - Long moveBufferCount = shopIdAndMoveCntMap.get(shopId); - - List bufferRows = dsAutoPurchaseOrderBufferMapper.selectXXXX(); - if (bufferRows.size() == 0) { - continue; - } - - allOrderIds.addAll(bufferRows.stream().map(DsAutoPurchaseOrderBuffer::getOrderId).collect(Collectors.toList())); - Map bufferRowsMap = CommonTool.convertListToMap(bufferRows, DsAutoPurchaseOrderBuffer::getDsAutoPurchaseOrderBufferId); - allBufferMap.putAll(bufferRowsMap); - } - - if (allBufferMap.isEmpty()) { - return false; - } +// final int pageSize = 100; +// +// List allOrderIds = new ArrayList<>(); +// Map allBufferMap = new HashMap<>(); +// +// for (Long shopId : shopIdAndMoveCntMap.keySet()) { +// if (!shopIdAndMoveCntMap.containsKey(shopId) && shopIdAndMoveCntMap.get(shopId) == null || shopIdAndMoveCntMap.get(shopId) <= 0) { +// continue; +// } +// Long moveBufferCount = shopIdAndMoveCntMap.get(shopId); +// +// List bufferRows = dsAutoPurchaseOrderBufferMapper.selectXXXX(); +// if (bufferRows.size() == 0) { +// continue; +// } +// +// allOrderIds.addAll(bufferRows.stream().map(DsAutoPurchaseOrderBuffer::getOrderId).collect(Collectors.toList())); +// Map bufferRowsMap = CommonTool.convertListToMap(bufferRows, DsAutoPurchaseOrderBuffer::getDsAutoPurchaseOrderBufferId); +// allBufferMap.putAll(bufferRowsMap); +// } +// +// if (allBufferMap.isEmpty()) { +// return false; +// } // todo: 未完待续