...
|
...
|
@@ -504,7 +504,9 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi |
|
|
*/
|
|
|
public OrderSummaryResp selectOrderNumByUid(int uid) {
|
|
|
//todo add cache
|
|
|
Integer num = sellerOrderMapper.selectOrderNumByUid(uid);
|
|
|
SellerOrderListType listType = SellerOrderListType.IN_SALE;
|
|
|
List<Integer> statusListInSale = listType.getStatus();
|
|
|
Integer num = sellerOrderMapper.selectOrderNumByUid(uid, statusListInSale);
|
|
|
List<SellerOrderListType> types = Arrays.asList(SellerOrderListType.WAITING_SEND, SellerOrderListType.WAITING_PAY);
|
|
|
List<Integer> statusList = types.parallelStream().flatMap(solt -> solt.getStatus().parallelStream()).collect(Collectors.toList());
|
|
|
Integer buyerOrderNum = buyerOrderMapper.selectCntBySellerUid(uid, statusList);
|
...
|
...
|
|