Merge branch 'dev_消息拆分697fromMaster' into test6.9.7
Showing
1 changed file
with
68 additions
and
44 deletions
@@ -5,6 +5,7 @@ import com.yoho.message.sdk.common.model.SendMessageRspBo; | @@ -5,6 +5,7 @@ import com.yoho.message.sdk.common.model.SendMessageRspBo; | ||
5 | import com.yoho.message.sdk.service.ufo.IUFOSendService; | 5 | import com.yoho.message.sdk.service.ufo.IUFOSendService; |
6 | import com.yohobuy.ufo.model.enums.InboxBusinessTypeEnum; | 6 | import com.yohobuy.ufo.model.enums.InboxBusinessTypeEnum; |
7 | import com.yohobuy.ufo.model.order.common.SuperEnterStageLevel; | 7 | import com.yohobuy.ufo.model.order.common.SuperEnterStageLevel; |
8 | +import com.yohobuy.ufo.model.order.constants.SkupType; | ||
8 | import com.yohoufo.dal.order.SellerOrderMapper; | 9 | import com.yohoufo.dal.order.SellerOrderMapper; |
9 | import com.yohoufo.dal.order.model.SellerOrder; | 10 | import com.yohoufo.dal.order.model.SellerOrder; |
10 | import com.yohoufo.dal.order.model.SellerOrderGoods; | 11 | import com.yohoufo.dal.order.model.SellerOrderGoods; |
@@ -124,6 +125,7 @@ public class InBoxFacade { | @@ -124,6 +125,7 @@ public class InBoxFacade { | ||
124 | public void sellerDeliver2Depot(int buyerUid, long orderCode,SellerOrderGoods psog ){ | 125 | public void sellerDeliver2Depot(int buyerUid, long orderCode,SellerOrderGoods psog ){ |
125 | executorService.execute(()-> { | 126 | executorService.execute(()-> { |
126 | try { | 127 | try { |
128 | + String skupTypeText=SkupType.getSkupType(psog.getAttributes()).attrName(); | ||
127 | String prdName = psog.getProductName(); | 129 | String prdName = psog.getProductName(); |
128 | InboxBusinessTypeEnum ibtOfBuyer = InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_SELLER_DELIVER; | 130 | InboxBusinessTypeEnum ibtOfBuyer = InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_SELLER_DELIVER; |
129 | String params = buildParams(orderCode); | 131 | String params = buildParams(orderCode); |
@@ -146,7 +148,7 @@ public class InBoxFacade { | @@ -146,7 +148,7 @@ public class InBoxFacade { | ||
146 | logger.warn("in sellerDeliver2Depot sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); | 148 | logger.warn("in sellerDeliver2Depot sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); |
147 | return; | 149 | return; |
148 | } | 150 | } |
149 | - String content=getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_SELLER_DELIVER.getContent(),prdName,sizeName,productCode,orderCode); | 151 | + String content=getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_SELLER_DELIVER.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
150 | List<String> mobileList = Arrays.asList(phone); | 152 | List<String> mobileList = Arrays.asList(phone); |
151 | sendSmsService.smsSendByMobile(content,mobileList); | 153 | sendSmsService.smsSendByMobile(content,mobileList); |
152 | logger.info("record sellerDeliver2Depot inbox sms msg, buyerUid {}, orderCode {}, prdName {} phone {}", | 154 | logger.info("record sellerDeliver2Depot inbox sms msg, buyerUid {}, orderCode {}, prdName {} phone {}", |
@@ -171,7 +173,7 @@ public class InBoxFacade { | @@ -171,7 +173,7 @@ public class InBoxFacade { | ||
171 | try { | 173 | try { |
172 | logger.info("record noticeBuyerWhenDeliveryGoodsToBuyer inbox msg, buyerUid {}, orderCode {}, psog {},SellerOrderGoods {} product {}", | 174 | logger.info("record noticeBuyerWhenDeliveryGoodsToBuyer inbox msg, buyerUid {}, orderCode {}, psog {},SellerOrderGoods {} product {}", |
173 | buyerUid, orderCode, psog, JSON.toJSONString(psog), JSON.toJSONString(product)); | 175 | buyerUid, orderCode, psog, JSON.toJSONString(psog), JSON.toJSONString(product)); |
174 | - | 176 | + String skupTypeText=SkupType.getSkupType(psog.getAttributes()).attrName(); |
175 | String prdName = psog.getProductName(); | 177 | String prdName = psog.getProductName(); |
176 | String sizeName = psog.getSizeName(); | 178 | String sizeName = psog.getSizeName(); |
177 | String productCode = Optional.ofNullable(product).map(Product::getProductCode).orElse(""); | 179 | String productCode = Optional.ofNullable(product).map(Product::getProductCode).orElse(""); |
@@ -198,7 +200,7 @@ public class InBoxFacade { | @@ -198,7 +200,7 @@ public class InBoxFacade { | ||
198 | logger.warn("in noticeBuyerWhenDeliveryGoodsToBuyer notice buyer sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); | 200 | logger.warn("in noticeBuyerWhenDeliveryGoodsToBuyer notice buyer sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); |
199 | }else{ | 201 | }else{ |
200 | List<String> mobileList = Arrays.asList(phone); | 202 | List<String> mobileList = Arrays.asList(phone); |
201 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_SEND.getContent(),prdName,sizeName,productCode,orderCode); | 203 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_SEND.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
202 | sendSmsService.smsSendByMobile(content,mobileList); | 204 | sendSmsService.smsSendByMobile(content,mobileList); |
203 | logger.info("record noticeBuyerWhenDeliveryGoodsToBuyer notice buyer sms msg, buyerUid {}, orderCode {}, prdName {} phone {}", | 205 | logger.info("record noticeBuyerWhenDeliveryGoodsToBuyer notice buyer sms msg, buyerUid {}, orderCode {}, prdName {} phone {}", |
204 | buyerUid, orderCode,prdName, phone); | 206 | buyerUid, orderCode,prdName, phone); |
@@ -223,6 +225,7 @@ public class InBoxFacade { | @@ -223,6 +225,7 @@ public class InBoxFacade { | ||
223 | try { | 225 | try { |
224 | logger.info("record appraisePassNotice inbox msg, buyerUid {}, orderCode {}, psog {},SellerOrderGoods {} product {}", | 226 | logger.info("record appraisePassNotice inbox msg, buyerUid {}, orderCode {}, psog {},SellerOrderGoods {} product {}", |
225 | buyerUid, orderCode, psog, JSON.toJSONString(psog), JSON.toJSONString(product)); | 227 | buyerUid, orderCode, psog, JSON.toJSONString(psog), JSON.toJSONString(product)); |
228 | + String skupTypeText=SkupType.getSkupType(psog.getAttributes()).attrName(); | ||
226 | String prdName = psog.getProductName(); | 229 | String prdName = psog.getProductName(); |
227 | String sizeName = psog.getSizeName(); | 230 | String sizeName = psog.getSizeName(); |
228 | String productCode = Optional.ofNullable(product).map(Product::getProductCode).orElse(""); | 231 | String productCode = Optional.ofNullable(product).map(Product::getProductCode).orElse(""); |
@@ -240,7 +243,7 @@ public class InBoxFacade { | @@ -240,7 +243,7 @@ public class InBoxFacade { | ||
240 | logger.warn("in appraisePassNotice notice buyer sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); | 243 | logger.warn("in appraisePassNotice notice buyer sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); |
241 | }else{ | 244 | }else{ |
242 | List<String> mobileList = Arrays.asList(phone); | 245 | List<String> mobileList = Arrays.asList(phone); |
243 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_SEND.getContent(),prdName,sizeName,productCode,orderCode); | 246 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_SEND.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
244 | sendSmsService.smsSendByMobile(content,mobileList); | 247 | sendSmsService.smsSendByMobile(content,mobileList); |
245 | logger.info("record appraisePassNotice notice buyer sms msg, buyerUid {}, orderCode {}, prdName {} phone {}", | 248 | logger.info("record appraisePassNotice notice buyer sms msg, buyerUid {}, orderCode {}, prdName {} phone {}", |
246 | buyerUid, orderCode,prdName, phone); | 249 | buyerUid, orderCode,prdName, phone); |
@@ -266,8 +269,9 @@ public class InBoxFacade { | @@ -266,8 +269,9 @@ public class InBoxFacade { | ||
266 | //seller notice | 269 | //seller notice |
267 | String sizeName = psog.getSizeName(); | 270 | String sizeName = psog.getSizeName(); |
268 | Integer sellerUid = psog.getUid(); | 271 | Integer sellerUid = psog.getUid(); |
272 | + String skupTypeText=SkupType.getSkupType(psog.getAttributes()).attrName(); | ||
269 | InboxBusinessTypeEnum ibtOfSeller = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_APPRAISE_PASS; | 273 | InboxBusinessTypeEnum ibtOfSeller = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_APPRAISE_PASS; |
270 | - String paramsOfSeller = buildParams(prdName, sizeName,productCode); | 274 | + String paramsOfSeller = buildParams(skupTypeText,prdName, sizeName,productCode); |
271 | InboxReqVO reqOfSeller = buildInboxReqVO(sellerUid, paramsOfSeller, ibtOfSeller); | 275 | InboxReqVO reqOfSeller = buildInboxReqVO(sellerUid, paramsOfSeller, ibtOfSeller); |
272 | 276 | ||
273 | InBoxResponse respOfSeller = inBoxSDK.addInbox(reqOfSeller); | 277 | InBoxResponse respOfSeller = inBoxSDK.addInbox(reqOfSeller); |
@@ -278,7 +282,7 @@ public class InBoxFacade { | @@ -278,7 +282,7 @@ public class InBoxFacade { | ||
278 | logger.warn("in appraisePassNoticeSeller sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); | 282 | logger.warn("in appraisePassNoticeSeller sms fail, buyerUid {} orderCode {} prdName {} ", buyerUid, orderCode,prdName); |
279 | }else{ | 283 | }else{ |
280 | List<String> mobileList = Arrays.asList(phoneOfSeller); | 284 | List<String> mobileList = Arrays.asList(phoneOfSeller); |
281 | - String contentOfSeller = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_APPRAISE_PASS.getContent(), orderCode); | 285 | + String contentOfSeller = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_APPRAISE_PASS.getContent(),skupTypeText, orderCode); |
282 | sendSmsService.smsSendByMobile(contentOfSeller, mobileList); | 286 | sendSmsService.smsSendByMobile(contentOfSeller, mobileList); |
283 | logger.info("record appraisePassNoticeSeller sms msg notice seller, sellerUid {}, orderCode {}, prdName {} sizeName {} phone {}", | 287 | logger.info("record appraisePassNoticeSeller sms msg notice seller, sellerUid {}, orderCode {}, prdName {} sizeName {} phone {}", |
284 | sellerUid, orderCode, prdName, sizeName, phoneOfSeller); | 288 | sellerUid, orderCode, prdName, sizeName, phoneOfSeller); |
@@ -307,6 +311,7 @@ public class InBoxFacade { | @@ -307,6 +311,7 @@ public class InBoxFacade { | ||
307 | public void noticeBuyerWhenSellerCancelAfterPaid(int buyerUid, long orderCode,SellerOrderGoods psog ) { | 311 | public void noticeBuyerWhenSellerCancelAfterPaid(int buyerUid, long orderCode,SellerOrderGoods psog ) { |
308 | try { | 312 | try { |
309 | executorService.execute(()->{ | 313 | executorService.execute(()->{ |
314 | + String skupTypeText = SkupType.getSkupType(psog.getAttributes()).attrName(); | ||
310 | String prdName = psog.getProductName(); | 315 | String prdName = psog.getProductName(); |
311 | String sizeName =psog.getSizeName(); | 316 | String sizeName =psog.getSizeName(); |
312 | Product product = productMapper.selectByPrimaryKey(psog.getProductId()); | 317 | Product product = productMapper.selectByPrimaryKey(psog.getProductId()); |
@@ -332,7 +337,7 @@ public class InBoxFacade { | @@ -332,7 +337,7 @@ public class InBoxFacade { | ||
332 | } | 337 | } |
333 | List<String> mobileList = Arrays.asList(phone); | 338 | List<String> mobileList = Arrays.asList(phone); |
334 | 339 | ||
335 | - String content=getReplacedContent(InboxBusinessTypeEnum.SMS_CLOSED_SELLER.getContent(),prdName,productCode,sizeName,orderCode); | 340 | + String content=getReplacedContent(InboxBusinessTypeEnum.SMS_CLOSED_SELLER.getContent(),skupTypeText,prdName,productCode,sizeName,orderCode); |
336 | 341 | ||
337 | sendSmsService.smsSendByMobile(content,mobileList); | 342 | sendSmsService.smsSendByMobile(content,mobileList); |
338 | logger.info("record noticeBuyerWhenSellerCancelAfterPaid inbox sms msg, buyerUid {}, orderCode {},prdName {}", | 343 | logger.info("record noticeBuyerWhenSellerCancelAfterPaid inbox sms msg, buyerUid {}, orderCode {},prdName {}", |
@@ -373,6 +378,7 @@ public class InBoxFacade { | @@ -373,6 +378,7 @@ public class InBoxFacade { | ||
373 | public void buyerGetEarnestMoneyWhenAppraiseFail(int buyerUid, long orderCode,SellerOrderGoods sellerOrderGoods ) { | 378 | public void buyerGetEarnestMoneyWhenAppraiseFail(int buyerUid, long orderCode,SellerOrderGoods sellerOrderGoods ) { |
374 | try { | 379 | try { |
375 | executorService.execute(()->{ | 380 | executorService.execute(()->{ |
381 | + String skupTypeText=SkupType.getSkupType(sellerOrderGoods.getAttributes()).attrName(); | ||
376 | String prdName = sellerOrderGoods.getProductName(); | 382 | String prdName = sellerOrderGoods.getProductName(); |
377 | String sizeName=sellerOrderGoods.getSizeName(); | 383 | String sizeName=sellerOrderGoods.getSizeName(); |
378 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.PURCHASE_CLOSED_PLATFORM; | 384 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.PURCHASE_CLOSED_PLATFORM; |
@@ -394,7 +400,7 @@ public class InBoxFacade { | @@ -394,7 +400,7 @@ public class InBoxFacade { | ||
394 | } | 400 | } |
395 | List<String> mobileList = Arrays.asList(phone); | 401 | List<String> mobileList = Arrays.asList(phone); |
396 | 402 | ||
397 | - String content=getReplacedContent(InboxBusinessTypeEnum.SMS_CLOSED_PLATFORM.getContent(),prdName,sizeName,productCode,orderCode); | 403 | + String content=getReplacedContent(InboxBusinessTypeEnum.SMS_CLOSED_PLATFORM.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
398 | sendSmsService.smsSendByMobile(content,mobileList); | 404 | sendSmsService.smsSendByMobile(content,mobileList); |
399 | logger.info("record buyerGetEarnestMoneyWhenAppraiseFail inbox sms msg, buyerUid {}, orderCode {},prdName {}", | 405 | logger.info("record buyerGetEarnestMoneyWhenAppraiseFail inbox sms msg, buyerUid {}, orderCode {},prdName {}", |
400 | buyerUid, orderCode,prdName); | 406 | buyerUid, orderCode,prdName); |
@@ -432,6 +438,7 @@ public class InBoxFacade { | @@ -432,6 +438,7 @@ public class InBoxFacade { | ||
432 | public void noticeBuyerWhenQualityCheckNotPass(int buyerUid, long orderCode,SellerOrderGoods sellerOrderGoods) { | 438 | public void noticeBuyerWhenQualityCheckNotPass(int buyerUid, long orderCode,SellerOrderGoods sellerOrderGoods) { |
433 | try { | 439 | try { |
434 | executorService.execute(() -> { | 440 | executorService.execute(() -> { |
441 | + String skupTypeText=SkupType.getSkupType(sellerOrderGoods.getAttributes()).attrName(); | ||
435 | String prdName = sellerOrderGoods.getProductName(); | 442 | String prdName = sellerOrderGoods.getProductName(); |
436 | String sizeName = sellerOrderGoods.getSizeName(); | 443 | String sizeName = sellerOrderGoods.getSizeName(); |
437 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_QUALITY_NOT_PASS; | 444 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_QUALITY_NOT_PASS; |
@@ -457,7 +464,7 @@ public class InBoxFacade { | @@ -457,7 +464,7 @@ public class InBoxFacade { | ||
457 | String productCode = product.getProductCode(); | 464 | String productCode = product.getProductCode(); |
458 | 465 | ||
459 | List<String> mobileList = Arrays.asList(phone); | 466 | List<String> mobileList = Arrays.asList(phone); |
460 | - String content=getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_QUALITY_NOT_PASS.getContent(),prdName,sizeName,productCode,orderCode); | 467 | + String content=getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_QUALITY_NOT_PASS.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
461 | 468 | ||
462 | sendSmsService.smsSendByMobile(content,mobileList); | 469 | sendSmsService.smsSendByMobile(content,mobileList); |
463 | logger.info("record noticeBuyerWhenQualityCheckNotPass inbox sms msg, buyerUid {}, orderCode {}, prdName {}", | 470 | logger.info("record noticeBuyerWhenQualityCheckNotPass inbox sms msg, buyerUid {}, orderCode {}, prdName {}", |
@@ -477,6 +484,7 @@ public class InBoxFacade { | @@ -477,6 +484,7 @@ public class InBoxFacade { | ||
477 | executorService.execute(() -> { | 484 | executorService.execute(() -> { |
478 | logger.info("record buyerMiniFaultCreate inbox enter, buyerUid {} ,orderCode {} ,psog {},product {}", | 485 | logger.info("record buyerMiniFaultCreate inbox enter, buyerUid {} ,orderCode {} ,psog {},product {}", |
479 | buyerUid, orderCode ,psog, JSON.toJSONString(product)); | 486 | buyerUid, orderCode ,psog, JSON.toJSONString(product)); |
487 | + String skupTypeText=SkupType.getSkupType(psog.getAttributes()).attrName(); | ||
480 | String prdName = psog.getProductName(); | 488 | String prdName = psog.getProductName(); |
481 | String sizeName = psog.getSizeName(); | 489 | String sizeName = psog.getSizeName(); |
482 | String productCode = Optional.ofNullable(product).map(Product::getProductCode).orElse(""); | 490 | String productCode = Optional.ofNullable(product).map(Product::getProductCode).orElse(""); |
@@ -501,7 +509,7 @@ public class InBoxFacade { | @@ -501,7 +509,7 @@ public class InBoxFacade { | ||
501 | return; | 509 | return; |
502 | } | 510 | } |
503 | List<String> mobileList = Arrays.asList(phone); | 511 | List<String> mobileList = Arrays.asList(phone); |
504 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_CHECK_ORDER_PROBLEM.getContent(),prdName,sizeName,productCode,orderCode); | 512 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_CHECK_ORDER_PROBLEM.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
505 | sendSmsService.smsSendByMobile(content, mobileList); | 513 | sendSmsService.smsSendByMobile(content, mobileList); |
506 | logger.info("record buyerMiniFaultCreate inbox sms msg,buyerUid {}, orderCode {},prdName {}", | 514 | logger.info("record buyerMiniFaultCreate inbox sms msg,buyerUid {}, orderCode {},prdName {}", |
507 | buyerUid ,orderCode,prdName); | 515 | buyerUid ,orderCode,prdName); |
@@ -519,6 +527,7 @@ public class InBoxFacade { | @@ -519,6 +527,7 @@ public class InBoxFacade { | ||
519 | 527 | ||
520 | try { | 528 | try { |
521 | executorService.execute(() -> { | 529 | executorService.execute(() -> { |
530 | + String skupTypeText=SkupType.getSkupType(sellerOrderGoods.getAttributes()).attrName(); | ||
522 | String prdName = sellerOrderGoods.getProductName(); | 531 | String prdName = sellerOrderGoods.getProductName(); |
523 | String sizeName =sellerOrderGoods.getSizeName(); | 532 | String sizeName =sellerOrderGoods.getSizeName(); |
524 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_MINI_FAULT_UN_ACCEPT; | 533 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_BUYER_WHEN_MINI_FAULT_UN_ACCEPT; |
@@ -553,7 +562,7 @@ public class InBoxFacade { | @@ -553,7 +562,7 @@ public class InBoxFacade { | ||
553 | if(outTimeFlag){ | 562 | if(outTimeFlag){ |
554 | sms = InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_MINI_FAULT_UN_ACCEPT_OUT_TIME; | 563 | sms = InboxBusinessTypeEnum.SMS_NOTICE_BUYER_WHEN_MINI_FAULT_UN_ACCEPT_OUT_TIME; |
555 | } | 564 | } |
556 | - String content = getReplacedContent(sms.getContent(),prdName,sizeName,productCode,orderCode); | 565 | + String content = getReplacedContent(sms.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
557 | sendSmsService.smsSendByMobile(content, mobileList); | 566 | sendSmsService.smsSendByMobile(content, mobileList); |
558 | logger.info("record buyerQualityCheckNotPass inbox sms msg,buyerUid {}, prdName {},orderCode {}", | 567 | logger.info("record buyerQualityCheckNotPass inbox sms msg,buyerUid {}, prdName {},orderCode {}", |
559 | buyerUid , prdName,orderCode); | 568 | buyerUid , prdName,orderCode); |
@@ -623,13 +632,14 @@ public class InBoxFacade { | @@ -623,13 +632,14 @@ public class InBoxFacade { | ||
623 | public void sellerPlaySelf(int sellerUid,SellerOrderGoods sellerOrderGoods) { | 632 | public void sellerPlaySelf(int sellerUid,SellerOrderGoods sellerOrderGoods) { |
624 | try { | 633 | try { |
625 | executorService.execute(() -> { | 634 | executorService.execute(() -> { |
635 | + String skupTypeText=SkupType.getSkupType(sellerOrderGoods.getAttributes()).attrName(); | ||
626 | String prdName = sellerOrderGoods.getProductName(); | 636 | String prdName = sellerOrderGoods.getProductName(); |
627 | String sizeName = sellerOrderGoods.getSizeName(); | 637 | String sizeName = sellerOrderGoods.getSizeName(); |
628 | Product product = productMapper.selectByPrimaryKey(sellerOrderGoods.getProductId()); | 638 | Product product = productMapper.selectByPrimaryKey(sellerOrderGoods.getProductId()); |
629 | String productCode = product.getProductCode(); | 639 | String productCode = product.getProductCode(); |
630 | 640 | ||
631 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_UNSHELF; | 641 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_UNSHELF; |
632 | - String params = buildParams(prdName,sizeName,productCode); | 642 | + String params = buildParams(skupTypeText,prdName,sizeName,productCode); |
633 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 643 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
634 | 644 | ||
635 | InBoxResponse resp = inBoxSDK.addInbox(req); | 645 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -653,13 +663,14 @@ public class InBoxFacade { | @@ -653,13 +663,14 @@ public class InBoxFacade { | ||
653 | public void sellerSkupCreateOrderByBuyer(int sellerUid, SellerOrderGoods psog) { | 663 | public void sellerSkupCreateOrderByBuyer(int sellerUid, SellerOrderGoods psog) { |
654 | try { | 664 | try { |
655 | executorService.execute(() -> { | 665 | executorService.execute(() -> { |
666 | + String skupTypeText=SkupType.getSkupType(psog.getAttributes()).attrName(); | ||
656 | String prdName = psog.getProductName(); | 667 | String prdName = psog.getProductName(); |
657 | String sizeName = psog.getSizeName(); | 668 | String sizeName = psog.getSizeName(); |
658 | Product product = productMapper.selectByPrimaryKey(psog.getProductId()); | 669 | Product product = productMapper.selectByPrimaryKey(psog.getProductId()); |
659 | String productCode = product.getProductCode(); | 670 | String productCode = product.getProductCode(); |
660 | 671 | ||
661 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_SELLED; | 672 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_SELLED; |
662 | - String params = buildParams(prdName,sizeName,productCode); | 673 | + String params = buildParams(skupTypeText,prdName,sizeName,productCode); |
663 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 674 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
664 | 675 | ||
665 | InBoxResponse resp = inBoxSDK.addInbox(req); | 676 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -680,6 +691,7 @@ public class InBoxFacade { | @@ -680,6 +691,7 @@ public class InBoxFacade { | ||
680 | Integer sellerUid = sog.getUid(); | 691 | Integer sellerUid = sog.getUid(); |
681 | String prdName = sog.getProductName(); | 692 | String prdName = sog.getProductName(); |
682 | String sizeName = sog.getSizeName(); | 693 | String sizeName = sog.getSizeName(); |
694 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
683 | try { | 695 | try { |
684 | executorService.execute(() -> { | 696 | executorService.execute(() -> { |
685 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 697 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
@@ -688,7 +700,7 @@ public class InBoxFacade { | @@ -688,7 +700,7 @@ public class InBoxFacade { | ||
688 | if(outTimeFlag){ | 700 | if(outTimeFlag){ |
689 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_MINI_FAULT_UN_ACCEPT_OUT_TIME; | 701 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_MINI_FAULT_UN_ACCEPT_OUT_TIME; |
690 | } | 702 | } |
691 | - String params = buildParams(prdName, sizeName,productCode); | 703 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
692 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 704 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
693 | 705 | ||
694 | InBoxResponse resp = inBoxSDK.addInbox(req); | 706 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -706,7 +718,7 @@ public class InBoxFacade { | @@ -706,7 +718,7 @@ public class InBoxFacade { | ||
706 | if(outTimeFlag){ | 718 | if(outTimeFlag){ |
707 | sms = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_MINI_FAULT_UN_ACCEPT_OUT_TIME; | 719 | sms = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_MINI_FAULT_UN_ACCEPT_OUT_TIME; |
708 | } | 720 | } |
709 | - String content = getReplacedContent(sms.getContent(),prdName,sizeName,productCode,orderCode); | 721 | + String content = getReplacedContent(sms.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
710 | sendSmsService.smsSendByMobile(content, mobileList); | 722 | sendSmsService.smsSendByMobile(content, mobileList); |
711 | logger.info("record sellerMiniFaultUnAccept inbox sms msg,sellerUid {}, prdName {},orderCode {}", | 723 | logger.info("record sellerMiniFaultUnAccept inbox sms msg,sellerUid {}, prdName {},orderCode {}", |
712 | sellerUid, prdName,orderCode); | 724 | sellerUid, prdName,orderCode); |
@@ -725,12 +737,13 @@ public class InBoxFacade { | @@ -725,12 +737,13 @@ public class InBoxFacade { | ||
725 | Integer sellerUid = sog.getUid(); | 737 | Integer sellerUid = sog.getUid(); |
726 | String prdName = sog.getProductName(); | 738 | String prdName = sog.getProductName(); |
727 | String sizeName = sog.getSizeName(); | 739 | String sizeName = sog.getSizeName(); |
740 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
728 | try { | 741 | try { |
729 | executorService.execute(() -> { | 742 | executorService.execute(() -> { |
730 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 743 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
731 | String productCode = product.getProductCode(); | 744 | String productCode = product.getProductCode(); |
732 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_QUALITY_CHECK_REJECT; | 745 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_QUALITY_CHECK_REJECT; |
733 | - String params = buildParams(prdName, sizeName,productCode); | 746 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
734 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 747 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
735 | 748 | ||
736 | InBoxResponse resp = inBoxSDK.addInbox(req); | 749 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -744,7 +757,7 @@ public class InBoxFacade { | @@ -744,7 +757,7 @@ public class InBoxFacade { | ||
744 | return; | 757 | return; |
745 | } | 758 | } |
746 | List<String> mobileList = Arrays.asList(phone); | 759 | List<String> mobileList = Arrays.asList(phone); |
747 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_QUALITY_CHECK_REJECT.getContent(),prdName,sizeName,productCode,orderCode); | 760 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_QUALITY_CHECK_REJECT.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
748 | sendSmsService.smsSendByMobile(content, mobileList); | 761 | sendSmsService.smsSendByMobile(content, mobileList); |
749 | logger.info("record sellerQualityCheckNotPass inbox sms msg,sellerUid {}, prdName {},orderCode {}", | 762 | logger.info("record sellerQualityCheckNotPass inbox sms msg,sellerUid {}, prdName {},orderCode {}", |
750 | sellerUid, prdName,orderCode); | 763 | sellerUid, prdName,orderCode); |
@@ -762,12 +775,13 @@ public class InBoxFacade { | @@ -762,12 +775,13 @@ public class InBoxFacade { | ||
762 | Integer sellerUid = sog.getUid(); | 775 | Integer sellerUid = sog.getUid(); |
763 | String prdName = sog.getProductName(); | 776 | String prdName = sog.getProductName(); |
764 | String sizeName = sog.getSizeName(); | 777 | String sizeName = sog.getSizeName(); |
778 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
765 | try { | 779 | try { |
766 | executorService.execute(() -> { | 780 | executorService.execute(() -> { |
767 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 781 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
768 | String productCode = product.getProductCode(); | 782 | String productCode = product.getProductCode(); |
769 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_EXPRESS_QUALITY_CHECK_REJECT; | 783 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_EXPRESS_QUALITY_CHECK_REJECT; |
770 | - String params = buildParams(prdName, sizeName,productCode); | 784 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
771 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 785 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
772 | 786 | ||
773 | InBoxResponse resp = inBoxSDK.addInbox(req); | 787 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -787,7 +801,7 @@ public class InBoxFacade { | @@ -787,7 +801,7 @@ public class InBoxFacade { | ||
787 | }else if(type==3){ | 801 | }else if(type==3){ |
788 | sms = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_EXPRESS_MINI_FAULT_UN_ACCEPT_OUT_TIME; | 802 | sms = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_EXPRESS_MINI_FAULT_UN_ACCEPT_OUT_TIME; |
789 | } | 803 | } |
790 | - String content = getReplacedContent(sms.getContent(),prdName,sizeName,productCode,orderCode,wayBillCode); | 804 | + String content = getReplacedContent(sms.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode,wayBillCode); |
791 | sendSmsService.smsSendByMobile(content, mobileList); | 805 | sendSmsService.smsSendByMobile(content, mobileList); |
792 | logger.info("record sellerQualityCheckNotPass_send_back inbox sms msg,sellerUid {}, prdName {},type {},orderCode {}", | 806 | logger.info("record sellerQualityCheckNotPass_send_back inbox sms msg,sellerUid {}, prdName {},type {},orderCode {}", |
793 | sellerUid, prdName,type,orderCode); | 807 | sellerUid, prdName,type,orderCode); |
@@ -811,11 +825,12 @@ public class InBoxFacade { | @@ -811,11 +825,12 @@ public class InBoxFacade { | ||
811 | String sizeName = sog.getSizeName(); | 825 | String sizeName = sog.getSizeName(); |
812 | try { | 826 | try { |
813 | executorService.execute(() -> { | 827 | executorService.execute(() -> { |
828 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
814 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 829 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
815 | String productCode = product.getProductCode(); | 830 | String productCode = product.getProductCode(); |
816 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_SEND; | 831 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_SEND; |
817 | String timelimitDesc = new StringBuilder().append(deliveryTimeLimit).append(unit).toString(); | 832 | String timelimitDesc = new StringBuilder().append(deliveryTimeLimit).append(unit).toString(); |
818 | - String params = buildParams(prdName, sizeName,productCode, timelimitDesc); | 833 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode, timelimitDesc); |
819 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 834 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
820 | 835 | ||
821 | InBoxResponse resp = inBoxSDK.addInbox(req); | 836 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -834,7 +849,7 @@ public class InBoxFacade { | @@ -834,7 +849,7 @@ public class InBoxFacade { | ||
834 | return; | 849 | return; |
835 | } | 850 | } |
836 | List<String> mobileList = Arrays.asList(phone); | 851 | List<String> mobileList = Arrays.asList(phone); |
837 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTIFIED_SEND.getContent(),prdName,sizeName,productCode,orderCode,timelimitDesc); | 852 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTIFIED_SEND.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode,timelimitDesc); |
838 | sendSmsService.smsSendByMobile(content, mobileList); | 853 | sendSmsService.smsSendByMobile(content, mobileList); |
839 | logger.info("record sellerSkupPaidByBuyer inbox sms msg,sellerUid {}, prdName {},orderCode {} timelimitDesc {}", | 854 | logger.info("record sellerSkupPaidByBuyer inbox sms msg,sellerUid {}, prdName {},orderCode {} timelimitDesc {}", |
840 | sellerUid, prdName,orderCode, timelimitDesc); | 855 | sellerUid, prdName,orderCode, timelimitDesc); |
@@ -856,12 +871,12 @@ public class InBoxFacade { | @@ -856,12 +871,12 @@ public class InBoxFacade { | ||
856 | String prdName = sog.getProductName(); | 871 | String prdName = sog.getProductName(); |
857 | String sizeName = sog.getSizeName(); | 872 | String sizeName = sog.getSizeName(); |
858 | try { | 873 | try { |
859 | - | 874 | + executorService.execute(() -> { |
860 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 875 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
861 | String productCode = product.getProductCode(); | 876 | String productCode = product.getProductCode(); |
862 | - executorService.execute(() -> { | 877 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); |
863 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_CLOSED_SELLER; | 878 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_CLOSED_SELLER; |
864 | - String params = buildParams(prdName, sizeName,productCode); | 879 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
865 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 880 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
866 | 881 | ||
867 | InBoxResponse resp = inBoxSDK.addInbox(req); | 882 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -926,12 +941,13 @@ public class InBoxFacade { | @@ -926,12 +941,13 @@ public class InBoxFacade { | ||
926 | Integer sellerUid = sog.getUid(); | 941 | Integer sellerUid = sog.getUid(); |
927 | String prdName = sog.getProductName(); | 942 | String prdName = sog.getProductName(); |
928 | String sizeName = sog.getSizeName(); | 943 | String sizeName = sog.getSizeName(); |
944 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
929 | try { | 945 | try { |
930 | executorService.execute(() -> { | 946 | executorService.execute(() -> { |
931 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 947 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
932 | String productCode = product.getProductCode(); | 948 | String productCode = product.getProductCode(); |
933 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_CLOSED_PLATFORM; | 949 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_CLOSED_PLATFORM; |
934 | - String params = buildParams(prdName, sizeName,productCode); | 950 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
935 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 951 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
936 | 952 | ||
937 | InBoxResponse resp = inBoxSDK.addInbox(req); | 953 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -946,7 +962,7 @@ public class InBoxFacade { | @@ -946,7 +962,7 @@ public class InBoxFacade { | ||
946 | return; | 962 | return; |
947 | } | 963 | } |
948 | List<String> mobileList = Arrays.asList(phone); | 964 | List<String> mobileList = Arrays.asList(phone); |
949 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_CLOSED_PLATFORM.getContent(),prdName,sizeName,productCode,orderCode,wayBillCode); | 965 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_CLOSED_PLATFORM.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode,wayBillCode); |
950 | sendSmsService.smsSendByMobile(content, mobileList); | 966 | sendSmsService.smsSendByMobile(content, mobileList); |
951 | logger.info("record noticeSellerWhenAppraiseFail sms send,sellerUid {}, prdName {},orderCode {},wayBillCode {} ", | 967 | logger.info("record noticeSellerWhenAppraiseFail sms send,sellerUid {}, prdName {},orderCode {},wayBillCode {} ", |
952 | sellerUid, prdName,orderCode,wayBillCode); | 968 | sellerUid, prdName,orderCode,wayBillCode); |
@@ -968,12 +984,13 @@ public class InBoxFacade { | @@ -968,12 +984,13 @@ public class InBoxFacade { | ||
968 | public void notifyUnshelfCauseBySpecialReason(int sellerUid,SellerOrderGoods psog ) { | 984 | public void notifyUnshelfCauseBySpecialReason(int sellerUid,SellerOrderGoods psog ) { |
969 | try { | 985 | try { |
970 | executorService.execute(() -> { | 986 | executorService.execute(() -> { |
987 | + String skupTypeText=SkupType.getSkupType(psog.getAttributes()).attrName(); | ||
971 | String prdName = psog.getProductName(); | 988 | String prdName = psog.getProductName(); |
972 | String sizeName = psog.getSizeName(); | 989 | String sizeName = psog.getSizeName(); |
973 | Product product = productMapper.selectByPrimaryKey(psog.getProductId()); | 990 | Product product = productMapper.selectByPrimaryKey(psog.getProductId()); |
974 | String productCode = product.getProductCode(); | 991 | String productCode = product.getProductCode(); |
975 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_NOTIFIED_UNSHELF; | 992 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.SALE_NOTIFIED_UNSHELF; |
976 | - String params = buildParams(prdName,sizeName,productCode); | 993 | + String params = buildParams(skupTypeText,prdName,sizeName,productCode); |
977 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 994 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
978 | 995 | ||
979 | InBoxResponse resp = inBoxSDK.addInbox(req); | 996 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -992,7 +1009,7 @@ public class InBoxFacade { | @@ -992,7 +1009,7 @@ public class InBoxFacade { | ||
992 | return; | 1009 | return; |
993 | } | 1010 | } |
994 | List<String> mobileList = Arrays.asList(phone); | 1011 | List<String> mobileList = Arrays.asList(phone); |
995 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTIFIED_UNSHELF.getContent(),prdName,sizeName,productCode); | 1012 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTIFIED_UNSHELF.getContent(),skupTypeText,prdName,sizeName,productCode); |
996 | sendSmsService.smsSendByMobile(content, mobileList); | 1013 | sendSmsService.smsSendByMobile(content, mobileList); |
997 | logger.info("record notifyUnshelfCauseBySpecialReason inbox sms msg,sellerUid {}, prdName {}, resp {}", | 1014 | logger.info("record notifyUnshelfCauseBySpecialReason inbox sms msg,sellerUid {}, prdName {}, resp {}", |
998 | sellerUid, prdName); | 1015 | sellerUid, prdName); |
@@ -1221,12 +1238,13 @@ public class InBoxFacade { | @@ -1221,12 +1238,13 @@ public class InBoxFacade { | ||
1221 | Integer sellerUid = sog.getUid(); | 1238 | Integer sellerUid = sog.getUid(); |
1222 | String prdName = sog.getProductName(); | 1239 | String prdName = sog.getProductName(); |
1223 | String sizeName = sog.getSizeName(); | 1240 | String sizeName = sog.getSizeName(); |
1241 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
1224 | try { | 1242 | try { |
1225 | executorService.execute(() -> { | 1243 | executorService.execute(() -> { |
1226 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 1244 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
1227 | String productCode = product.getProductCode(); | 1245 | String productCode = product.getProductCode(); |
1228 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_APPRAISE_UNSURE_SEND_BACK; | 1246 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_APPRAISE_UNSURE_SEND_BACK; |
1229 | - String params = buildParams(prdName, sizeName,productCode); | 1247 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
1230 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 1248 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
1231 | 1249 | ||
1232 | InBoxResponse resp = inBoxSDK.addInbox(req); | 1250 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -1242,7 +1260,7 @@ public class InBoxFacade { | @@ -1242,7 +1260,7 @@ public class InBoxFacade { | ||
1242 | List<String> mobileList = Arrays.asList(phone); | 1260 | List<String> mobileList = Arrays.asList(phone); |
1243 | InboxBusinessTypeEnum sms = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_APPRAISE_UNSURE_SEND_BACK; | 1261 | InboxBusinessTypeEnum sms = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_APPRAISE_UNSURE_SEND_BACK; |
1244 | 1262 | ||
1245 | - String content = getReplacedContent(sms.getContent(),prdName,sizeName,productCode,orderCode,wayBillCode); | 1263 | + String content = getReplacedContent(sms.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode,wayBillCode); |
1246 | sendSmsService.smsSendByMobile(content, mobileList); | 1264 | sendSmsService.smsSendByMobile(content, mobileList); |
1247 | logger.info("record sellerAppraiseUnsure_send_back inbox sms msg,sellerUid {}, prdName {},orderCode {}", | 1265 | logger.info("record sellerAppraiseUnsure_send_back inbox sms msg,sellerUid {}, prdName {},orderCode {}", |
1248 | sellerUid, prdName,orderCode); | 1266 | sellerUid, prdName,orderCode); |
@@ -1258,13 +1276,14 @@ public class InBoxFacade { | @@ -1258,13 +1276,14 @@ public class InBoxFacade { | ||
1258 | Integer sellerUid = sog.getUid(); | 1276 | Integer sellerUid = sog.getUid(); |
1259 | String prdName = sog.getProductName(); | 1277 | String prdName = sog.getProductName(); |
1260 | String sizeName = sog.getSizeName(); | 1278 | String sizeName = sog.getSizeName(); |
1279 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
1261 | try { | 1280 | try { |
1262 | executorService.execute(() -> { | 1281 | executorService.execute(() -> { |
1263 | // 发站内信 | 1282 | // 发站内信 |
1264 | logger.info("record seller sham send out inbox sms msg for seller,sellerUid {}, prdName {}", sellerUid, prdName); | 1283 | logger.info("record seller sham send out inbox sms msg for seller,sellerUid {}, prdName {}", sellerUid, prdName); |
1265 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 1284 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
1266 | String productCode = product.getProductCode(); | 1285 | String productCode = product.getProductCode(); |
1267 | - String params = buildParams(prdName, sizeName,productCode); | 1286 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
1268 | InboxReqVO req = buildInboxReqVO(sellerUid, params, InboxBusinessTypeEnum.NOTICE_SELLER_SELLER_SHAM_SEND_OUT); | 1287 | InboxReqVO req = buildInboxReqVO(sellerUid, params, InboxBusinessTypeEnum.NOTICE_SELLER_SELLER_SHAM_SEND_OUT); |
1269 | InBoxResponse resp = inBoxSDK.addInbox(req); | 1288 | InBoxResponse resp = inBoxSDK.addInbox(req); |
1270 | logger.info("record seller sham send out inbox msg,sellerUid {}, prdName {},sizeName {} resp {}", | 1289 | logger.info("record seller sham send out inbox msg,sellerUid {}, prdName {},sizeName {} resp {}", |
@@ -1276,7 +1295,7 @@ public class InBoxFacade { | @@ -1276,7 +1295,7 @@ public class InBoxFacade { | ||
1276 | return; | 1295 | return; |
1277 | } | 1296 | } |
1278 | List<String> mobileList = Arrays.asList(phone); | 1297 | List<String> mobileList = Arrays.asList(phone); |
1279 | - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_SELLER_SHAM_SEND_OUT.getContent(),prdName,sizeName,productCode); | 1298 | + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_SELLER_SHAM_SEND_OUT.getContent(),skupTypeText,prdName,sizeName,productCode); |
1280 | sendSmsService.smsSendByMobile(content, mobileList); | 1299 | sendSmsService.smsSendByMobile(content, mobileList); |
1281 | logger.info("seller sham send out msg,sellerUid {}, prdName {}", sellerUid, prdName); | 1300 | logger.info("seller sham send out msg,sellerUid {}, prdName {}", sellerUid, prdName); |
1282 | }); | 1301 | }); |
@@ -1385,6 +1404,7 @@ public class InBoxFacade { | @@ -1385,6 +1404,7 @@ public class InBoxFacade { | ||
1385 | Integer sellerUid = sog.getUid(); | 1404 | Integer sellerUid = sog.getUid(); |
1386 | String prdName = sog.getProductName(); | 1405 | String prdName = sog.getProductName(); |
1387 | String sizeName = sog.getSizeName(); | 1406 | String sizeName = sog.getSizeName(); |
1407 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
1388 | InboxBusinessTypeEnum ibt; | 1408 | InboxBusinessTypeEnum ibt; |
1389 | InboxBusinessTypeEnum smsInboxBusinessTypeEnum; | 1409 | InboxBusinessTypeEnum smsInboxBusinessTypeEnum; |
1390 | String params ; | 1410 | String params ; |
@@ -1393,15 +1413,15 @@ public class InBoxFacade { | @@ -1393,15 +1413,15 @@ public class InBoxFacade { | ||
1393 | String productCode = product.getProductCode(); | 1413 | String productCode = product.getProductCode(); |
1394 | try { | 1414 | try { |
1395 | if (times == 2) { | 1415 | if (times == 2) { |
1396 | - params = buildParams(prdName, sizeName,productCode, leftTime, timeUnit); | 1416 | + params = buildParams(skupTypeText,prdName, sizeName,productCode, leftTime, timeUnit); |
1397 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_DELIVER_GOODS; | 1417 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_DELIVER_GOODS; |
1398 | smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTIFIED_SEND_SECOND; | 1418 | smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTIFIED_SEND_SECOND; |
1399 | - content = getReplacedContent(smsInboxBusinessTypeEnum.getContent(),prdName,sizeName,productCode,leftTime,timeUnit,orderCode); | 1419 | + content = getReplacedContent(smsInboxBusinessTypeEnum.getContent(),skupTypeText,prdName,sizeName,productCode,leftTime,timeUnit,orderCode); |
1400 | } else if (times == 3) { | 1420 | } else if (times == 3) { |
1401 | - params = buildParams(prdName, sizeName,productCode); | 1421 | + params = buildParams(skupTypeText,prdName, sizeName,productCode); |
1402 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_DELIVER_GOODS_FAIL; | 1422 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_DELIVER_GOODS_FAIL; |
1403 | smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTIFIED_SEND_FAILED; | 1423 | smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTIFIED_SEND_FAILED; |
1404 | - content = getReplacedContent(smsInboxBusinessTypeEnum.getContent(),prdName,sizeName,productCode,orderCode); | 1424 | + content = getReplacedContent(smsInboxBusinessTypeEnum.getContent(),skupTypeText,prdName,sizeName,productCode,orderCode); |
1405 | } else { | 1425 | } else { |
1406 | return; | 1426 | return; |
1407 | } | 1427 | } |
@@ -1435,6 +1455,7 @@ public class InBoxFacade { | @@ -1435,6 +1455,7 @@ public class InBoxFacade { | ||
1435 | Integer sellerUid = sog.getUid(); | 1455 | Integer sellerUid = sog.getUid(); |
1436 | String prdName = sog.getProductName(); | 1456 | String prdName = sog.getProductName(); |
1437 | String sizeName = sog.getSizeName(); | 1457 | String sizeName = sog.getSizeName(); |
1458 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
1438 | 1459 | ||
1439 | InboxBusinessTypeEnum ibt; | 1460 | InboxBusinessTypeEnum ibt; |
1440 | InboxBusinessTypeEnum smsInboxBusinessTypeEnum; | 1461 | InboxBusinessTypeEnum smsInboxBusinessTypeEnum; |
@@ -1443,10 +1464,10 @@ public class InBoxFacade { | @@ -1443,10 +1464,10 @@ public class InBoxFacade { | ||
1443 | try { | 1464 | try { |
1444 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 1465 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
1445 | String productCode = product.getProductCode(); | 1466 | String productCode = product.getProductCode(); |
1446 | - params = buildParams(prdName, sizeName,productCode); | 1467 | + params = buildParams(skupTypeText,prdName, sizeName,productCode); |
1447 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_APPRAISE_UNSURE; | 1468 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_APPRAISE_UNSURE; |
1448 | smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_APPRAISE_UNSURE; | 1469 | smsInboxBusinessTypeEnum = InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_APPRAISE_UNSURE; |
1449 | - content = getReplacedContent(smsInboxBusinessTypeEnum.getContent(), prdName, sizeName,productCode,orderCode); | 1470 | + content = getReplacedContent(smsInboxBusinessTypeEnum.getContent(),skupTypeText, prdName, sizeName,productCode,orderCode); |
1450 | executorService.execute(() -> { | 1471 | executorService.execute(() -> { |
1451 | 1472 | ||
1452 | 1473 | ||
@@ -1478,6 +1499,7 @@ public class InBoxFacade { | @@ -1478,6 +1499,7 @@ public class InBoxFacade { | ||
1478 | Integer sellerUid = sog.getUid(); | 1499 | Integer sellerUid = sog.getUid(); |
1479 | String prdName = sog.getProductName(); | 1500 | String prdName = sog.getProductName(); |
1480 | String sizeName = sog.getSizeName(); | 1501 | String sizeName = sog.getSizeName(); |
1502 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
1481 | try { | 1503 | try { |
1482 | executorService.execute(()->{ | 1504 | executorService.execute(()->{ |
1483 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 1505 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
@@ -1492,7 +1514,7 @@ public class InBoxFacade { | @@ -1492,7 +1514,7 @@ public class InBoxFacade { | ||
1492 | buyerUid, orderCode,prdName, resp); | 1514 | buyerUid, orderCode,prdName, resp); |
1493 | //seller | 1515 | //seller |
1494 | InboxBusinessTypeEnum ibtOfSeller = InboxBusinessTypeEnum.SALE_CLOSED_BY_BUYER_AFTER_DELIVERY; | 1516 | InboxBusinessTypeEnum ibtOfSeller = InboxBusinessTypeEnum.SALE_CLOSED_BY_BUYER_AFTER_DELIVERY; |
1495 | - String paramsOfSeller = buildParams(prdName, sizeName,productCode); | 1517 | + String paramsOfSeller = buildParams(skupTypeText,prdName, sizeName,productCode); |
1496 | InboxReqVO reqOfSeller = buildInboxReqVO(sellerUid, paramsOfSeller, ibtOfSeller); | 1518 | InboxReqVO reqOfSeller = buildInboxReqVO(sellerUid, paramsOfSeller, ibtOfSeller); |
1497 | InBoxResponse respOfSeller = inBoxSDK.addInbox(reqOfSeller); | 1519 | InBoxResponse respOfSeller = inBoxSDK.addInbox(reqOfSeller); |
1498 | logger.info("record buyerCancelBeforeDepotReceive to seller inbox msg, sellerUid {}, orderCode {},prdName {} resp {}", | 1520 | logger.info("record buyerCancelBeforeDepotReceive to seller inbox msg, sellerUid {}, orderCode {},prdName {} resp {}", |
@@ -1511,7 +1533,7 @@ public class InBoxFacade { | @@ -1511,7 +1533,7 @@ public class InBoxFacade { | ||
1511 | } | 1533 | } |
1512 | List<String> mobileList = Arrays.asList(phone); | 1534 | List<String> mobileList = Arrays.asList(phone); |
1513 | 1535 | ||
1514 | - String content= getReplacedContent(InboxBusinessTypeEnum.SMS_CANCELED_BY_BUYER_AFTER_DELIVERY.getContent(),orderCode); | 1536 | + String content= getReplacedContent(InboxBusinessTypeEnum.SMS_CANCELED_BY_BUYER_AFTER_DELIVERY.getContent(),skupTypeText,prdName, sizeName,productCode,orderCode); |
1515 | sendSmsService.smsSendByMobile(content,mobileList); | 1537 | sendSmsService.smsSendByMobile(content,mobileList); |
1516 | logger.info("record buyerCancelBeforeDepotReceive inbox sms msg, sellerUid {}, orderCode {},prdName {}", | 1538 | logger.info("record buyerCancelBeforeDepotReceive inbox sms msg, sellerUid {}, orderCode {},prdName {}", |
1517 | sellerUid, orderCode, prdName); | 1539 | sellerUid, orderCode, prdName); |
@@ -1536,12 +1558,13 @@ public class InBoxFacade { | @@ -1536,12 +1558,13 @@ public class InBoxFacade { | ||
1536 | executorService.execute(()->{ | 1558 | executorService.execute(()->{ |
1537 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); | 1559 | Product product = productMapper.selectByPrimaryKey(sog.getProductId()); |
1538 | String productCode = product.getProductCode(); | 1560 | String productCode = product.getProductCode(); |
1561 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
1539 | 1562 | ||
1540 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY; | 1563 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY; |
1541 | if(autoReSell){ | 1564 | if(autoReSell){ |
1542 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_AUTO_RESELL_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY; | 1565 | ibt = InboxBusinessTypeEnum.NOTICE_SELLER_AUTO_RESELL_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY; |
1543 | } | 1566 | } |
1544 | - String params = buildParams(prdName, sizeName,productCode); | 1567 | + String params = buildParams(skupTypeText,prdName, sizeName,productCode); |
1545 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); | 1568 | InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); |
1546 | 1569 | ||
1547 | InBoxResponse resp = inBoxSDK.addInbox(req); | 1570 | InBoxResponse resp = inBoxSDK.addInbox(req); |
@@ -1565,7 +1588,7 @@ public class InBoxFacade { | @@ -1565,7 +1588,7 @@ public class InBoxFacade { | ||
1565 | if(autoReSell){ | 1588 | if(autoReSell){ |
1566 | sms=InboxBusinessTypeEnum.SMS_NOTICE_SELLER_AUTO_RESELL_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY; | 1589 | sms=InboxBusinessTypeEnum.SMS_NOTICE_SELLER_AUTO_RESELL_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY; |
1567 | } | 1590 | } |
1568 | - String content = replaceSMSContent(sms, orderCode, prdName,sizeName,productCode); | 1591 | + String content = replaceSMSContent(sms,skupTypeText, orderCode, prdName,sizeName,productCode); |
1569 | sendSmsService.smsSendByMobile(content,mobileList); | 1592 | sendSmsService.smsSendByMobile(content,mobileList); |
1570 | logger.info("record noticeSellerWhenBuyerCancelNoResponsibility inbox sms msg, sellerUid {}, orderCode {},prdName {}", | 1593 | logger.info("record noticeSellerWhenBuyerCancelNoResponsibility inbox sms msg, sellerUid {}, orderCode {},prdName {}", |
1571 | sellerUid, orderCode, prdName); | 1594 | sellerUid, orderCode, prdName); |
@@ -1580,6 +1603,7 @@ public class InBoxFacade { | @@ -1580,6 +1603,7 @@ public class InBoxFacade { | ||
1580 | Integer sellerUid = sog.getUid(); | 1603 | Integer sellerUid = sog.getUid(); |
1581 | String prdName = sog.getProductName(); | 1604 | String prdName = sog.getProductName(); |
1582 | String sizeName = sog.getSizeName(); | 1605 | String sizeName = sog.getSizeName(); |
1606 | + String skupTypeText=SkupType.getSkupType(sog.getAttributes()).attrName(); | ||
1583 | try { | 1607 | try { |
1584 | executorService.execute(()->{ | 1608 | executorService.execute(()->{ |
1585 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.PURCHASE_CLOSED_BY_BUYER_AFTER_PAID; | 1609 | InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.PURCHASE_CLOSED_BY_BUYER_AFTER_PAID; |
@@ -1596,7 +1620,7 @@ public class InBoxFacade { | @@ -1596,7 +1620,7 @@ public class InBoxFacade { | ||
1596 | if(autoReSellFlag){ | 1620 | if(autoReSellFlag){ |
1597 | ibtOfSeller = InboxBusinessTypeEnum.SALE_CLOSED_AUTO_RESELL_BY_BUYER_AFTER_PAID; | 1621 | ibtOfSeller = InboxBusinessTypeEnum.SALE_CLOSED_AUTO_RESELL_BY_BUYER_AFTER_PAID; |
1598 | } | 1622 | } |
1599 | - String paramsOfSeller = buildParams(prdName, sizeName,productCode); | 1623 | + String paramsOfSeller = buildParams(skupTypeText,prdName, sizeName,productCode); |
1600 | InboxReqVO reqOfSeller = buildInboxReqVO(sellerUid, paramsOfSeller, ibtOfSeller); | 1624 | InboxReqVO reqOfSeller = buildInboxReqVO(sellerUid, paramsOfSeller, ibtOfSeller); |
1601 | InBoxResponse respOfSeller = inBoxSDK.addInbox(reqOfSeller); | 1625 | InBoxResponse respOfSeller = inBoxSDK.addInbox(reqOfSeller); |
1602 | logger.info("record buyerCancelBeforeSellerDeliver to seller inbox msg, sellerUid {}, orderCode {},prdName {} resp {}", | 1626 | logger.info("record buyerCancelBeforeSellerDeliver to seller inbox msg, sellerUid {}, orderCode {},prdName {} resp {}", |
@@ -1619,7 +1643,7 @@ public class InBoxFacade { | @@ -1619,7 +1643,7 @@ public class InBoxFacade { | ||
1619 | if(autoReSellFlag){ | 1643 | if(autoReSellFlag){ |
1620 | sms=InboxBusinessTypeEnum.SMS_CANCELED_AUTO_RESELL_BY_BUYER_AFTER_PAID; | 1644 | sms=InboxBusinessTypeEnum.SMS_CANCELED_AUTO_RESELL_BY_BUYER_AFTER_PAID; |
1621 | } | 1645 | } |
1622 | - String content= getReplacedContent(sms.getContent(),orderCode,prdName,sizeName,productCode); | 1646 | + String content= getReplacedContent(sms.getContent(),skupTypeText,orderCode,prdName,sizeName,productCode); |
1623 | sendSmsService.smsSendByMobile(content,mobileList); | 1647 | sendSmsService.smsSendByMobile(content,mobileList); |
1624 | logger.info("record buyerCancelBeforeSellerDeliver inbox sms msg, sellerUid {}, orderCode {},prdName {} ,sizeName {} ,productCode {}", | 1648 | logger.info("record buyerCancelBeforeSellerDeliver inbox sms msg, sellerUid {}, orderCode {},prdName {} ,sizeName {} ,productCode {}", |
1625 | sellerUid, orderCode, prdName,sizeName,productCode); | 1649 | sellerUid, orderCode, prdName,sizeName,productCode); |
-
Please register or login to post a comment