fix(多租户):多租户数据接口和数据表结构,noIgnoreSqls逻辑添加
This commit is contained in:
+1
-1
@@ -28,6 +28,6 @@ public interface DeviceCenterService {
|
||||
@GetMapping("/wayline/sign/{id}")
|
||||
String getLineFileSign(@PathVariable("id") String id);
|
||||
|
||||
@GetMapping("/stream-urls")
|
||||
@GetMapping("/live/stream-urls")
|
||||
JSONObject getStreamUrls(@RequestParam("deviceId") String deviceId) ;
|
||||
}
|
||||
|
||||
+11
-9
@@ -11,7 +11,6 @@ import com.central.order.feign.UserCenterService;
|
||||
import com.central.order.model.*;
|
||||
import com.central.order.service.*;
|
||||
import com.central.order.util.DateUtils;
|
||||
import com.central.order.util.StringUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -167,15 +166,16 @@ public class OrderStatusChangeListener {
|
||||
// 发送小程序订阅消息
|
||||
if (sysUser.getOpenId() != null) {
|
||||
String tip = "支付成功,当前排第"+queue+"位";
|
||||
String amount = StringUtils.fenToYuan(order.getOrderAmount());
|
||||
String orderName = tourism.getTourismName();
|
||||
wxMiniSubscribeService.sendPaySuccessMsg(
|
||||
String pageUrl = "pages/task/task";
|
||||
wxMiniSubscribeService.sendServiceProcessMsg(
|
||||
sysUser.getOpenId(),
|
||||
orderName,
|
||||
order.getOrderNo(),
|
||||
tip,
|
||||
amount,
|
||||
DateUtils.sdf.format(order.getPayTime())
|
||||
order.getOrderNo(),
|
||||
DateUtils.sdf.format(order.getPayTime()),
|
||||
"",
|
||||
pageUrl
|
||||
);
|
||||
}
|
||||
|
||||
@@ -227,13 +227,15 @@ public class OrderStatusChangeListener {
|
||||
String activityName = tourism.getTourismName(); // 活动名称
|
||||
String remark = "即将为您进行拍摄服务";
|
||||
String activityNo = nextOrder.getOrderNo(); // 活动编号
|
||||
wxMiniSubscribeService.sendPaySuccessMsg(
|
||||
String pageUrl = "pages/task/task";
|
||||
wxMiniSubscribeService.sendServiceProcessMsg(
|
||||
nextUser.getOpenId(),
|
||||
activityName,
|
||||
activityNo,
|
||||
remark,
|
||||
activityNo,
|
||||
DateUtils.sdf.format(nextOrder.getPayTime())
|
||||
DateUtils.sdf.format(nextOrder.getPayTime()),
|
||||
"",
|
||||
pageUrl
|
||||
);
|
||||
log.info("已通知下一个排队用户: userId={}, openId={}, orderNo={}", nextUser.getId(), nextUser.getOpenId(), activityNo);
|
||||
}
|
||||
|
||||
+6
-6
@@ -13,7 +13,6 @@ import com.central.order.model.Tourism;
|
||||
import com.central.order.model.dto.VideoEditStatus;
|
||||
import com.central.order.service.*;
|
||||
import com.central.order.util.DateUtils;
|
||||
import com.central.order.util.StringUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -197,14 +196,15 @@ public class VideoEditServiceImpl implements IVideoEditService {
|
||||
|
||||
Tourism tourism = tourismService.getTourismById(order.getTourismId());
|
||||
String result = "视频已生成请查阅";
|
||||
|
||||
wxMiniSubscribeService.sendPaySuccessMsg(
|
||||
String pageUrl = "pages/album/album";
|
||||
wxMiniSubscribeService.sendServiceProcessMsg(
|
||||
user.getOpenId(),
|
||||
tourism.getTourismName(),
|
||||
orderNo,
|
||||
result,
|
||||
StringUtils.fenToYuan(order.getOrderAmount()),
|
||||
DateUtils.sdf.format(order.getPayTime())
|
||||
orderNo,
|
||||
DateUtils.sdf.format(order.getPayTime()),
|
||||
"",
|
||||
pageUrl
|
||||
);
|
||||
log.info("已发送一键成片完成通知: userId={}, openId={}, orderNo={}", userId, user.getOpenId(), orderNo);
|
||||
} catch (Exception e) {
|
||||
|
||||
+4
-1
@@ -19,6 +19,9 @@ public class WxMiniSubscribeServiceImpl implements WxMiniSubscribeService {
|
||||
@Value("${wx.mini.template.pay-success}")
|
||||
private String templateId;
|
||||
|
||||
@Value("${wx.mini.template.service-process}")
|
||||
private String serviceProcessTemplateId;
|
||||
|
||||
@Autowired
|
||||
private WxMaService wxMaService;
|
||||
|
||||
@@ -60,7 +63,7 @@ public class WxMiniSubscribeServiceImpl implements WxMiniSubscribeService {
|
||||
try {
|
||||
WxMaSubscribeMessage msg = new WxMaSubscribeMessage();
|
||||
msg.setToUser(openId);
|
||||
msg.setTemplateId(templateId);
|
||||
msg.setTemplateId(serviceProcessTemplateId);
|
||||
msg.setPage(pageUrl); // 可选跳转页面 "pages/task/task"
|
||||
|
||||
List<WxMaSubscribeMessage.MsgData> dataList = new ArrayList<>();
|
||||
|
||||
@@ -40,10 +40,12 @@ zlt:
|
||||
- profit_sharing
|
||||
- order_statistics
|
||||
ignoreSqls:
|
||||
# 用户关联角色时,显示所有角色
|
||||
- com.central.order.mapper.findList
|
||||
# 用户列表显示用户所关联的所有角色
|
||||
- com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds
|
||||
# 查询全部列表
|
||||
- com.central.order.mapper.OrderMapper.findList
|
||||
# 获取某个订单
|
||||
- com.central.order.mapper.OrderMapper.getOrderByNumber
|
||||
noIgnoreSqls:
|
||||
- com.central.order.mapper.OrderMapper.findList
|
||||
# 微信支付商户号
|
||||
tencent:
|
||||
merchantId: ${zlt.wxpay.merchantId}
|
||||
|
||||
@@ -4,10 +4,10 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: order-center
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
ip: 81.70.164.178
|
||||
# cloud:
|
||||
# nacos:
|
||||
# discovery:
|
||||
# ip: 81.70.164.178
|
||||
# cloud:
|
||||
# nacos:
|
||||
# discovery:
|
||||
|
||||
Reference in New Issue
Block a user