Browse Source

查找队伍sql更改

wang_xy 1 year ago
parent
commit
a26ec11d15
1 changed files with 1 additions and 3 deletions
  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>