Переглянути джерело

项目场景为空,列表返回为空

lyhzzz 1 рік тому
батько
коміт
b84ffbaf78

+ 6 - 0
src/main/resources/mapper/manage_jp/SceneProMapper.xml

@@ -13,6 +13,9 @@
         <if test="param.sceneName != null and param.sceneName!='' ">
             and (s.scene_name like concat ('%',#{param.sceneName},'%') or s.laser_title like concat ('%',#{param.sceneName},'%') )
         </if>
+        <if test="param.status != null  ">
+            and s.status = #{param.status}
+        </if>
         and is_upgrade = 0
         UNION
         select s.title as sceneName ,s.num,s.create_time,c.sn_code,e.space as sceneSize
@@ -24,6 +27,9 @@
         <if test="param.sceneName != null and param.sceneName!='' ">
             and (s.title like concat ('%',#{param.sceneName},'%') or s.laser_title like concat ('%',#{param.sceneName},'%') )
         </if>
+        <if test="param.status != null  ">
+            and s.scene_status = #{param.status}
+        </if>
         ) as tb
         order by create_time desc
     </select>