Ver Fonte

新增判断模板状态

吴树波 há 1 semana atrás
pai
commit
2d208ebeb7

+ 6 - 3
fs-service/src/main/resources/mapper/sop/SopUserLogsMapper.xml

@@ -203,10 +203,13 @@
                b.filter_mode,
                b.is_samp_send
         from sop_user_logs a
-                 inner join qw_sop b on a.sop_id = b.id
+        inner join qw_sop b on a.sop_id = b.id
+        inner join qw_sop_temp c on b.temp_id = c.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 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>