🐛 Fixing a bug. close #I6IL1L 方法名命名单词问题 置顶

This commit is contained in:
lbw 2023-03-04 23:07:13 +08:00
parent 6dbabd2f1d
commit bf3a840dbf

View File

@ -300,10 +300,10 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
for (UserExcelVO excel : excelVOList) {
Set<String> errorMsg = new HashSet<>();
// 校验用户名是否存在
boolean exsitUserName = userList.stream()
boolean existUserName = userList.stream()
.anyMatch(sysUser -> excel.getUsername().equals(sysUser.getUsername()));
if (exsitUserName) {
if (existUserName) {
errorMsg.add(MsgUtils.getMessage(ErrorCodes.SYS_USER_USERNAME_EXISTING, excel.getUsername()));
}