Authored by LUOXC

虚假发货

@@ -34,7 +34,7 @@ public class SellerWalletDetail { @@ -34,7 +34,7 @@ public class SellerWalletDetail {
34 34
35 public enum Type { 35 public enum Type {
36 // 1:充值,11:发布上架,12:加价,13:减价, 36 // 1:充值,11:发布上架,12:加价,13:减价,
37 - // 21卖家下架,22系统下架,31卖家不卖,32卖家超时发货,33鉴定不通过, 37 + // 21卖家下架,22系统下架,31卖家不卖,32卖家超时发货,33鉴定不通过,34卖家虚假发货
38 // 41买家取消(无物流), 42买家取消(有物流), 38 // 41买家取消(无物流), 42买家取消(有物流),
39 // 51鉴定通过, 39 // 51鉴定通过,
40 // 61退还保证金(退出商家) 40 // 61退还保证金(退出商家)
@@ -47,7 +47,7 @@ public class SellerWalletDetail { @@ -47,7 +47,7 @@ public class SellerWalletDetail {
47 SELLER_CANCEL("卖家不卖了", 31), 47 SELLER_CANCEL("卖家不卖了", 31),
48 SELLER_OVER_TIME("卖家发货超时", 32), 48 SELLER_OVER_TIME("卖家发货超时", 32),
49 APPRAISE_FAIL("鉴定不通过", 33), 49 APPRAISE_FAIL("鉴定不通过", 33),
50 - CS_CANCEL_BEFORE_DEPOT_RECEIVE("鉴定中心收货前客服取消", 34), 50 + SELLER_SHAM_SEND_OUT("卖家虚假发货", 34),
51 BUYER_CANCEL_NO_DELIVERY("买家取消(无物流)", 41), 51 BUYER_CANCEL_NO_DELIVERY("买家取消(无物流)", 41),
52 BUYER_CANCEL_DELIVERY("买家取消(有物流)", 42), 52 BUYER_CANCEL_DELIVERY("买家取消(有物流)", 42),
53 APPRAISE_OK("鉴定通过", 51), 53 APPRAISE_OK("鉴定通过", 51),
@@ -23,7 +23,7 @@ public enum AlarmConfig { @@ -23,7 +23,7 @@ public enum AlarmConfig {
23 "buyerOrder.transferEarnestMoney", 23 "buyerOrder.transferEarnestMoney",
24 "buyerOrder.refundGoodsMoney"), 24 "buyerOrder.refundGoodsMoney"),
25 25
26 - CS_CANCEL_BEFORE_DEPOT_RECEIVE("鉴定中心收货前客服取消", 26 + SELLER_SHAM_SEND_OUT("卖家虚假发货",
27 "buyerOrder.transferEarnestMoney", 27 "buyerOrder.transferEarnestMoney",
28 "buyerOrder.refundGoodsMoney"); 28 "buyerOrder.refundGoodsMoney");
29 29
@@ -15,7 +15,7 @@ import lombok.experimental.Builder; @@ -15,7 +15,7 @@ import lombok.experimental.Builder;
15 @AllArgsConstructor 15 @AllArgsConstructor
16 public class BuyerRefundCouponEvent extends Event { 16 public class BuyerRefundCouponEvent extends Event {
17 public enum BizCase{ 17 public enum BizCase{
18 - APPRAISE_FAIL, SELLER_DELIVER_TIMEOUT, SELLER_PLAY_BUYER, BUYER_CANCEL_BSD, BUYER_CANCEL_BDR,CS_CANCEL_BEFORE_DEPOT_RECEIVE 18 + APPRAISE_FAIL, SELLER_DELIVER_TIMEOUT, SELLER_PLAY_BUYER, BUYER_CANCEL_BSD, BUYER_CANCEL_BDR, SELLER_SHAM_SEND_OUT
19 } 19 }
20 Integer uid; 20 Integer uid;
21 21
@@ -182,7 +182,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { @@ -182,7 +182,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService {
182 // 支付成功回调超时,但已经被超时取消,这种场景是可以退款的 182 // 支付成功回调超时,但已经被超时取消,这种场景是可以退款的
183 OrderStatus.BUYER_CANCEL_TIMEOUT.getCode(), 183 OrderStatus.BUYER_CANCEL_TIMEOUT.getCode(),
184 OrderStatus.BUYER_CANCEL_BEFORE_PAY.getCode(), 184 OrderStatus.BUYER_CANCEL_BEFORE_PAY.getCode(),
185 - OrderStatus.CS_CANCEL_BEFORE_DEPOT_RECEIVE.getCode()); 185 + OrderStatus.SELLER_SHAM_SEND_OUT.getCode());
186 186
187 @Override 187 @Override
188 public boolean canRefund(OrderInfo orderInfo) { 188 public boolean canRefund(OrderInfo orderInfo) {
@@ -632,7 +632,7 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { @@ -632,7 +632,7 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService {
632 } else if (type == SellerWalletDetail.Type.SELLER_CANCEL 632 } else if (type == SellerWalletDetail.Type.SELLER_CANCEL
633 || type == SellerWalletDetail.Type.SELLER_OVER_TIME 633 || type == SellerWalletDetail.Type.SELLER_OVER_TIME
634 || type == SellerWalletDetail.Type.APPRAISE_FAIL 634 || type == SellerWalletDetail.Type.APPRAISE_FAIL
635 - || type == SellerWalletDetail.Type.CS_CANCEL_BEFORE_DEPOT_RECEIVE) { 635 + || type == SellerWalletDetail.Type.SELLER_SHAM_SEND_OUT) {
636 // 处罚保证金 636 // 处罚保证金
637 // 如果是超级卖家 637 // 如果是超级卖家
638 sellerType = sellerService.getEntrySellerType(uid); 638 sellerType = sellerService.getEntrySellerType(uid);
@@ -166,20 +166,20 @@ public class BuyerOrderCancelService { @@ -166,20 +166,20 @@ public class BuyerOrderCancelService {
166 .cancel(); 166 .cancel();
167 } 167 }
168 168
169 - public void cancelForCsBeforeDepotReceive(int uid, long orderCode){ 169 + public void cancelForSellerShamSendOut(int uid, long orderCode){
170 new BuyerOrderCancelHandler(uid, orderCode) 170 new BuyerOrderCancelHandler(uid, orderCode)
171 .withBuyerOrderSupplier(buyerOrderMapper, buyerOrderGoodsMapper) 171 .withBuyerOrderSupplier(buyerOrderMapper, buyerOrderGoodsMapper)
172 // 卖家发货 -> 鉴定中心收货前客服取消 172 // 卖家发货 -> 鉴定中心收货前客服取消
173 - .withStateTransition(OrderStatus.SELLER_SEND_OUT, OrderStatus.CS_CANCEL_BEFORE_DEPOT_RECEIVE, orderStatusFlowService) 173 + .withStateTransition(OrderStatus.SELLER_SEND_OUT, OrderStatus.SELLER_SHAM_SEND_OUT, orderStatusFlowService)
174 // 保证金分账给平台和买家 174 // 保证金分账给平台和买家
175 - .withTransfer(transferService, TransferCase.EARNEST_MONEY_TO_BUYER, SellerWalletDetail.Type.CS_CANCEL_BEFORE_DEPOT_RECEIVE) 175 + .withTransfer(transferService, TransferCase.EARNEST_MONEY_TO_BUYER, SellerWalletDetail.Type.SELLER_SHAM_SEND_OUT)
176 // 退买家货款 176 // 退买家货款
177 .withRefundGoodsMoney(payRefundService::refund).refundCase(RefundCase.BUYER_GOODS_MONEY).and() 177 .withRefundGoodsMoney(payRefundService::refund).refundCase(RefundCase.BUYER_GOODS_MONEY).and()
178 // 通知卖家涉及虚假发货 178 // 通知卖家涉及虚假发货
179 .withNoticeSeller(inBoxFacade::sellerDeliverNotice, 4).sellerOrderGoodsMapper(sellerOrderGoodsMapper).and() 179 .withNoticeSeller(inBoxFacade::sellerDeliverNotice, 4).sellerOrderGoodsMapper(sellerOrderGoodsMapper).and()
180 // 退优惠券 180 // 退优惠券
181 - .withRefundCoupon(BuyerRefundCouponEvent.BizCase.CS_CANCEL_BEFORE_DEPOT_RECEIVE)  
182 - .withFailAlarm(AlarmConfig.CS_CANCEL_BEFORE_DEPOT_RECEIVE) 181 + .withRefundCoupon(BuyerRefundCouponEvent.BizCase.SELLER_SHAM_SEND_OUT)
  182 + .withFailAlarm(AlarmConfig.SELLER_SHAM_SEND_OUT)
183 .cancel(); 183 .cancel();
184 } 184 }
185 185
@@ -324,7 +324,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { @@ -324,7 +324,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
324 324
325 @Override 325 @Override
326 public void cancelByCS(int uid, long orderCode) { 326 public void cancelByCS(int uid, long orderCode) {
327 - buyerOrderCancelService.cancelForCsBeforeDepotReceive(uid, orderCode); 327 + buyerOrderCancelService.cancelForSellerShamSendOut(uid, orderCode);
328 } 328 }
329 329
330 @Override 330 @Override
@@ -667,8 +667,8 @@ public class InBoxFacade { @@ -667,8 +667,8 @@ public class InBoxFacade {
667 ibt = InboxBusinessTypeEnum.NOTICE_SELLER_DELIVER_GOODS_FAIL; 667 ibt = InboxBusinessTypeEnum.NOTICE_SELLER_DELIVER_GOODS_FAIL;
668 smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTIFIED_SEND_FAILED; 668 smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTIFIED_SEND_FAILED;
669 } else if (times == 4) { 669 } else if (times == 4) {
670 - ibt = InboxBusinessTypeEnum.NOTICE_SELLER_CS_CANCEL_ORDER_TRADE_FAIL;  
671 - smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_CS_CANCEL_ORDER_TRADE_FAIL; 670 + ibt = InboxBusinessTypeEnum.NOTICE_SELLER_SELLER_SHAM_SEND_OUT;
  671 + smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_SELLER_SHAM_SEND_OUT;
672 }else { 672 }else {
673 return; 673 return;
674 } 674 }