From 8546571c0be0e8572eb478f5809d46fcdf2ff851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=B9=B2?= <1810377322@163.com> Date: Tue, 22 Oct 2024 13:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=A7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fuint/common/service/impl/OrderServiceImpl.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 {