...
|
...
|
@@ -3,6 +3,7 @@ package com.yohoufo.order.service.impl; |
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohoufo.common.alarm.EventBusPublisher;
|
|
|
import com.yohoufo.common.alarm.SmsAlarmEvent;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.BuyerOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.BuyerOrderMapper;
|
...
|
...
|
@@ -249,16 +250,18 @@ public class SellerOrderCancelService { |
|
|
paymentService.refund(refundReq);
|
|
|
logger.info("in cancelAfterPayButNotBuyAction, refund earnestMoney finish, seller {}, order code {}, skup {}, earnestMoney {}",
|
|
|
sellerUid, orderCode, skup, earnestMoney);
|
|
|
//fail bill log
|
|
|
BillLogEvent sellerBillLogEvent = bleb.tradeStatus(100)
|
|
|
.build();
|
|
|
EventBusPublisher.publishEvent(sellerBillLogEvent);
|
|
|
|
|
|
|
|
|
}catch (Exception ex){
|
|
|
logger.warn("in appraiseSuccess, refund fail, req {}", refundReq, ex);
|
|
|
BillLogEvent sellerBillLogEvent = bleb.tradeStatus(200)
|
|
|
.build();
|
|
|
EventBusPublisher.publishEvent(sellerBillLogEvent);
|
|
|
String content = "用户" + sellerUid + "退保证金订单"+ orderCode +"失败";
|
|
|
SmsAlarmEvent smsAlarmEvent = new SmsAlarmEvent("notPaidSellerOrder.selfCancel", "cancelBeforeBuy", content);
|
|
|
EventBusPublisher.publishEvent(smsAlarmEvent);
|
|
|
}
|
|
|
int result = 0;
|
|
|
SellerOrderStatus targetSOStatus;
|
...
|
...
|
@@ -461,7 +464,6 @@ public class SellerOrderCancelService { |
|
|
BillLogEvent sellerBillLogEvent = bleb.tradeStatus(100)
|
|
|
.build();
|
|
|
EventBusPublisher.publishEvent(sellerBillLogEvent);
|
|
|
|
|
|
inBoxFacade.notifyUnshelfCauseBySpecialReason(sellerUid, psog.getProductName());
|
|
|
}catch (Exception ex){
|
|
|
logger.warn("in yoho Off Shelve Cancel, refund earnestMoney fail, seller {}, order code {}, skup {}, earnestMoney {}",
|
...
|
...
|
@@ -469,6 +471,9 @@ public class SellerOrderCancelService { |
|
|
BillLogEvent sellerBillLogEvent = bleb.tradeStatus(200)
|
|
|
.build();
|
|
|
EventBusPublisher.publishEvent(sellerBillLogEvent);
|
|
|
String content = "下架skup时,退用户" + sellerUid + "保证金订单"+ orderCode +"失败";
|
|
|
SmsAlarmEvent smsAlarmEvent = new SmsAlarmEvent("PaidSellerOrder.PlatformCancel", "cancelBeforeBuy", content);
|
|
|
EventBusPublisher.publishEvent(smsAlarmEvent);
|
|
|
}finally {
|
|
|
final SellerOrderStatus targetSellerOrderStatus = SellerOrderStatus.YOHO_CANCEL_SELL;
|
|
|
//TODO check skup is buy away
|
...
|
...
|
|