فهرست منبع

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

hxl13994548489 2 سال پیش
والد
کامیت
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