|
|
|
@ -45,6 +45,9 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
import java.util.function.Function; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
|
* 政府端角色表 |
|
|
|
@ -134,6 +137,22 @@ public class GovStaffRoleServiceImpl extends BaseServiceImpl<GovStaffRoleDao, Go |
|
|
|
return baseDao.listRolesByStaffId(staffId, orgId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询用户角色 |
|
|
|
* |
|
|
|
* @param staffIds |
|
|
|
* @param orgId |
|
|
|
* @return java.util.Map<java.lang.String, java.util.List < java.lang.String>> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2021/7/1 15:30 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Map<String, List<String>> getStaffRoles(List<String> staffIds, String orgId) { |
|
|
|
List<GovStaffRoleEntity> staffRoleList = baseDao.getStaffRoles(staffIds, orgId); |
|
|
|
return staffRoleList.stream().collect(Collectors.groupingBy(GovStaffRoleEntity::getCustomerId, |
|
|
|
Collectors.mapping(GovStaffRoleEntity :: getId, Collectors.toList()))); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<GovStaffRoleDTO> getGovStaffRoleList(GovStaffRoleDTO dto) { |
|
|
|
return baseDao.selectGovStaffRoleList(dto); |
|
|
|
|