fix: 用户信息查询

This commit is contained in:
xiaozzzi 2024-02-02 18:11:44 +08:00
parent f83660a738
commit f17fbaab26
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class UserParamController {
XzException400.throwBy(ObjUtil.isNull(req.getUserId()), "用户ID为必填项");
baseService.update(req);
baseService.refresh();
return R.ok(baseService.selectMap(AuthContext.getUserId(), true, UserParamEnum.values()));
return R.ok(baseService.selectMap(req.getUserId(), true, UserParamEnum.values()));
}
/**

View File

@ -169,7 +169,7 @@ public class UserController {
Map<String, String> paramMap = paramService.selectMap(true, ParamEnum.values());
user.setParams(paramMap);
paramMap.put("SERVER_VERSION", SpringUtil.get("project.base.version"));
Map<String, String> userParamMap = userParamService.selectMap(AuthContext.getUserId(), true, UserParamEnum.values());
Map<String, String> userParamMap = userParamService.selectMap(userId, true, UserParamEnum.values());
user.setUserParams(userParamMap);
return R.ok(user);
}