注释异常

20230922-ljl-fixBug
daixiaogang 1 year ago
parent 912e1010d3
commit 83dffa832d

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

Loading…
Cancel
Save