mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-20 22:36:12 +08:00
修复使用Arrays.as 导致list长度不可变
This commit is contained in:
@@ -23,10 +23,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.hswebframework.web.service.authorization.simple.CacheConstants.USER_AUTH_CACHE_NAME;
|
||||
@@ -161,7 +158,7 @@ public class SimpleUserService extends AbstractService<UserEntity, String>
|
||||
.and().not(GenericEntity.id, userId)
|
||||
.total() > 0;
|
||||
tryValidateProperty(!userExists, GenericEntity.id, "{username_exists}");
|
||||
List<String> updateProperties = Arrays.asList("name");
|
||||
List<String> updateProperties = new ArrayList<>(Collections.singletonList("name"));
|
||||
//修改密码
|
||||
if (StringUtils.hasLength(userEntity.getPassword())) {
|
||||
//密码强度验证
|
||||
|
||||
Reference in New Issue
Block a user