Prechádzať zdrojové kódy

企业解除合作关系判断是否有关联订单dubbo接口

yzc 2 rokov pred
rodič
commit
2321153214

+ 1 - 1
sckw-modules/sckw-order/src/main/java/com/sckw/order/serivce/KwoTradeOrderUnitService.java

@@ -143,9 +143,9 @@ public class KwoTradeOrderUnitService {
         if (CollectionUtils.isEmpty(list)) {
             return Collections.emptySet();
         }
-        Set<Long> orderIds = new HashSet<>();
         Map<Long, Set<Long>> map = list.stream().collect(Collectors.groupingBy(KwoTradeOrderUnit::getTOrderId,
                 Collectors.mapping(KwoTradeOrderUnit::getEntId, Collectors.toSet())));
+        Set<Long> orderIds = new HashSet<>(map.keySet().size());
         map.forEach((k,v)->{
             if (v.containsAll(entIds)){
                 orderIds.add(k);