|
@@ -49,17 +49,11 @@ public class SysUserIntegralController {
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "获取系统用户积分详情")
|
|
|
+ @PreAuthorize("@sr.hasPermission('3.3.3')")
|
|
|
@GetMapping("/api/system/user/getUserIntegral")
|
|
|
public Result getUserIntegral(Long user_id) {
|
|
|
if (user_id == null) user_id = SecurityUtil.getUserId();
|
|
|
|
|
|
- // 查询他人的用户积分
|
|
|
- // - 查询自己 (无需权限)
|
|
|
- // - 查询他人 (需要子权限或超级管理员)
|
|
|
- if (!user_id.equals(SecurityUtil.getUserId()) && !securityUtil.hasPermission("3.3.3.2")) {
|
|
|
- throw new CustException(SecurityEnum.NOAUTH);
|
|
|
- }
|
|
|
-
|
|
|
SysUser sysUser = sysUserDao.selectById(user_id);
|
|
|
if (sysUser == null) throw new CustException("用户不存在");
|
|
|
|