lyhzzz 1 gadu atpakaļ
vecāks
revīzija
a5c8b170b1
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/main/resources/mapper/manage/CameraMapper.xml

+ 4 - 1
src/main/resources/mapper/manage/CameraMapper.xml

@@ -17,9 +17,12 @@
         <if test="param.outType !=null ">
             and d.own = #{param.outType}
         </if>
-        <if test="param.type !=null ">
+        <if test="param.type !=null and param.type !=1">
             and d.type = #{param.type}
         </if>
+        <if test="param.type !=null and param.type == 1 ">
+            and d.type in (1,3)
+        </if>
         <if test="param.snCode !=null and param.snCode != '' ">
             and c.sn_code like concat ('%',#{param.snCode},'%')
         </if>