Просмотр исходного кода

优化用户查询部门id改为like查询

hxl13994548489 2 лет назад
Родитель
Сommit
06675a71b7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/resources/mapper/modules/admin/SysUserMapper.xml

+ 1 - 1
src/main/resources/mapper/modules/admin/SysUserMapper.xml

@@ -573,7 +573,7 @@
                 and t1.mobile = #{user.mobile}
             </if>
             <if test='user.deptId !=null and user.deptId!=""  '>
-                and t2.id = #{user.deptId}
+                and t2.id like CONCAT('', #{user.deptId}, '%')
             </if>
         </if>
         order by flag