lyhzzz 9 kuukautta sitten
vanhempi
commit
977138cd8b
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  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_camera c on s.camera_id = c.id
         left join jy_user jy on u.id = jy.user_id
+        where  s.rec_status = 'A'
         <include refid="commonWhere"></include>
 
         <if test="param.platformIds != null and param.platformIds.size >0">
@@ -53,7 +54,7 @@
         </if>
 
         <if test="param.authNumList !=null and param.authNumList.size>0  ">
-            or (
+            or (  s.rec_status = 'A'
             <include refid="commonWhere"></include>
             and s.num in
             <foreach item="num" collection="param.authNumList" open="(" separator="," close=")">
@@ -67,7 +68,7 @@
     </select>
 
     <sql id="commonWhere">
-        where s.rec_status = 'A'
+
         <if test="param.sceneName != null and param.sceneName!='' ">
             and s.title like concat ('%',#{param.sceneName},'%')
         </if>