Authored by qinchao

寄回商品(卖家发货后买家取消的),增加消息

... ... @@ -1205,7 +1205,21 @@ public class InBoxFacade {
executorService.execute(() -> {
logger.info("record sendCancelledProductToSeller inbox sms msg,sellerUid {},orderCode {},sellerOrderGoods {}, wayBillCode {}",
sellerUid, orderCode,sog,wayBillCode);
String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName();
String prdName = sog.getProductName();
String sizeName = sog.getSizeName();
Product product = productMapper.selectByPrimaryKey(sog.getProductId());
String productCode = product.getProductCode();
//消息
InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_EXPRESS_CANCELLED_BY_BUYER_AFTER_DELIVERY;
String params = buildParams(skupTypeText,prdName,sizeName,productCode,wayBillCode);
InboxReqVO inBoxReq = buildInboxReqVO(sellerUid, params, ibt);
InBoxResponse resp = inBoxSDK.addInbox(inBoxReq);
logger.info("InBoxFacade sendCancelledProductToSeller inbox msg, sellerUid {},orderCode {},sellerOrderGoods {}, wayBillCode {},resp {}",
sellerUid, orderCode,sog,wayBillCode,resp);
//短信
String phone = userProxyService.getMobile(sellerUid);
logger.info("sendCancelledProductToSeller wayBillCode sms send get phone {},sellerUid {}, wayBillCode {}",
phone,sellerUid,wayBillCode);
... ... @@ -1214,12 +1228,9 @@ public class InBoxFacade {
sellerUid,wayBillCode);
return;
}
String prdName = sog.getProductName();
String sizeName = sog.getSizeName();
Product product = productMapper.selectByPrimaryKey(sog.getProductId());
String productCode = product.getProductCode();
List<String> mobileList = Arrays.asList(phone);
String content = getReplacedContent(InboxBusinessTypeEnum.SMS_CANCELED_BY_BUYER_AFTER_RECEIVED.getContent(),prdName,sizeName,productCode,orderCode,wayBillCode);
String content = getReplacedContent(InboxBusinessTypeEnum.SMS_CANCELED_BY_BUYER_AFTER_RECEIVED.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode,wayBillCode);
sendSmsService.smsSendByMobile(content, mobileList);
logger.info("record sendCancelledProductToSeller inbox sms msg end,sellerUid {}, wayBillCode {}, phone {},",
... ...