Authored by chenchao

Merge remote-tracking branch 'origin/test6.9.10' into test6.9.10

@@ -586,15 +586,11 @@ public class AppraiseService { @@ -586,15 +586,11 @@ public class AppraiseService {
586 return new ApiResponse(); 586 return new ApiResponse();
587 } 587 }
588 588
589 - AppraiseOrderStorage appraiseOrderStorage = appraiseOrderStorageMapper.selectByOrderCode(orderCode);  
590 - if (appraiseOrderStorage == null){  
591 - LOGGER.warn("appraise order storage not exist {}", orderCode);  
592 - return new ApiResponse();  
593 - }  
594 -  
595 // 子订单对应商品 1:1 589 // 子订单对应商品 1:1
596 AppraiseOrderGoods oneAppraiseOrderGood = appraiseOrderGoods.get(0); 590 AppraiseOrderGoods oneAppraiseOrderGood = appraiseOrderGoods.get(0);
597 - inBoxFacade.sendInboxSmsWhenAppraiseFinished(uid, oneAppraiseOrderGood.getProductName(),appraiseOrderStorage.getSizeName(), oneAppraiseOrderGood.getProductCode(), wayBillCode); 591 + inBoxFacade.sendInboxSmsWhenAppraiseFinished(uid, oneAppraiseOrderGood.getProductName(),
  592 + oneAppraiseOrderGood.getProductCode(),
  593 + wayBillCode);
598 } 594 }
599 595
600 if (appraiseOrder.getAttributes() == AppraiseOrderAttributes.PAID_DEPOSIT.getCode()) { // 鉴定寄存的订单,需要同步修改寄存表的状态 596 if (appraiseOrder.getAttributes() == AppraiseOrderAttributes.PAID_DEPOSIT.getCode()) { // 鉴定寄存的订单,需要同步修改寄存表的状态
@@ -336,30 +336,29 @@ public class InBoxFacade extends BaseNoticeFacade{ @@ -336,30 +336,29 @@ public class InBoxFacade extends BaseNoticeFacade{
336 * 鉴定结束发货,发送站内信和短信 336 * 鉴定结束发货,发送站内信和短信
337 * @param uid 337 * @param uid
338 * @param prdName 338 * @param prdName
339 - * @param sizeName  
340 * @param productCode 339 * @param productCode
341 * @param wayBillCode 340 * @param wayBillCode
342 */ 341 */
343 - public void sendInboxSmsWhenAppraiseFinished(int uid, String prdName, String sizeName, String productCode,String wayBillCode){ 342 + public void sendInboxSmsWhenAppraiseFinished(int uid, String prdName, String productCode,String wayBillCode){
344 343
345 try { 344 try {
346 executorService.execute(() -> { 345 executorService.execute(() -> {
347 - String params = buildParams(prdName, sizeName, productCode); 346 + String params = buildParams(prdName, productCode);
348 InboxReqVO req = buildInboxReqVO(uid, params, InboxBusinessTypeEnum.INBOX_DELIVERY_APPRAISE_FINISHED); 347 InboxReqVO req = buildInboxReqVO(uid, params, InboxBusinessTypeEnum.INBOX_DELIVERY_APPRAISE_FINISHED);
349 348
350 InBoxResponse resp = inBoxSDK.addInbox(req); 349 InBoxResponse resp = inBoxSDK.addInbox(req);
351 - log.info("record sendInboxSmsWhenAppraiseFinished inbox msg, uid {}, prdName {}, resp {}",uid, prdName, resp);  
352 - 350 + log.info("record sendInboxSmsWhenAppraiseFinished inbox msg, uid {}, prdName {}, wayBillCode {}, resp {}", uid, prdName, wayBillCode, resp);
353 351
354 //短信 352 //短信
355 String phone = userProxyService.getMobile(uid); 353 String phone = userProxyService.getMobile(uid);
356 if (StringUtils.isBlank(phone)){ 354 if (StringUtils.isBlank(phone)){
357 - log.warn("sendInboxSmsComm sms send fail,sellerUid {}, prdName {} timelimitDesc {}",uid, prdName); 355 + log.warn("sendInboxSmsWhenAppraiseFinished sms send fail,sellerUid {}, prdName {} timelimitDesc {}",uid, prdName);
358 return; 356 return;
359 } 357 }
360 List<String> mobileList = Arrays.asList(phone); 358 List<String> mobileList = Arrays.asList(phone);
361 - String content = getReplacedContent(InboxBusinessTypeEnum.SMS_DELIVERY_APPRAISE_FINISHED.getContent(),prdName,sizeName,productCode,wayBillCode); 359 + String content = getReplacedContent(InboxBusinessTypeEnum.SMS_DELIVERY_APPRAISE_FINISHED.getContent(), prdName ,productCode,wayBillCode);
362 sendSmsService.smsSendByMobile(content, mobileList); 360 sendSmsService.smsSendByMobile(content, mobileList);
  361 + log.info("sendInboxSmsWhenAppraiseFinished sms content {}, mobileList {}", content, mobileList);
363 }); 362 });
364 363
365 } catch (Exception e) { 364 } catch (Exception e) {