lyhzzz 9 月之前
父节点
当前提交
977138cd8b
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/resources/mapper/manage/SceneProMapper.xml

+ 3 - 2
src/main/resources/mapper/manage/SceneProMapper.xml

@@ -36,6 +36,7 @@
         left join t_user u on s.user_id = u.id
         left join t_user u on s.user_id = u.id
         left join t_camera c on s.camera_id = c.id
         left join t_camera c on s.camera_id = c.id
         left join jy_user jy on u.id = jy.user_id
         left join jy_user jy on u.id = jy.user_id
+        where  s.rec_status = 'A'
         <include refid="commonWhere"></include>
         <include refid="commonWhere"></include>
 
 
         <if test="param.platformIds != null and param.platformIds.size >0">
         <if test="param.platformIds != null and param.platformIds.size >0">
@@ -53,7 +54,7 @@
         </if>
         </if>
 
 
         <if test="param.authNumList !=null and param.authNumList.size>0  ">
         <if test="param.authNumList !=null and param.authNumList.size>0  ">
-            or (
+            or (  s.rec_status = 'A'
             <include refid="commonWhere"></include>
             <include refid="commonWhere"></include>
             and s.num in
             and s.num in
             <foreach item="num" collection="param.authNumList" open="(" separator="," close=")">
             <foreach item="num" collection="param.authNumList" open="(" separator="," close=")">
@@ -67,7 +68,7 @@
     </select>
     </select>
 
 
     <sql id="commonWhere">
     <sql id="commonWhere">
-        where s.rec_status = 'A'
+
         <if test="param.sceneName != null and param.sceneName!='' ">
         <if test="param.sceneName != null and param.sceneName!='' ">
             and s.title like concat ('%',#{param.sceneName},'%')
             and s.title like concat ('%',#{param.sceneName},'%')
         </if>
         </if>