Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
52a57f5c
Commit
52a57f5c
authored
Jan 03, 2020
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改web列表页查询范围不正确问题
parent
f143a4e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+2
-8
MTCotactApiRequestClient.java
...isoft/common/util/outClient/MTCotactApiRequestClient.java
+4
-3
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
52a57f5c
...
@@ -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
);
...
...
src/main/java/org/rcisoft/common/util/outClient/MTCotactApiRequestClient.java
View file @
52a57f5c
...
@@ -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
<>();
}
}
Get
UserByDeptIdReqDTO
getUserByDeptIdReqDTO
=
new
GetUserByDeptId
ReqDTO
();
Get
SubUserIdsByDeptIdsReqDTO
getUserByDeptIdReqDTO
=
new
GetSubUserIdsByDeptIds
ReqDTO
();
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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment