Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
86509ab6
Commit
86509ab6
authored
Aug 14, 2022
by
季圣华
Browse files
优化根据用户查询关联组织下的用户列表的方法
parent
0bd01113
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/orgaUserRel/OrgaUserRelService.java
View file @
86509ab6
...
...
@@ -179,20 +179,19 @@ public class OrgaUserRelService {
* @throws Exception
*/
public
String
getUserIdListByUserId
(
Long
userId
)
throws
Exception
{
OrgaUserRel
our
=
new
OrgaUserRel
()
;
String
users
=
""
;
OrgaUserRelExample
example
=
new
OrgaUserRelExample
();
example
.
createCriteria
().
andUserIdEqualTo
(
userId
);
List
<
OrgaUserRel
>
list
=
orgaUserRelMapper
.
selectByExample
(
example
);
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
our
=
list
.
get
(
0
);
}
List
<
Long
>
userIdList
=
getUserIdListByOrgId
(
our
.
getOrgaId
());
String
users
=
""
;
for
(
Long
u:
userIdList
){
users
=
users
+
u
+
","
;
}
if
(
users
.
length
()>
0
){
users
=
users
.
substring
(
0
,
users
.
length
()-
1
);
OrgaUserRel
our
=
list
.
get
(
0
);
List
<
Long
>
userIdList
=
getUserIdListByOrgId
(
our
.
getOrgaId
());
for
(
Long
u:
userIdList
){
users
=
users
+
u
+
","
;
}
if
(
users
.
length
()>
0
){
users
=
users
.
substring
(
0
,
users
.
length
()-
1
);
}
}
return
users
;
}
...
...
Write
Preview
Supports
Markdown
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