|
|
package com.yohoufo.order.service.proxy;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.yoho.message.sdk.common.constants.UFOMessageScene;
|
|
|
import com.yoho.message.sdk.service.ufo.IUFOSendService;
|
|
|
import com.yoho.message.sdk.service.ufo.UFOMessageService;
|
...
|
...
|
@@ -11,19 +10,14 @@ import com.yohoufo.dal.order.model.BuyerOrder; |
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.dal.product.ProductMapper;
|
|
|
import com.yohoufo.dal.product.model.Product;
|
|
|
import com.yohoufo.inboxclient.model.InBoxResponse;
|
|
|
import com.yohoufo.inboxclient.model.InboxReqVO;
|
|
|
import com.yohoufo.order.service.impl.function.BuyerNoticeSender;
|
|
|
import lombok.NonNull;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.LinkedHashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Optional;
|
|
|
import java.util.function.Function;
|
|
|
import java.util.function.Supplier;
|
...
|
...
|
@@ -591,7 +585,24 @@ public class BuyerNoticeFacade extends BaseNoticeFacade { |
|
|
.withSms(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_SELLER_DELIVER, goodsTypeTag, prdName, sizeName, productCode, orderCode)
|
|
|
.send();
|
|
|
} catch (Exception e) {
|
|
|
log.warn("buyer paid fast delivery fail, uid {}, orderCode {} ",uid, orderCode, e);
|
|
|
log.warn("buyer paid fast delivery fail, uid {}, orderCode {} ", uid, orderCode, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public void noticeBuyerOfSellerSendOutTimeout(BuyerNoticeSender.Request request) {
|
|
|
Integer uid = request.getUid();
|
|
|
Long orderCode = request.getOrderCode();
|
|
|
try {
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
|
|
|
newBuyerNotice(buyerOrder)
|
|
|
.withLogPrefix("notice buyer of seller send out timeout")
|
|
|
.withInBox(InboxBusinessTypeEnum.NOTICE_BUYER_SELLER_SEND_OUT_TIMEOUT, orderCode)
|
|
|
.withPush(() -> ufoSendService.sellerDeliverHours(String.valueOf(uid), String.valueOf(orderCode)))
|
|
|
.withSms(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_SELLER_SEND_OUT_TIMEOUT, orderCode)
|
|
|
.send();
|
|
|
} catch (Exception e) {
|
|
|
log.warn("notice buyer of seller send out timeout fail,uid {}", uid, e);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|