|
@@ -711,6 +711,47 @@ public class InBoxFacade extends BaseNoticeFacade{ |
|
@@ -711,6 +711,47 @@ public class InBoxFacade extends BaseNoticeFacade{ |
711
|
}
|
711
|
}
|
712
|
}
|
712
|
}
|
713
|
|
713
|
|
|
|
714
|
+ /**
|
|
|
715
|
+ * 检测不通过寄回,给卖家消息
|
|
|
716
|
+ */
|
|
|
717
|
+ public void sellerDetectionNotPass_send_back(SellerOrderGoods sog,long orderCode,String wayBillCode) {
|
|
|
718
|
+ Integer sellerUid = sog.getUid();
|
|
|
719
|
+ String prdName = sog.getProductName();
|
|
|
720
|
+ String sizeName = sog.getSizeName();
|
|
|
721
|
+ String goodsTypeTag = buildGoodsTypeTagForSeller(sog);
|
|
|
722
|
+ try {
|
|
|
723
|
+ executorService.execute(() -> {
|
|
|
724
|
+ Product product = productMapper.selectByPrimaryKey(sog.getProductId());
|
|
|
725
|
+ String productCode = product.getProductCode();
|
|
|
726
|
+ InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_DETECTION_NOT_PASS_SEND_BACK;
|
|
|
727
|
+ String params = buildParams(goodsTypeTag,prdName, sizeName,productCode);
|
|
|
728
|
+ InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt);
|
|
|
729
|
+
|
|
|
730
|
+ InBoxResponse resp = inBoxSDK.addInbox(req);
|
|
|
731
|
+ log.info("record sellerDetectionNotPass_send_back inbox msg, SellerOrderGoods {} ,sellerUid {}, prdName {}, sizeName {}, resp {}",
|
|
|
732
|
+ JSON.toJSONString(sog),sellerUid, prdName, sizeName , resp);
|
|
|
733
|
+
|
|
|
734
|
+ //短信
|
|
|
735
|
+ String phone = userProxyService.getMobile(sellerUid);
|
|
|
736
|
+ if (StringUtils.isBlank(phone)){
|
|
|
737
|
+ log.warn("sellerDetectionNotPass_send_back sms send fail,sellerUid {}, prdName {}", sellerUid, prdName);
|
|
|
738
|
+ return;
|
|
|
739
|
+ }
|
|
|
740
|
+ List<String> mobileList = Arrays.asList(phone);
|
|
|
741
|
+ InboxBusinessTypeEnum sms = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_DETECTION_NOT_PASS_SEND_BACK;
|
|
|
742
|
+
|
|
|
743
|
+ String content = getReplacedContent(sms.getContent(),goodsTypeTag,prdName,sizeName,productCode,orderCode,wayBillCode);
|
|
|
744
|
+ sendSmsService.smsSendByMobile(content, mobileList);
|
|
|
745
|
+ log.info("record sellerDetectionNotPass_send_back inbox sms msg,sellerUid {}, prdName {},orderCode {}",
|
|
|
746
|
+ sellerUid, prdName,orderCode);
|
|
|
747
|
+ });
|
|
|
748
|
+
|
|
|
749
|
+ } catch (Exception e) {
|
|
|
750
|
+ log.warn("InBoxFacade sellerAppraiseUnsure_send_back error inbox msg, sellerUid {}, prdName {} ",
|
|
|
751
|
+ sellerUid, prdName, e);
|
|
|
752
|
+ }
|
|
|
753
|
+ }
|
|
|
754
|
+
|
714
|
public void noticeSellerOfSellerShamSendOut(SellerOrderGoods sog,long orderCode){
|
755
|
public void noticeSellerOfSellerShamSendOut(SellerOrderGoods sog,long orderCode){
|
715
|
Integer sellerUid = sog.getUid();
|
756
|
Integer sellerUid = sog.getUid();
|
716
|
String prdName = sog.getProductName();
|
757
|
String prdName = sog.getProductName();
|