From 83dffa832d29f3142e88be5fcd35789eadf185df Mon Sep 17 00:00:00 2001 From: daixiaogang <2510234660@qq.com> Date: Fri, 8 Sep 2023 14:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/PurchaseOrderServiceImpl.java | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) 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: 未完待续