...
|
...
|
@@ -504,7 +504,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi |
|
|
*/
|
|
|
public OrderSummaryResp selectOrderNumByUid(int uid) {
|
|
|
//todo add cache
|
|
|
Integer num = sellerOrderMapper.selectOrderNumByUid(uid);
|
|
|
Integer num = sellerOrderMapper.selectOrderNumByUid(uid, Arrays.asList(SellerOrderStatus.HAS_PAYED.getCode()));
|
|
|
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);
|
...
|
...
|
|