Browse Source

modify:

1. 用户列表过滤掉无效的单位ID对应的用户;
tags/24102401
WendyYang 2 months ago
parent
commit
3b34853a8d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/user/manage/UserInfoManage.java

+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/user/manage/UserInfoManage.java View File

@@ -14,7 +14,6 @@ import com.hz.pm.api.sys.model.entity.Role;
import com.hz.pm.api.sys.model.entity.UserRole;
import com.hz.pm.api.sys.service.IRoleService;
import com.hz.pm.api.sys.service.IUserRoleService;
import com.hz.pm.api.user.helper.MhUnitCache;
import com.hz.pm.api.user.model.entity.UserInfo;
import com.hz.pm.api.user.model.enumeration.UserAvailableEnum;
import com.hz.pm.api.user.model.po.ReqUserDetailEditPO;
@@ -62,6 +61,7 @@ public class UserInfoManage {
return PageVo.empty();
}
LambdaQueryWrapper<UserInfo> wrapper = Wrappers.lambdaQuery(UserInfo.class)
.gt(UserInfo::getMhUnitId, 0)
.eq(StrUtils.isNotBlank(req.getPhoneNo()), UserInfo::getMobile, req.getPhoneNo())
.like(StrUtils.isNotBlank(req.getName()), UserInfo::getRealName, req.getName())
.in(Objects.nonNull(userIdList), UserInfo::getId, userIdList)


Loading…
Cancel
Save