diff --git a/XinAoDTS/fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/OrderServiceImpl.java b/XinAoDTS/fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/OrderServiceImpl.java index fe40b23..b832dae 100644 --- a/XinAoDTS/fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/OrderServiceImpl.java +++ b/XinAoDTS/fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/OrderServiceImpl.java @@ -1066,9 +1066,18 @@ public class OrderServiceImpl extends ServiceImpl implem String dateTime = DateUtil.formatDate(Calendar.getInstance().getTime(), "yyyy-MM-dd HH:mm"); params.put("time", dateTime); params.put("orderSn", orderInfo.getOrderSn()); + + + MtStore storeInfo = storeService.queryStoreById(orderInfo.getStoreId()); + if(Objects.nonNull(storeInfo)){ + params.put("remark", "您的服务站来订单了,请留意处理~"); + MtUser mtUser = memberService.queryMemberByMobile(merchantId, storeInfo.getPhone()); + if(Objects.nonNull(mtUser)){ + weixinService.sendSubscribeMessage(merchantId, mtUser.getId(), mtUser.getOpenId(), WxMessageEnum.ORDER_CREATED.getKey(), "pages/order/index", params, sendTime); + } + } params.put("remark", "您的订单已生成,请留意~"); weixinService.sendSubscribeMessage(merchantId, userInfo.getId(), userInfo.getOpenId(), WxMessageEnum.ORDER_CREATED.getKey(), "pages/order/index", params, sendTime); - if (StringUtil.isNotEmpty(errorMessage)) { throw new BusinessCheckException(errorMessage); } else {