Authored by chenchao

optimized construct

@@ -16,6 +16,7 @@ import com.yohoufo.order.service.IBuyerOrderService; @@ -16,6 +16,7 @@ import com.yohoufo.order.service.IBuyerOrderService;
16 import com.yohoufo.order.service.impl.AppraiseService; 16 import com.yohoufo.order.service.impl.AppraiseService;
17 import com.yohoufo.order.service.impl.SellerFeeService; 17 import com.yohoufo.order.service.impl.SellerFeeService;
18 import com.yohoufo.order.service.impl.SellerOrderService; 18 import com.yohoufo.order.service.impl.SellerOrderService;
  19 +import com.yohoufo.order.service.impl.SellerOrderViewService;
19 import com.yohoufo.order.utils.LoggerUtils; 20 import com.yohoufo.order.utils.LoggerUtils;
20 import org.apache.commons.lang3.StringUtils; 21 import org.apache.commons.lang3.StringUtils;
21 import org.slf4j.Logger; 22 import org.slf4j.Logger;
@@ -40,6 +41,9 @@ public class BuyerOrderController { @@ -40,6 +41,9 @@ public class BuyerOrderController {
40 private SellerOrderService sellerOrderService; 41 private SellerOrderService sellerOrderService;
41 42
42 @Autowired 43 @Autowired
  44 + private SellerOrderViewService sellerOrderViewService;
  45 +
  46 + @Autowired
43 private SellerFeeService sellerFeeService; 47 private SellerFeeService sellerFeeService;
44 48
45 @Autowired 49 @Autowired
@@ -279,7 +283,7 @@ public class BuyerOrderController { @@ -279,7 +283,7 @@ public class BuyerOrderController {
279 orderCntResp = buyerOrderService.getOrderCnt(orderRequest, OrderListType.ALL); 283 orderCntResp = buyerOrderService.getOrderCnt(orderRequest, OrderListType.ALL);
280 break; 284 break;
281 case SELL: 285 case SELL:
282 - orderCntResp = sellerOrderService.getOrderCnt(orderRequest, SellerOrderListType.ALL); 286 + orderCntResp = sellerOrderViewService.getOrderCnt(orderRequest, SellerOrderListType.ALL);
283 break; 287 break;
284 default: 288 default:
285 orderCntResp = OrderCntResp.builder().uid(uid).cnt(0L).actor(tabType).build(); 289 orderCntResp = OrderCntResp.builder().uid(uid).cnt(0L).actor(tabType).build();
@@ -8,6 +8,7 @@ import com.yohoufo.order.model.response.*; @@ -8,6 +8,7 @@ import com.yohoufo.order.model.response.*;
8 import com.yohoufo.order.service.IBuyerOrderService; 8 import com.yohoufo.order.service.IBuyerOrderService;
9 import com.yohoufo.order.service.IShoppingService; 9 import com.yohoufo.order.service.IShoppingService;
10 import com.yohoufo.order.service.impl.SellerOrderService; 10 import com.yohoufo.order.service.impl.SellerOrderService;
  11 +import com.yohoufo.order.service.impl.SellerOrderViewService;
11 import com.yohoufo.order.utils.CouponCodeUtils; 12 import com.yohoufo.order.utils.CouponCodeUtils;
12 import com.yohoufo.order.utils.LoggerUtils; 13 import com.yohoufo.order.utils.LoggerUtils;
13 import org.apache.commons.lang3.StringUtils; 14 import org.apache.commons.lang3.StringUtils;
@@ -27,7 +28,7 @@ public class ShoppingController { @@ -27,7 +28,7 @@ public class ShoppingController {
27 28
28 29
29 @Autowired 30 @Autowired
30 - SellerOrderService sellerOrderService; 31 + private SellerOrderViewService sellerOrderViewService;
31 32
32 @Autowired 33 @Autowired
33 IBuyerOrderService ibuyerOrderService; 34 IBuyerOrderService ibuyerOrderService;
@@ -112,7 +113,7 @@ public class ShoppingController { @@ -112,7 +113,7 @@ public class ShoppingController {
112 113
113 logger.info("in ufo.order.summary, uid {}, clientType is {}", uid, clientType); 114 logger.info("in ufo.order.summary, uid {}, clientType is {}", uid, clientType);
114 115
115 - OrderSummaryResp orderSummaryResp1 = sellerOrderService.selectOrderNumByUid(uid); 116 + OrderSummaryResp orderSummaryResp1 = sellerOrderViewService.selectOrderNumByUid(uid);
116 117
117 OrderSummaryResp orderSummaryResp2 = ibuyerOrderService.selectOrderNumByUid(uid); 118 OrderSummaryResp orderSummaryResp2 = ibuyerOrderService.selectOrderNumByUid(uid);
118 119
1 package com.yohoufo.order.convert; 1 package com.yohoufo.order.convert;
2 2
3 -import com.yohobuy.ufo.model.order.common.SkupStatus; 3 +import com.yohobuy.ufo.model.order.bo.GoodsInfo;
4 import com.yohobuy.ufo.model.order.constants.SkupType; 4 import com.yohobuy.ufo.model.order.constants.SkupType;
5 import com.yohoufo.common.helper.ImageUrlAssist; 5 import com.yohoufo.common.helper.ImageUrlAssist;
6 import com.yohoufo.dal.order.model.SellerOrderGoods; 6 import com.yohoufo.dal.order.model.SellerOrderGoods;
7 -import com.yohobuy.ufo.model.order.bo.GoodsInfo;  
8 7
9 import java.util.Optional; 8 import java.util.Optional;
10 9
@@ -108,8 +108,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic @@ -108,8 +108,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
108 @Autowired 108 @Autowired
109 private BuyerOrderMapper buyerOrderMapper; 109 private BuyerOrderMapper buyerOrderMapper;
110 110
111 - @Autowired  
112 - private OrderCacheService orderCacheService; 111 +
113 112
114 @Autowired 113 @Autowired
115 private CacheCleaner cacheCleaner; 114 private CacheCleaner cacheCleaner;
@@ -168,6 +167,8 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic @@ -168,6 +167,8 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
168 @Autowired 167 @Autowired
169 private ResourcesProxyService resourcesProxyService; 168 private ResourcesProxyService resourcesProxyService;
170 169
  170 + @Autowired
  171 + private SkupListService skupListService;
171 172
172 private static final int MAX_DEAL = 10; 173 private static final int MAX_DEAL = 10;
173 174
@@ -340,6 +341,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic @@ -340,6 +341,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
340 * @param req 341 * @param req
341 * @return 342 * @return
342 */ 343 */
  344 + @Deprecated
343 public boolean batchCancel(SellerOrderBatchCancelReq req){ 345 public boolean batchCancel(SellerOrderBatchCancelReq req){
344 boolean result = false; 346 boolean result = false;
345 //check 347 //check
@@ -499,6 +501,9 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic @@ -499,6 +501,9 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
499 return true; 501 return true;
500 } 502 }
501 503
  504 +
  505 +
  506 +
502 private void checkBuyCanDelStatus(Integer status) { 507 private void checkBuyCanDelStatus(Integer status) {
503 if (!ActionStatusHold.getSellerCanDelBuyerStatusList().contains(status)) { 508 if (!ActionStatusHold.getSellerCanDelBuyerStatusList().contains(status)) {
504 throw new ServiceException(ServiceError.ORDER_STATUS_INVALIDATE); 509 throw new ServiceException(ServiceError.ORDER_STATUS_INVALIDATE);
@@ -531,10 +536,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic @@ -531,10 +536,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
531 } 536 }
532 537
533 538
534 - public PageResp<OrderListInfo> getOrderListForErpGW(OrderListRequest request){  
535 539
536 - return sellerOrderListService.getOrderListForErpGW(request);  
537 - }  
538 540
539 @Override 541 @Override
540 public PageResp<OrderListInfo> getOrderList(OrderListRequest request, boolean isPlatform){ 542 public PageResp<OrderListInfo> getOrderList(OrderListRequest request, boolean isPlatform){
@@ -543,57 +545,19 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic @@ -543,57 +545,19 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
543 } 545 }
544 546
545 @Override 547 @Override
  548 + public PageResp<OrderListInfo> getOrderListForErpGW(OrderListRequest request){
  549 +
  550 + return sellerOrderListService.getOrderListForErpGW(request);
  551 + }
  552 +
  553 + @Override
546 public OrderDetailInfo getOrderDetail(OrderRequest orderRequest) { 554 public OrderDetailInfo getOrderDetail(OrderRequest orderRequest) {
547 return sellerOrderDetailService.getOrderDetail(orderRequest); 555 return sellerOrderDetailService.getOrderDetail(orderRequest);
548 } 556 }
549 557
550 - /**  
551 - * 根据用户id查询卖的单数  
552 - * 出售栏目显示的数量=出售tab下商品“出售中”状态的数量+待发货tab下所有的订单数+已发货tab下所有订单数  
553 - * @param uid  
554 - * @return  
555 - */  
556 - public OrderSummaryResp selectOrderNumByUid(int uid) {  
557 -  
558 - Integer cnt = orderCacheService.getOrderSummary(uid, TabType.SELL);  
559 - if (cnt == null) {  
560 - //todo add cache  
561 - Integer num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()));  
562 - List<SellerOrderListType> types = Arrays.asList(SellerOrderListType.WAITING_SEND, SellerOrderListType.WAITING_PAY);  
563 - List<Integer> statusList = types.parallelStream().flatMap(solt -> solt.getStatus().parallelStream()).collect(Collectors.toList());  
564 - Integer buyerOrderNum = buyerOrderMapper.selectCntBySellerUid(uid, statusList);  
565 - log.info("in seller order count uid {}, num {}, buyerOrderNum {}", uid, num, buyerOrderNum);  
566 - if (num == null) {  
567 - cnt = 0;  
568 - } else {  
569 - if (buyerOrderNum != null) {  
570 - cnt = num + buyerOrderNum;  
571 - } else {  
572 - cnt = num;  
573 - }  
574 - }  
575 - }  
576 558
577 - if (cnt != null){  
578 - orderCacheService.cacheOrderSummary(uid, TabType.SELL, cnt);  
579 - }  
580 - return new OrderSummaryResp("sell", cnt);  
581 - }  
582 559
583 - public OrderCntResp getOrderCnt(OrderRequest orderRequest, SellerOrderListType listType){  
584 - log.info("in seller getOrderCnt req {} listType {}", orderRequest, listType);  
585 - int cnt ;  
586 - switch (listType){  
587 - case ALL:  
588 - cnt = sellerOrderGoodsMapper.selectCntByUid(orderRequest.getUid());  
589 - break;  
590 - default:  
591 - cnt = 0;  
592 - break;  
593 - }  
594 - return OrderCntResp.builder().cnt(cnt).uid(orderRequest.getUid())  
595 - .actor(orderRequest.getTabType()).build();  
596 - } 560 +
597 561
598 562
599 /** 563 /**
@@ -810,19 +774,9 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic @@ -810,19 +774,9 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
810 } 774 }
811 } 775 }
812 776
813 - /**  
814 - * 商家未完成订单数量  
815 - */  
816 - public int getUnfinishedOrderBySellerUid(Integer uid){  
817 - log.info("in seller order getUnfinishedOrderBySellerUid count uid {} ", uid);  
818 - List<Integer> statusList = ActionStatusHold.getUnfinishedOrderStatusCode();  
819 - Integer total = buyerOrderMapper.selectCntBySellerUidStatus(uid, statusList);  
820 - log.info("in seller order getUnfinishedOrderBySellerUid count uid {}, total {} ", uid, total);  
821 - return total;  
822 - }  
823 777
824 - @Autowired  
825 - private SkupListService skupListService; 778 +
  779 +
826 780
827 public SellerOrderListResp refresh(OrderRequest req){ 781 public SellerOrderListResp refresh(OrderRequest req){
828 int uid = req.getUid(); 782 int uid = req.getUid();
@@ -2,13 +2,21 @@ package com.yohoufo.order.service.impl; @@ -2,13 +2,21 @@ package com.yohoufo.order.service.impl;
2 2
3 import com.yohobuy.ufo.model.order.bo.ButtonShowBo; 3 import com.yohobuy.ufo.model.order.bo.ButtonShowBo;
4 import com.yohobuy.ufo.model.order.bo.PrdPrice; 4 import com.yohobuy.ufo.model.order.bo.PrdPrice;
5 -import com.yohobuy.ufo.model.order.common.ButtonShow;  
6 -import com.yohobuy.ufo.model.order.common.SellerType;  
7 -import com.yohobuy.ufo.model.order.common.SkupStatus; 5 +import com.yohobuy.ufo.model.order.common.*;
  6 +import com.yohobuy.ufo.model.order.resp.OrderCntResp;
  7 +import com.yohobuy.ufo.model.order.resp.OrderListInfo;
  8 +import com.yohobuy.ufo.model.order.resp.PageResp;
8 import com.yohobuy.ufo.model.response.StorageDataResp; 9 import com.yohobuy.ufo.model.response.StorageDataResp;
9 import com.yohoufo.common.utils.BigDecimalHelper; 10 import com.yohoufo.common.utils.BigDecimalHelper;
  11 +import com.yohoufo.dal.order.BuyerOrderMapper;
  12 +import com.yohoufo.dal.order.SellerOrderGoodsMapper;
  13 +import com.yohoufo.order.common.ActionStatusHold;
10 import com.yohoufo.order.common.Payment; 14 import com.yohoufo.order.common.Payment;
11 import com.yohoufo.order.constants.ViewType; 15 import com.yohoufo.order.constants.ViewType;
  16 +import com.yohoufo.order.model.request.OrderListRequest;
  17 +import com.yohoufo.order.model.request.OrderRequest;
  18 +import com.yohoufo.order.model.response.OrderSummaryResp;
  19 +import com.yohoufo.order.service.cache.OrderCacheService;
12 import com.yohoufo.order.service.proxy.ProductProxyService; 20 import com.yohoufo.order.service.proxy.ProductProxyService;
13 import com.yohoufo.order.utils.LoggerUtils; 21 import com.yohoufo.order.utils.LoggerUtils;
14 import com.yohoufo.order.utils.MsgHelper; 22 import com.yohoufo.order.utils.MsgHelper;
@@ -21,6 +29,7 @@ import java.math.BigDecimal; @@ -21,6 +29,7 @@ import java.math.BigDecimal;
21 import java.util.ArrayList; 29 import java.util.ArrayList;
22 import java.util.Arrays; 30 import java.util.Arrays;
23 import java.util.List; 31 import java.util.List;
  32 +import java.util.stream.Collectors;
24 33
25 /** 34 /**
26 * Created by chao.chen on 2018/11/26. 35 * Created by chao.chen on 2018/11/26.
@@ -32,6 +41,15 @@ public class SellerOrderViewService { @@ -32,6 +41,15 @@ public class SellerOrderViewService {
32 @Autowired 41 @Autowired
33 ProductProxyService productProxyService; 42 ProductProxyService productProxyService;
34 43
  44 + @Autowired
  45 + private BuyerOrderMapper buyerOrderMapper;
  46 +
  47 + @Autowired
  48 + private OrderCacheService orderCacheService;
  49 +
  50 + @Autowired
  51 + private SellerOrderGoodsMapper sellerOrderGoodsMapper;
  52 +
35 List<Integer> SHOW_OVER_FLOW_PRICE_STATUS = Arrays.asList(SkupStatus.CAN_SELL.getCode()); 53 List<Integer> SHOW_OVER_FLOW_PRICE_STATUS = Arrays.asList(SkupStatus.CAN_SELL.getCode());
36 54
37 public boolean showOverFlowPrice(int skupStatus){ 55 public boolean showOverFlowPrice(int skupStatus){
@@ -94,6 +112,65 @@ public class SellerOrderViewService { @@ -94,6 +112,65 @@ public class SellerOrderViewService {
94 return prdPrice; 112 return prdPrice;
95 } 113 }
96 114
  115 +
  116 + /**
  117 + * 商家未完成订单数量
  118 + */
  119 + public int getUnfinishedOrderBySellerUid(Integer uid){
  120 + logger.info("in seller order getUnfinishedOrderBySellerUid count uid {} ", uid);
  121 + List<Integer> statusList = ActionStatusHold.getUnfinishedOrderStatusCode();
  122 + Integer total = buyerOrderMapper.selectCntBySellerUidStatus(uid, statusList);
  123 + logger.info("in seller order getUnfinishedOrderBySellerUid count uid {}, total {} ", uid, total);
  124 + return total;
  125 + }
  126 + /**
  127 + * 根据用户id查询卖的单数
  128 + * 出售栏目显示的数量=出售tab下商品“出售中”状态的数量+待发货tab下所有的订单数+已发货tab下所有订单数
  129 + * @param uid
  130 + * @return
  131 + */
  132 + public OrderSummaryResp selectOrderNumByUid(int uid) {
  133 +
  134 + Integer cnt = orderCacheService.getOrderSummary(uid, TabType.SELL);
  135 + if (cnt == null) {
  136 + //todo add cache
  137 + Integer num = sellerOrderGoodsMapper.selectCntByUidStatusList(uid, Arrays.asList(SkupStatus.CAN_SELL.getCode()));
  138 + List<SellerOrderListType> types = Arrays.asList(SellerOrderListType.WAITING_SEND, SellerOrderListType.WAITING_PAY);
  139 + List<Integer> statusList = types.parallelStream().flatMap(solt -> solt.getStatus().parallelStream()).collect(Collectors.toList());
  140 + Integer buyerOrderNum = buyerOrderMapper.selectCntBySellerUid(uid, statusList);
  141 + logger.info("in seller order count uid {}, num {}, buyerOrderNum {}", uid, num, buyerOrderNum);
  142 + if (num == null) {
  143 + cnt = 0;
  144 + } else {
  145 + if (buyerOrderNum != null) {
  146 + cnt = num + buyerOrderNum;
  147 + } else {
  148 + cnt = num;
  149 + }
  150 + }
  151 + }
  152 +
  153 + if (cnt != null){
  154 + orderCacheService.cacheOrderSummary(uid, TabType.SELL, cnt);
  155 + }
  156 + return new OrderSummaryResp("sell", cnt);
  157 + }
  158 +
  159 + public OrderCntResp getOrderCnt(OrderRequest orderRequest, SellerOrderListType listType){
  160 + logger.info("in seller getOrderCnt req {} listType {}", orderRequest, listType);
  161 + int cnt ;
  162 + switch (listType){
  163 + case ALL:
  164 + cnt = sellerOrderGoodsMapper.selectCntByUid(orderRequest.getUid());
  165 + break;
  166 + default:
  167 + cnt = 0;
  168 + break;
  169 + }
  170 + return OrderCntResp.builder().cnt(cnt).uid(orderRequest.getUid())
  171 + .actor(orderRequest.getTabType()).build();
  172 + }
  173 +
97 String buildLeastPriceTips(BigDecimal leastPrice){ 174 String buildLeastPriceTips(BigDecimal leastPrice){
98 return "该尺码最低售价¥" + BigDecimalHelper.formatNumber(leastPrice, BigDecimalHelper.FORMAT_NOPOINT); 175 return "该尺码最低售价¥" + BigDecimalHelper.formatNumber(leastPrice, BigDecimalHelper.FORMAT_NOPOINT);
99 } 176 }
@@ -21,9 +21,7 @@ import com.yohoufo.dal.order.model.EntrySellerRechargeOrder; @@ -21,9 +21,7 @@ import com.yohoufo.dal.order.model.EntrySellerRechargeOrder;
21 import com.yohoufo.dal.order.model.SellerWallet; 21 import com.yohoufo.dal.order.model.SellerWallet;
22 import com.yohoufo.dal.order.model.StoredSeller; 22 import com.yohoufo.dal.order.model.StoredSeller;
23 import com.yohoufo.order.common.EnterQuitEnum; 23 import com.yohoufo.order.common.EnterQuitEnum;
24 -import com.yohoufo.order.common.InviterType;  
25 import com.yohoufo.order.common.Payment; 24 import com.yohoufo.order.common.Payment;
26 -import com.yohoufo.order.event.BuyerConfirmEvent;  
27 import com.yohoufo.order.event.InviteRecordEvent; 25 import com.yohoufo.order.event.InviteRecordEvent;
28 import com.yohoufo.order.model.request.ShoppingRequest; 26 import com.yohoufo.order.model.request.ShoppingRequest;
29 import com.yohoufo.order.model.response.OrderSubmitResponse; 27 import com.yohoufo.order.model.response.OrderSubmitResponse;
@@ -34,7 +32,6 @@ import com.yohoufo.order.service.MerchantOrderPaymentService; @@ -34,7 +32,6 @@ import com.yohoufo.order.service.MerchantOrderPaymentService;
34 import com.yohoufo.order.service.cache.StoredSellerCacheService; 32 import com.yohoufo.order.service.cache.StoredSellerCacheService;
35 import com.yohoufo.order.service.proxy.InBoxFacade; 33 import com.yohoufo.order.service.proxy.InBoxFacade;
36 import com.yohoufo.order.service.support.codegenerator.OrderCodeGenerator; 34 import com.yohoufo.order.service.support.codegenerator.OrderCodeGenerator;
37 -import org.apache.commons.lang3.StringUtils;  
38 import org.slf4j.Logger; 35 import org.slf4j.Logger;
39 import org.slf4j.LoggerFactory; 36 import org.slf4j.LoggerFactory;
40 import org.springframework.beans.factory.annotation.Autowired; 37 import org.springframework.beans.factory.annotation.Autowired;
@@ -67,7 +64,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi @@ -67,7 +64,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi
67 EntrySellerRechargeOrderMapper entrySellerRechargeOrderMapper; 64 EntrySellerRechargeOrderMapper entrySellerRechargeOrderMapper;
68 65
69 @Autowired 66 @Autowired
70 - SellerOrderService sellerOrderService; 67 + SellerOrderViewService sellerOrderViewService;
71 68
72 @Autowired 69 @Autowired
73 MerchantOrderPaymentService merchantOrderPaymentService; 70 MerchantOrderPaymentService merchantOrderPaymentService;
@@ -88,9 +85,6 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi @@ -88,9 +85,6 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi
88 private SkupService skupService; 85 private SkupService skupService;
89 86
90 @Autowired 87 @Autowired
91 - private SellerService sellerService;  
92 -  
93 - @Autowired  
94 private SellerEnterApplyService sellerEnterApplyService; 88 private SellerEnterApplyService sellerEnterApplyService;
95 @Autowired 89 @Autowired
96 SellerWalletMapper sellerWalletMapper; 90 SellerWalletMapper sellerWalletMapper;
@@ -258,7 +252,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi @@ -258,7 +252,7 @@ public class StoredSellerDepositServiceImpl implements IStoredSellerDepositServi
258 Integer expectStatus= StoredSellerStatusEnum.entered.getId(); 252 Integer expectStatus= StoredSellerStatusEnum.entered.getId();
259 253
260 // 检查商户是否有出售中的商品,或者有订单未完成的 ,都不可以提交 254 // 检查商户是否有出售中的商品,或者有订单未完成的 ,都不可以提交
261 - Integer total=sellerOrderService.getUnfinishedOrderBySellerUid(uid); 255 + Integer total= sellerOrderViewService.getUnfinishedOrderBySellerUid(uid);
262 256
263 if(total!=null && total>0){ 257 if(total!=null && total>0){
264 logger.error("quitStoredSeller not allowed cause of unfinished order ,uid {} ,total {}" ,uid,total); 258 logger.error("quitStoredSeller not allowed cause of unfinished order ,uid {} ,total {}" ,uid,total);
@@ -101,7 +101,7 @@ public class ImperfectPublishProcessor implements PublishProcessor<ImperfectOrde @@ -101,7 +101,7 @@ public class ImperfectPublishProcessor implements PublishProcessor<ImperfectOrde
101 boolean isEntryShop = sellerTypeNode.isCommonEntry() || sellerTypeNode.isSuper(); 101 boolean isEntryShop = sellerTypeNode.isCommonEntry() || sellerTypeNode.isSuper();
102 SkupStatus tss; 102 SkupStatus tss;
103 if (isEntryShop){ 103 if (isEntryShop){
104 - tss = SkupStatus.WAITING_AUDIT; 104 + tss = SkupStatus.CAN_SELL;
105 }else{ 105 }else{
106 tss = SkupStatus.CAN_NOT_SELL; 106 tss = SkupStatus.CAN_NOT_SELL;
107 } 107 }