浏览代码

添加查询条件,和聊天自动化任务

yuhongqi 1 周之前
父节点
当前提交
f858478652

+ 1 - 1
fs-live-socket/src/main/java/com/fs/live/websocket/service/WebSocketServer.java

@@ -583,7 +583,7 @@ public class WebSocketServer {
                     log.error("优惠券未发布");
                     return;
                 }
-                LiveCouponIssue liveCouponIssue = liveCouponIssueService.selectLiveCouponIssueByCouponId(liveCoupon.getIssueId());
+                LiveCouponIssue liveCouponIssue = liveCouponIssueService.selectLiveCouponIssueById(liveCoupon.getIssueId());
                 LiveCouponIssueRelation relation = liveCouponMapper.selectCouponRelation(task.getLiveId(), liveCouponIssue.getId());
                 HashMap<String, Object> data = new HashMap<>();
                 data.put("liveId", task.getLiveId());

+ 1 - 0
fs-service-system/src/main/resources/mapper/live/LiveAutoTaskMapper.xml

@@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="absValue != null"> and abs_value = #{absValue}</if>
             <if test="content != null  and content != ''"> and content = #{content}</if>
             <if test="status != null "> and status = #{status}</if>
+            <if test="taskType != null "> and task_type = #{taskType}</if>
             <if test="createTime != null "> and create_time = #{createTime}</if>
             <if test="updateTime != null "> and update_time = #{updateTime}</if>
             <if test="finishStatus != null "> and finish_status = #{finishStatus}</if>