Commit 52a57f5c authored by zhangqingle's avatar zhangqingle

修改web列表页查询范围不正确问题

parent f143a4e2
...@@ -1077,7 +1077,6 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -1077,7 +1077,6 @@ public class BLessonServiceImpl implements BLessonService {
String corpId = curUser.getCorpId(); String corpId = curUser.getCorpId();
String userId = curUser.getUserId(); String userId = curUser.getUserId();
//查询当前登录人有什么角色 //查询当前登录人有什么角色
// List<RoleTypeDepartDTO> roleList = sysUserMapper.queryRoleTypeByUserId(userId);
if (roleList == null || roleList.size() < 1) { if (roleList == null || roleList.size() < 1) {
return new ArrayList<>(); return new ArrayList<>();
} }
...@@ -1092,16 +1091,11 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -1092,16 +1091,11 @@ public class BLessonServiceImpl implements BLessonService {
List<String> departs = asList(StringUtils.split(role.getDeparts(), ",")); List<String> departs = asList(StringUtils.split(role.getDeparts(), ","));
departIds.addAll(departs); departIds.addAll(departs);
// 调用 feign 获取当前部门及子部门 --->所有人 // 调用 feign 获取当前部门及子部门 --->所有人
// uids.addAll(Arrays.asList(new CurUser(), new CurUser()));
} }
} }
if (!isAdmin) { if (!isAdmin) {
List<GetAllRspDTO> GetAllRspDTOList = cotactApiRequestClient.getUserByDeptIdSet(corpId, departIds); List<String> userList = cotactApiRequestClient.getUserByDeptIdSet(corpId, departIds);
if (GetAllRspDTOList != null && GetAllRspDTOList.size() > 0) { uids.addAll(userList);
for (GetAllRspDTO getAllRspDTO : GetAllRspDTOList) {
uids.add(getAllRspDTO.getId());
}
}
} }
//自己 //自己
uids.add(userId); uids.add(userId);
......
...@@ -529,18 +529,19 @@ public class MTCotactApiRequestClient { ...@@ -529,18 +529,19 @@ public class MTCotactApiRequestClient {
* @param deptIdSet * @param deptIdSet
* @return * @return
*/ */
public List<GetAllRspDTO> getUserByDeptIdSet(String corpId,Set<String> deptIdSet){ public List<String> getUserByDeptIdSet(String corpId,Set<String> deptIdSet){
if(deptIdSet == null || deptIdSet.size() < 1){ if(deptIdSet == null || deptIdSet.size() < 1){
return new ArrayList<>(); return new ArrayList<>();
} }
GetUserByDeptIdReqDTO getUserByDeptIdReqDTO = new GetUserByDeptIdReqDTO(); GetSubUserIdsByDeptIdsReqDTO getUserByDeptIdReqDTO = new GetSubUserIdsByDeptIdsReqDTO();
getUserByDeptIdReqDTO.setCorpId(Long.parseLong(corpId)); getUserByDeptIdReqDTO.setCorpId(Long.parseLong(corpId));
List<Long> deptIdList = new ArrayList<>(); List<Long> deptIdList = new ArrayList<>();
for (String deptId : deptIdSet) { for (String deptId : deptIdSet) {
deptIdList.add(Long.parseLong(deptId)); deptIdList.add(Long.parseLong(deptId));
} }
getUserByDeptIdReqDTO.setDeptIds(deptIdList); getUserByDeptIdReqDTO.setDeptIds(deptIdList);
return contactFeignClient.getUserByDeptIds(getUserByDeptIdReqDTO,zxClientType,zxAccountId).getData(); // return contactFeignClient.getUserByDeptIds(getUserByDeptIdReqDTO,zxClientType,zxAccountId).getData();
return contactFeignClient.getSubUserIdsByDeptIds(getUserByDeptIdReqDTO,zxClientType,zxAccountId).getData();
} }
public List<FindDepartByNameDTO> deptListDeptInfoByName(String corpId,String name){ public List<FindDepartByNameDTO> deptListDeptInfoByName(String corpId,String name){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment