JX.Li 1 tahun lalu
induk
melakukan
f7cb3337a4
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      ruoyi-gas/src/main/resources/mapper/GUserMapper.xml

+ 3 - 2
ruoyi-gas/src/main/resources/mapper/GUserMapper.xml

@@ -43,9 +43,10 @@
         <if test="name != null  and name != ''">
         <if test="name != null  and name != ''">
             and name LIKE CONCAT('%',#{name},'%')
             and name LIKE CONCAT('%',#{name},'%')
         </if>
         </if>
+        and power like '%6%'
         <if test="type != null  and type != ''">
         <if test="type != null  and type != ''">
-            <foreach item="item" index="index" collection="type.split(',')" >
-                and power like CONCAT('%',#{item},'%')
+            <foreach item="item" index="index" collection="type.split(',')">
+                or  power like CONCAT('%',#{item},'%')
             </foreach>
             </foreach>
         </if>
         </if>
     </select>
     </select>