增加接口
This commit is contained in:
parent
260dc82756
commit
6e22899397
@ -53,6 +53,15 @@ public interface IGroupUserBaseService {
|
||||
*/
|
||||
List<GroupPO> listGroupPOByUserId(String userId);
|
||||
|
||||
/**
|
||||
* 组列表
|
||||
*
|
||||
* @param userIds
|
||||
* @return
|
||||
*/
|
||||
List<GroupPO> listGroupPOByUserIds(List<String> userIds);
|
||||
|
||||
|
||||
/**
|
||||
* 组列表(简单)
|
||||
*
|
||||
|
@ -55,6 +55,9 @@ public interface IRoleUserBaseService {
|
||||
*/
|
||||
List<RolePO> listRolePOByUserId(String userId);
|
||||
|
||||
List<RolePO> listRolePOByUserIds(List<String> userIds);
|
||||
|
||||
|
||||
/**
|
||||
* 角色列表
|
||||
*
|
||||
|
@ -122,6 +122,9 @@ public interface IDepartmentUserService extends IDepartmentUserBaseService {
|
||||
*/
|
||||
List<DepartmentPO> listDepartmentPOByUserId(String userId);
|
||||
|
||||
List<DepartmentPO> listDepartmentPOByUserIds(List<String> userIds);
|
||||
|
||||
|
||||
/**
|
||||
* 部门列表(简单)
|
||||
*
|
||||
|
@ -206,6 +206,13 @@ public class DepartmentUserServiceImpl extends DefaultBaseService implements IDe
|
||||
return departmentUserDao.listDepartmentPO(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DepartmentPO> listDepartmentPOByUserIds(List<String> userIds) {
|
||||
Map<String, Object> params = getHashMap(2);
|
||||
params.put("userIds", userIds);
|
||||
return departmentUserDao.listDepartmentPO(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DepartmentSimpleDTO> listSimple(List<DepartmentPO> departmentPOs) {
|
||||
if (departmentPOs == null || departmentPOs.isEmpty()) {
|
||||
|
@ -3,6 +3,7 @@ package ink.wgink.service.group.service;
|
||||
import ink.wgink.interfaces.group.IGroupUserBaseService;
|
||||
import ink.wgink.pojo.ListPage;
|
||||
import ink.wgink.pojo.dtos.user.UserDTO;
|
||||
import ink.wgink.pojo.pos.GroupPO;
|
||||
import ink.wgink.pojo.result.SuccessResultList;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -198,6 +198,13 @@ public class GroupUserServiceImpl extends DefaultBaseService implements IGroupUs
|
||||
return groupUserDao.listGroupPO(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<GroupPO> listGroupPOByUserIds(List<String> userIds) {
|
||||
Map<String, Object> params = getHashMap(2);
|
||||
params.put("userIds", userIds);
|
||||
return groupUserDao.listGroupPO(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<GroupSimpleDTO> listSimple(List<GroupPO> groupPOs) {
|
||||
if (groupPOs == null || groupPOs.isEmpty()) {
|
||||
|
@ -236,11 +236,7 @@ public class PositionUserServiceImpl extends DefaultBaseService implements IPosi
|
||||
public List<PositionPO> listPositionPOByUserIds(List<String> userIds) {
|
||||
Map<String, Object> params = getHashMap(2);
|
||||
params.put("userIds", userIds);
|
||||
List<String> positionIds = positionUserDao.listPositionId(params);
|
||||
if (positionIds.isEmpty()) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return positionService.listPO(positionIds);
|
||||
return positionUserDao.listPositionPO(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -101,11 +101,10 @@
|
||||
user_id = #{userId}
|
||||
</if>
|
||||
<if test="userIds != null and userIds.size > 0">
|
||||
user_id IN (
|
||||
user_id IN
|
||||
<foreach collection="userIds" index="index" open="(" separator="," close=")">
|
||||
#{userIds[${index}]}
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
@ -4,6 +4,7 @@ import ink.wgink.interfaces.role.IRoleUserBaseService;
|
||||
import ink.wgink.pojo.ListPage;
|
||||
import ink.wgink.pojo.dtos.department.DepartmentUserDTO;
|
||||
import ink.wgink.pojo.dtos.user.UserDTO;
|
||||
import ink.wgink.pojo.pos.RolePO;
|
||||
import ink.wgink.pojo.result.SuccessResultList;
|
||||
import ink.wgink.service.user.pojo.pos.UserPO;
|
||||
|
||||
|
@ -226,6 +226,13 @@ public class RoleUserServiceImpl extends DefaultBaseService implements IRoleUser
|
||||
return roleUserDao.listRolePO(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RolePO> listRolePOByUserIds(List<String> userIds) {
|
||||
Map<String, Object> params = getHashMap(2);
|
||||
params.put("userIds", userIds);
|
||||
return roleUserDao.listRolePO(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RolePO> listRolePOByRoleIds(List<String> roleIds) {
|
||||
if (roleIds.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user