Quellcode durchsuchen

研发打卡修改

anderx vor 2 Jahren
Ursprung
Commit
53ed7e6c88

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

@@ -554,6 +554,7 @@ public class SysUserServiceImpl implements ISysUserService
         if (type==null)type=0;
         if (type==0)roleId= UserRolesType.COMMON.getCode();
         else if (type==1)roleId=UserRolesType.MANAGE.getCode();
+        if (name==null||name.length()<2)return new ArrayList<>();
         return userMapper.selectName(name,roleId);
     }