收货信息

main
小鱼干 1 month ago
parent c41489d607
commit 8546571c0b

@ -1066,9 +1066,18 @@ public class OrderServiceImpl extends ServiceImpl<MtOrderMapper, MtOrder> implem
String dateTime = DateUtil.formatDate(Calendar.getInstance().getTime(), "yyyy-MM-dd HH:mm"); String dateTime = DateUtil.formatDate(Calendar.getInstance().getTime(), "yyyy-MM-dd HH:mm");
params.put("time", dateTime); params.put("time", dateTime);
params.put("orderSn", orderInfo.getOrderSn()); 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", "您的订单已生成,请留意~"); params.put("remark", "您的订单已生成,请留意~");
weixinService.sendSubscribeMessage(merchantId, userInfo.getId(), userInfo.getOpenId(), WxMessageEnum.ORDER_CREATED.getKey(), "pages/order/index", params, sendTime); weixinService.sendSubscribeMessage(merchantId, userInfo.getId(), userInfo.getOpenId(), WxMessageEnum.ORDER_CREATED.getKey(), "pages/order/index", params, sendTime);
if (StringUtil.isNotEmpty(errorMessage)) { if (StringUtil.isNotEmpty(errorMessage)) {
throw new BusinessCheckException(errorMessage); throw new BusinessCheckException(errorMessage);
} else { } else {

Loading…
Cancel
Save