浏览代码

查找队伍sql更改

wang_xy 1 年之前
父节点
当前提交
a26ec11d15
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      ruoyi-gas/src/main/resources/mapper/GUserMapper.xml

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

@@ -120,9 +120,7 @@
         select id from g_user
         where 1=1
         <if test="ranks != null  and ranks!= ''">
-            and ranks = (
-            SELECT post_id from sys_post WHERE post_name = #{ranks}
-            )
+            and ranks = #{ranks}
         </if>
         and del_flag = '0'
     </select>