Authored by chenchao

fix seller order total number

@@ -112,7 +112,7 @@ public class SellerOrderViewService { @@ -112,7 +112,7 @@ public class SellerOrderViewService {
112 Integer cnt = orderCacheService.getOrderSummary(uid, TabType.SELL, businessClient); 112 Integer cnt = orderCacheService.getOrderSummary(uid, TabType.SELL, businessClient);
113 if (cnt == null) { 113 if (cnt == null) {
114 final BusinessClientEnum bce = OrderAssist.findBusinessClient(businessClient); 114 final BusinessClientEnum bce = OrderAssist.findBusinessClient(businessClient);
115 - List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient(bce); 115 + List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient4Seller(bce);
116 Integer num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()), orderTypes); 116 Integer num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()), orderTypes);
117 List<SellerOrderListType> types = Arrays.asList(SellerOrderListType.SEND_OUT, SellerOrderListType.WAITING_PAY); 117 List<SellerOrderListType> types = Arrays.asList(SellerOrderListType.SEND_OUT, SellerOrderListType.WAITING_PAY);
118 List<Integer> statusList = types.parallelStream().flatMap(solt -> solt.getStatus().parallelStream()).collect(Collectors.toList()); 118 List<Integer> statusList = types.parallelStream().flatMap(solt -> solt.getStatus().parallelStream()).collect(Collectors.toList());
@@ -141,7 +141,7 @@ public class SellerOrderViewService { @@ -141,7 +141,7 @@ public class SellerOrderViewService {
141 final String actor = TabType.SELL.getValue(); 141 final String actor = TabType.SELL.getValue();
142 //not hit in cache 142 //not hit in cache
143 if (CollectionUtils.isEmpty(list)) { 143 if (CollectionUtils.isEmpty(list)) {
144 - List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient(bce); 144 + List<Integer> orderTypes = OrderAssist.matchOrderTypesByBusinessClient4Seller(bce);
145 list = new ArrayList<>(8); 145 list = new ArrayList<>(8);
146 SellerOrderListType insale = SellerOrderListType.IN_SALE; 146 SellerOrderListType insale = SellerOrderListType.IN_SALE;
147 int num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()), orderTypes); 147 int num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()), orderTypes);
@@ -145,6 +145,11 @@ public class OrderAssist { @@ -145,6 +145,11 @@ public class OrderAssist {
145 return null; 145 return null;
146 } 146 }
147 147
  148 + public static List<Integer> matchOrderTypesByBusinessClient4Seller(BusinessClientEnum businessClientEnum){
  149 +
  150 + return null;
  151 + }
  152 +
148 public static String matchClientName(BusinessClientEnum businessClientEnum){ 153 public static String matchClientName(BusinessClientEnum businessClientEnum){
149 if (Objects.nonNull(businessClientEnum) 154 if (Objects.nonNull(businessClientEnum)
150 && BusinessClientEnum.TAOBAO_FLEAMARKET_CLIENT.equals(businessClientEnum)){ 155 && BusinessClientEnum.TAOBAO_FLEAMARKET_CLIENT.equals(businessClientEnum)){