|
@@ -68,7 +68,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|
|
throw new StatusException("学校不能为空");
|
|
|
}
|
|
|
if (!user.getRole().equals(Role.SUPER_ADMIN) && !user.getSchoolId().equals(domain.getSchoolId())) {
|
|
|
- throw new StatusException("非法操作");
|
|
|
+ throw new StatusException("没有权限");
|
|
|
}
|
|
|
if (StringUtils.isBlank(domain.getName())) {
|
|
|
throw new StatusException("姓名不能为空");
|
|
@@ -125,7 +125,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|
|
@Override
|
|
|
public List<String> importUser(Long schoolId, User user, MultipartFile file) {
|
|
|
if (!user.getRole().equals(Role.SUPER_ADMIN) && !user.getSchoolId().equals(schoolId)) {
|
|
|
- throw new StatusException("非法操作");
|
|
|
+ throw new StatusException("没有权限");
|
|
|
}
|
|
|
InputStream inputStream = null;
|
|
|
try {
|
|
@@ -235,7 +235,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|
|
throw new StatusException("学校不能为空");
|
|
|
}
|
|
|
if (!user.getRole().equals(Role.SUPER_ADMIN) && !user.getSchoolId().equals(query.getSchoolId())) {
|
|
|
- throw new StatusException("非法操作");
|
|
|
+ throw new StatusException("没有权限");
|
|
|
}
|
|
|
IPage<UserVo> iPage = this.baseMapper.page(new Page<UserVo>(query.getPageNumber(), query.getPageSize()), query);
|
|
|
return PageUtil.of(iPage);
|
|
@@ -300,7 +300,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|
|
throw new StatusException("未找到用户信息");
|
|
|
}
|
|
|
if (!user.getRole().equals(Role.SUPER_ADMIN) && !user.getSchoolId().equals(ue.getSchoolId())) {
|
|
|
- throw new StatusException("非法操作");
|
|
|
+ throw new StatusException("没有权限");
|
|
|
}
|
|
|
String pw = ByteUtil.toHexAscii(SHA256.encode(passwd));
|
|
|
UpdateWrapper<UserEntity> wrapper = new UpdateWrapper<>();
|