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