...
|
...
|
@@ -39,6 +39,7 @@ import org.springframework.stereotype.Service; |
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
import java.util.function.Function;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
...
|
...
|
@@ -107,12 +108,13 @@ public class SellerOrderListService extends AbsOrderListService implements IOrde |
|
|
|
|
|
|
|
|
public List<OrderListInfo> buildOrderList(List<SellerOrderGoods> sogList, SellerType sellerType){
|
|
|
/*
|
|
|
sogList.stream().forEach(item -> {
|
|
|
item.setImageUrl(ImageUrlAssist.getAllProductPicUrl(item.getImageUrl(), "goodsimg", "center", "d2hpdGU="));
|
|
|
});
|
|
|
});*/
|
|
|
Map<String, String> overPriceTipsMap = buildOverPriceTipsMap(sogList);
|
|
|
Map<Integer, SellerOrderGoods> skupSellerOrderGoodsMap = sogList.parallelStream()
|
|
|
.collect(Collectors.toMap(SellerOrderGoods::getId, (SellerOrderGoods sog) -> sog));
|
|
|
.collect(Collectors.toMap(SellerOrderGoods::getId, Function.identity()));
|
|
|
List<Integer> skupList = sogList.parallelStream().map(SellerOrderGoods::getId).collect(Collectors.toList());
|
|
|
List<SellerOrder> sellerOrders = sellerOrderMapper.selectBySkups(skupList);
|
|
|
List<OrderListInfo> data ;
|
...
|
...
|
@@ -337,6 +339,7 @@ public class SellerOrderListService extends AbsOrderListService implements IOrde |
|
|
orderListInfo.setTips(tips);
|
|
|
}
|
|
|
orderListInfo.setIsAdvance(OrderAssist.getSkupIsAdvance(soga));
|
|
|
orderListInfo.setAttributes(soga);
|
|
|
return orderListInfo;
|
|
|
}
|
|
|
|
...
|
...
|
|