|
@@ -372,31 +372,31 @@ public class ShipServiceImpl implements ShipService {
|
|
|
/**
|
|
|
* 发货后消息推送
|
|
|
*/
|
|
|
- if (1 == orderClubMapper.getReceiptStatus(logisticsDto.getShopOrderId())) {
|
|
|
- if (0 == orderClubMapper.getsecondHandOrderFlag(logisticsDto.getShopOrderId()) && 0 == orderClubMapper.getrebateFlag(logisticsDto.getShopOrderId())) {
|
|
|
- SubmitServiceImpl s=new SubmitServiceImpl();
|
|
|
- try {
|
|
|
- LogisticsInformationPo logisticsInformation = new LogisticsInformationPo();
|
|
|
- String accessToken = weChatService.getAccessToken();
|
|
|
- List<String> openidList = shipMapper.getOpenidListByPermission(shopOrder.getUserId(),s.unionId);
|
|
|
- openidList.removeIf(Objects::isNull);
|
|
|
- String company = logisticsInformation.getLogisticsCompanyName();
|
|
|
- String companyno = logisticsInformation.getNu();
|
|
|
- String associateTitle = "尊敬的采美客户,您购买的订单已经发货啦~";
|
|
|
- String time = logisticsBatch.getDeliveryTime().toString();
|
|
|
- String orderno = shopOrder.getOrderNo();
|
|
|
- String remarkText = "收到货后请记得确认收货哟~";
|
|
|
- // 跳转到【跳转到小程序订单详情页面】
|
|
|
- String pagePath = "pages/user/order/order-details?orderId=" + shipMapper.getorderID(logisticsDto.getShopOrderId());
|
|
|
- for (String openid : openidList) {
|
|
|
- // sendTemplateMsg(openid, 标题, 金额, 收款日期, 备注, 跳转链接)
|
|
|
- weChatService.sendTemplateMsgy(accessToken, openid, associateTitle, orderno, time, company, companyno, remarkText, pagePath);
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- log.error("【订单发货通知】获取微信公众号access_token异常!", e);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// if (1 == orderClubMapper.getReceiptStatus(logisticsDto.getShopOrderId())) {
|
|
|
+// if (0 == orderClubMapper.getsecondHandOrderFlag(logisticsDto.getShopOrderId()) && 0 == orderClubMapper.getrebateFlag(logisticsDto.getShopOrderId())) {
|
|
|
+// SubmitServiceImpl s=new SubmitServiceImpl();
|
|
|
+// try {
|
|
|
+// LogisticsInformationPo logisticsInformation = new LogisticsInformationPo();
|
|
|
+// String accessToken = weChatService.getAccessToken();
|
|
|
+// List<String> openidList = shipMapper.getOpenidListByPermission(shopOrder.getUserId(),s.unionId);
|
|
|
+// openidList.removeIf(Objects::isNull);
|
|
|
+// String company = logisticsInformation.getLogisticsCompanyName();
|
|
|
+// String companyno = logisticsInformation.getNu();
|
|
|
+// String associateTitle = "尊敬的采美客户,您购买的订单已经发货啦~";
|
|
|
+// String time = logisticsBatch.getDeliveryTime().toString();
|
|
|
+// String orderno = shopOrder.getOrderNo();
|
|
|
+// String remarkText = "收到货后请记得确认收货哟~";
|
|
|
+// // 跳转到【跳转到小程序订单详情页面】
|
|
|
+// String pagePath = "pages/user/order/order-details?orderId=" + shipMapper.getorderID(logisticsDto.getShopOrderId());
|
|
|
+// for (String openid : openidList) {
|
|
|
+// // sendTemplateMsg(openid, 标题, 金额, 收款日期, 备注, 跳转链接)
|
|
|
+// weChatService.sendTemplateMsgy(accessToken, openid, associateTitle, orderno, time, company, companyno, remarkText, pagePath);
|
|
|
+// }
|
|
|
+// } catch (Exception e) {
|
|
|
+// log.error("【订单发货通知】获取微信公众号access_token异常!", e);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
return ResponseJson.success(logisticsBatch.getId());
|
|
|
|
|
|
}
|