Authored by qinchao

二手消息

... ... @@ -1088,6 +1088,7 @@ public class InBoxFacade {
private void noticeSellerWhenSecondHandProductApplyAudit(boolean passFlag,int sellerUid,SellerOrderGoods sog,String rejectReason){
String prdName = sog.getProductName();
String sizeName = sog.getSizeName();
String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName();
try {
executorService.execute(() -> {
// 发站内信
... ... @@ -1100,10 +1101,10 @@ public class InBoxFacade {
InboxBusinessTypeEnum msgBizType;
if(passFlag){
msgBizType = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_SECOND_HAND_APPLY_PASS;
params = buildParams(prdName, sizeName,productCode);
params = buildParams(skupTypeText,prdName, sizeName,productCode);
}else{
msgBizType = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_SECOND_HAND_APPLY_REJECT;
params = buildParams(prdName, sizeName,productCode,rejectReason);
params = buildParams(skupTypeText,prdName, sizeName,productCode,rejectReason);
}
InboxReqVO req = buildInboxReqVO(sellerUid, params,msgBizType );
InBoxResponse resp = inBoxSDK.addInbox(req);
... ... @@ -1122,7 +1123,7 @@ public class InBoxFacade {
}else{
smsBizType = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_SECOND_HAND_APPLY_REJECT;
}
String content = getReplacedContent(smsBizType.getContent(),prdName,sizeName,productCode);
String content = getReplacedContent(smsBizType.getContent(),skupTypeText,prdName,sizeName,productCode);
sendSmsService.smsSendByMobile(content, mobileList);
logger.info("record noticeSellerWhenSecondHandProductApplyAudit inbox sms msg pass {} for seller,SellerOrderGoods {}, resp {}", passFlag, sog,resp);
... ...