浏览代码

模板生成判断

吴树波 4 天之前
父节点
当前提交
936c4e140c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs-service/src/main/resources/mapper/sop/SopUserLogsMapper.xml

+ 2 - 0
fs-service/src/main/resources/mapper/sop/SopUserLogsMapper.xml

@@ -204,9 +204,11 @@
                b.is_samp_send
         from sop_user_logs a
                  inner join qw_sop b on a.sop_id = b.id
+        inner join qw_sop_temp c on b.temp_id = c.id
         where a.start_time <= Now()
           and a.status = 1
           and b.send_type != 4 and b.status in (2,3)
+        and c.`status` = 1
         <if test="sopIds != null and !sopIds.isEmpty()">
             and a.sop_id in
             <foreach collection="sopIds" open="(" close=")" index="index" item="item" separator=",">#{item}</foreach>