mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
系统管理bug修复;1、mvc参数校验不正确直接提示,不提示"请求参数不正确",优化手机格式不正确的提示;2、新增机构不自动生成机构代码;3、用户管理列表筛选登陆用户本身;
This commit is contained in:
+5
-1
@@ -115,7 +115,6 @@ public class UserController {
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得用户分页列表")
|
||||
// @PreAuthorize("@ss.hasPermission('system:user:list')")
|
||||
@PreAuthorize("@ss.hasAnyPermissions('system:user:list','base:user:query')")
|
||||
public CommonResult<PageResult<UserRespVO>> getUserPage(@Valid UserPageReqVO pageReqVO) {
|
||||
// 获得用户分页列表
|
||||
@@ -123,6 +122,11 @@ public class UserController {
|
||||
if (CollUtil.isEmpty(pageResult.getList())) {
|
||||
return success(new PageResult<>(pageResult.getTotal()));
|
||||
}
|
||||
// 用户列表不展示当前登录人
|
||||
boolean removeCurrentUser = pageResult.getList().removeIf(user -> Objects.equals(user.getId(), SecurityFrameworkUtils.getLoginUserId()));
|
||||
if (removeCurrentUser) {
|
||||
pageResult.setTotal(pageResult.getTotal() - 1);
|
||||
}
|
||||
// 拼接数据
|
||||
Map<Long, DeptDO> deptMap = deptService.getDeptMap(
|
||||
convertList(pageResult.getList(), AdminUserDO::getDeptId));
|
||||
|
||||
-1
@@ -128,7 +128,6 @@ public class OrganServiceImpl implements OrganService {
|
||||
pinyinFull = pinyinFull.replaceAll(" ", "");
|
||||
}
|
||||
tenant.setPinyinFull(pinyinFull);
|
||||
tenant.setCode(StrUtil.isBlank(createReqVO.getCode())? pinyinFull : createReqVO.getCode());
|
||||
tenant.setLarge(createReqVO.getLarge() == null ? Boolean.FALSE : createReqVO.getLarge());
|
||||
tenant.setPinyinInitial(PinYinUtils.convertFirstChar(tenant.getName()));
|
||||
//todo 未来还需要判断是否大客户,大客户有自己dataCode
|
||||
|
||||
Reference in New Issue
Block a user