Authored by qinchao

Merge branch 'dev_qc693_取消skup重新上架' into test6.9.3

@@ -157,7 +157,7 @@ public class BuyerOrderCancelService { @@ -157,7 +157,7 @@ public class BuyerOrderCancelService {
157 } 157 }
158 158
159 if (noResponsibility){ 159 if (noResponsibility){
160 - inBoxFacade.noticeSellerWhenBuyerCancelNoResponsibility(psog, orderCode); 160 + inBoxFacade.noticeSellerWhenBuyerCancelNoResponsibility(psog, orderCode,reSellAfterCancel);
161 }else { 161 }else {
162 inBoxFacade.buyerCancelBeforeSellerDeliver(buyerUid, orderCode, 162 inBoxFacade.buyerCancelBeforeSellerDeliver(buyerUid, orderCode,
163 penaltyAmount.toPlainString(), psog,reSellAfterCancel); 163 penaltyAmount.toPlainString(), psog,reSellAfterCancel);
@@ -274,7 +274,7 @@ public class BuyerOrderCancelService { @@ -274,7 +274,7 @@ public class BuyerOrderCancelService {
274 sellerOrderMapper.updateBySkups(soc, Arrays.asList(skup)); 274 sellerOrderMapper.updateBySkups(soc, Arrays.asList(skup));
275 SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup); 275 SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup);
276 if (noResponsibility){ 276 if (noResponsibility){
277 - inBoxFacade.noticeSellerWhenBuyerCancelNoResponsibility(psog, orderCode); 277 + inBoxFacade.noticeSellerWhenBuyerCancelNoResponsibility(psog, orderCode,false);
278 }else { 278 }else {
279 inBoxFacade.buyerCancelBeforeDepotReceive(buyerUid, orderCode, 279 inBoxFacade.buyerCancelBeforeDepotReceive(buyerUid, orderCode,
280 penaltyAmount.toPlainString(), psog); 280 penaltyAmount.toPlainString(), psog);
@@ -1468,7 +1468,7 @@ public class InBoxFacade { @@ -1468,7 +1468,7 @@ public class InBoxFacade {
1468 * 站内:您的商品「商品名称」「尺码」,已被买家取消,您出售的商品已下架,保证金将于1个工作日内退回您的账户。 1468 * 站内:您的商品「商品名称」「尺码」,已被买家取消,您出售的商品已下架,保证金将于1个工作日内退回您的账户。
1469 * 短信:买家已取消订单,订单编号{}。您的商品「商品名称」已下架,更多信息请查看Yoho!Buy有货APP [我的-球鞋交易-出售]。 1469 * 短信:买家已取消订单,订单编号{}。您的商品「商品名称」已下架,更多信息请查看Yoho!Buy有货APP [我的-球鞋交易-出售]。
1470 */ 1470 */
1471 - public void noticeSellerWhenBuyerCancelNoResponsibility(SellerOrderGoods sog, long orderCode){ 1471 + public void noticeSellerWhenBuyerCancelNoResponsibility(SellerOrderGoods sog, long orderCode,boolean autoReSell){
1472 1472
1473 Integer sellerUid = sog.getUid(); 1473 Integer sellerUid = sog.getUid();
1474 String prdName = sog.getProductName(); 1474 String prdName = sog.getProductName();
@@ -1479,6 +1479,9 @@ public class InBoxFacade { @@ -1479,6 +1479,9 @@ public class InBoxFacade {
1479 String productCode = product.getProductCode(); 1479 String productCode = product.getProductCode();
1480 1480
1481 InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY; 1481 InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY;
  1482 + if(autoReSell){
  1483 + ibt = InboxBusinessTypeEnum.NOTICE_SELLER_AUTO_RESELL_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY;
  1484 + }
1482 String params = buildParams(prdName, sizeName,productCode, orderCode); 1485 String params = buildParams(prdName, sizeName,productCode, orderCode);
1483 InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt); 1486 InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt);
1484 1487
@@ -1494,7 +1497,11 @@ public class InBoxFacade { @@ -1494,7 +1497,11 @@ public class InBoxFacade {
1494 } 1497 }
1495 List<String> mobileList = Arrays.asList(phone); 1498 List<String> mobileList = Arrays.asList(phone);
1496 1499
1497 - String content = replaceSMSContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY, orderCode, prdName,sizeName,productCode); 1500 + InboxBusinessTypeEnum sms=InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY;
  1501 + if(autoReSell){
  1502 + sms=InboxBusinessTypeEnum.SMS_NOTICE_SELLER_AUTO_RESELL_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY;
  1503 + }
  1504 + String content = replaceSMSContent(sms, orderCode, prdName,sizeName,productCode);
1498 sendSmsService.smsSendByMobile(content,mobileList); 1505 sendSmsService.smsSendByMobile(content,mobileList);
1499 logger.info("record noticeSellerWhenBuyerCancelNoResponsibility inbox sms msg, sellerUid {}, orderCode {},prdName {}", 1506 logger.info("record noticeSellerWhenBuyerCancelNoResponsibility inbox sms msg, sellerUid {}, orderCode {},prdName {}",
1500 sellerUid, orderCode, prdName); 1507 sellerUid, orderCode, prdName);