...
|
...
|
@@ -111,8 +111,9 @@ public class SellerOrderViewService { |
|
|
|
|
|
Integer cnt = orderCacheService.getOrderSummary(uid, TabType.SELL, businessClient);
|
|
|
if (cnt == null) {
|
|
|
|
|
|
Integer num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()));
|
|
|
final BusinessClientEnum bce = OrderAssist.findBusinessClient(businessClient);
|
|
|
List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient(bce);
|
|
|
Integer num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()), orderTypes);
|
|
|
List<SellerOrderListType> types = Arrays.asList(SellerOrderListType.SEND_OUT, SellerOrderListType.WAITING_PAY);
|
|
|
List<Integer> statusList = types.parallelStream().flatMap(solt -> solt.getStatus().parallelStream()).collect(Collectors.toList());
|
|
|
Integer buyerOrderNum = buyerOrderMapper.selectCntBySellerUid(uid, statusList);
|
...
|
...
|
@@ -140,9 +141,10 @@ public class SellerOrderViewService { |
|
|
final String actor = TabType.SELL.getValue();
|
|
|
//not hit in cache
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient(bce);
|
|
|
list = new ArrayList<>(8);
|
|
|
SellerOrderListType insale = SellerOrderListType.IN_SALE;
|
|
|
int num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()));
|
|
|
int num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()), orderTypes);
|
|
|
OrderSummaryResp sellerGoodsSummary = new OrderSummaryResp(actor, insale.getType(), num);
|
|
|
list.add(sellerGoodsSummary);
|
|
|
//
|
...
|
...
|
|