Authored by qinchao

卖家消息,区分现货等类型

... ... @@ -1276,13 +1276,14 @@ public class InBoxFacade {
Integer sellerUid = sog.getUid();
String prdName = sog.getProductName();
String sizeName = sog.getSizeName();
String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName();
try {
executorService.execute(() -> {
// 发站内信
logger.info("record seller sham send out inbox sms msg for seller,sellerUid {}, prdName {}", sellerUid, prdName);
Product product = productMapper.selectByPrimaryKey(sog.getProductId());
String productCode = product.getProductCode();
String params = buildParams(prdName, sizeName,productCode);
String params = buildParams(skupTypeText,prdName, sizeName,productCode);
InboxReqVO req = buildInboxReqVO(sellerUid, params, InboxBusinessTypeEnum.NOTICE_SELLER_SELLER_SHAM_SEND_OUT);
InBoxResponse resp = inBoxSDK.addInbox(req);
logger.info("record seller sham send out inbox msg,sellerUid {}, prdName {},sizeName {} resp {}",
... ... @@ -1294,7 +1295,7 @@ public class InBoxFacade {
return;
}
List<String> mobileList = Arrays.asList(phone);
String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_SELLER_SHAM_SEND_OUT.getContent(),prdName,sizeName,productCode);
String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_SELLER_SHAM_SEND_OUT.getContent(),skupTypeText,prdName,sizeName,productCode);
sendSmsService.smsSendByMobile(content, mobileList);
logger.info("seller sham send out msg,sellerUid {}, prdName {}", sellerUid, prdName);
});
... ...