...
|
...
|
@@ -3,7 +3,8 @@ package com.yohoufo.order.service.impl.statechange; |
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yoho.message.sdk.service.ufo.UFOBidMessageService;
|
|
|
import com.yoho.message.sdk.common.constants.UFOMessageScene;
|
|
|
import com.yohobuy.ufo.model.enums.InboxBusinessTypeEnum;
|
|
|
import com.yohobuy.ufo.model.order.bo.MerchantOrderAttachInfo;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.Payment;
|
...
|
...
|
@@ -36,13 +37,9 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Collection;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
|
|
|
import static com.yoho.message.sdk.service.ufo.UFOBidMessageService.Scene.*;
|
|
|
import static com.yohobuy.ufo.model.order.common.OrderStatus.*;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -175,6 +172,7 @@ public class BuyerOrderWaitingPayCancelChanger extends AbstractBuyerOrderStateCh |
|
|
|
|
|
/**
|
|
|
* 退还卖家的保证金
|
|
|
*
|
|
|
* @param skup
|
|
|
* @param buyerOrder
|
|
|
* @param targetOrderStatus
|
...
|
...
|
@@ -262,26 +260,26 @@ public class BuyerOrderWaitingPayCancelChanger extends AbstractBuyerOrderStateCh |
|
|
Product product = findProduct(sellerOrderGoods);
|
|
|
String productCode = product.getProductCode();
|
|
|
|
|
|
Map<String, Object> parameters = new HashMap<>();
|
|
|
LinkedHashMap<String, Object> parameters = new LinkedHashMap<>();
|
|
|
parameters.put("productName", prdName);
|
|
|
parameters.put("sizeName", sizeName);
|
|
|
parameters.put("productCode", productCode);
|
|
|
parameters.put("goodsPrice", sellerOrderGoods.getGoodsPrice().toPlainString());
|
|
|
parameters.put("orderCode", buyerOrder.getOrderCode());
|
|
|
|
|
|
UFOBidMessageService.Scene scene;
|
|
|
|
|
|
switch (targetStatus) {
|
|
|
case BUYER_BID_CANCEL_PAY:
|
|
|
scene = UFO_BUYER_BID_CANCEL_PAY;
|
|
|
buyerNoticeFacade.messageNotice(buyerOrder.getUid(), InboxBusinessTypeEnum.BUYER_BID_CANCEL_PAY,
|
|
|
InboxBusinessTypeEnum.SMS_BUYER_BID_CANCEL_PAY,
|
|
|
null, parameters);
|
|
|
break;
|
|
|
case BUYER_BID_PAY_TIMEOUT:
|
|
|
scene = UFO_BUYER_BID_PAY_TIMEOUT;
|
|
|
buyerNoticeFacade.messageNotice(buyerOrder.getUid(), InboxBusinessTypeEnum.BUYER_BID_PAY_TIMEOUT,
|
|
|
InboxBusinessTypeEnum.SMS_BUYER_BID_PAY_TIMEOUT,
|
|
|
UFOMessageScene.UFO_BUYER_BID_PAY_TIMEOUT, parameters);
|
|
|
break;
|
|
|
default:
|
|
|
scene = null;
|
|
|
break;
|
|
|
}
|
|
|
ufoBidMessageService.sendMessage(String.valueOf(buyerOrder.getUid()), scene, parameters);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|