|
|
@@ -131,14 +131,14 @@ public class IUserServiceImpl extends ServiceImpl<UserMapper, User> implements I |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public JsonResult getList() { |
|
|
|
public JsonResult getList(String deptId) { |
|
|
|
User user = CurrentUserUtil.getUserInfo(); |
|
|
|
if(StringUtils.isEmpty(user.getDeptId())){ |
|
|
|
return JsonResult.error("用户部门不存在"); |
|
|
|
} |
|
|
|
List<User> userList = userMapper.selectList(Wrappers.<User>lambdaQuery() |
|
|
|
.eq(User::getMark, MarkEnum.VALID.getCode()) |
|
|
|
.eq(User::getDeptId, user.getDeptId()) |
|
|
|
.eq(User::getDeptId, deptId) |
|
|
|
.eq(User::getStatus, 1)); |
|
|
|
return JsonResult.success(userList); |
|
|
|
} |