浏览代码

修改bug

JX.Li 1 年之前
父节点
当前提交
f7cb3337a4
共有 1 个文件被更改,包括 3 次插入2 次删除
  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 != ''">
             and name LIKE CONCAT('%',#{name},'%')
         </if>
+        and power like '%6%'
         <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>
         </if>
     </select>