Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
b71165d3
Commit
b71165d3
authored
Nov 10, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员管理编辑bug
parent
8b824f25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
TzsUserInfoController.java
...boot/module/tcm/biz/controller/TzsUserInfoController.java
+9
-7
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzsUserInfoController.java
View file @
b71165d3
...
@@ -150,12 +150,14 @@ public class TzsUserInfoController extends BaseController {
...
@@ -150,12 +150,14 @@ public class TzsUserInfoController extends BaseController {
tzsUserInfo
.
setRecDate
(
new
Date
());
tzsUserInfo
.
setRecDate
(
new
Date
());
String
postName
=
tzsUserInfoServiceImpl
.
setPostName
(
tzsUserInfo
.
getPost
());
String
postName
=
tzsUserInfoServiceImpl
.
setPostName
(
tzsUserInfo
.
getPost
());
tzsUserInfo
.
setPostName
(
postName
);
tzsUserInfo
.
setPostName
(
postName
);
// 添加新的人员与组的关系
if
(!
ObjectUtils
.
isEmpty
(
selectOne
.
getAmosUserId
())){
String
[]
split
=
postName
.
split
(
","
);
// 添加新的人员与组的关系
List
<
String
>
ids
=
new
ArrayList
<>();
String
[]
split
=
postName
.
split
(
","
);
ids
.
add
(
selectOne
.
getAmosUserId
());
List
<
String
>
ids
=
new
ArrayList
<>();
for
(
String
s
:
split
)
{
ids
.
add
(
selectOne
.
getAmosUserId
());
Privilege
.
groupUserClient
.
create
(
TwoStipulateGroupEnum
.
getId
.
get
(
s
),
ids
);
for
(
String
s
:
split
)
{
Privilege
.
groupUserClient
.
create
(
TwoStipulateGroupEnum
.
getId
.
get
(
s
),
ids
);
}
}
}
tzsUserInfoServiceImpl
.
updateById
(
tzsUserInfo
);
tzsUserInfoServiceImpl
.
updateById
(
tzsUserInfo
);
// if (!ObjectUtils.isEmpty(list)){
// if (!ObjectUtils.isEmpty(list)){
...
@@ -329,7 +331,7 @@ public class TzsUserInfoController extends BaseController {
...
@@ -329,7 +331,7 @@ public class TzsUserInfoController extends BaseController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/getGroupAndPersonInfo"
)
@GetMapping
(
value
=
"/getGroupAndPersonInfo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过组id查询组及组内人员信息"
,
notes
=
"通过组id查询组及组内人员信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过组id查询组及组内人员信息"
,
notes
=
"通过组id查询组及组内人员信息"
)
public
ResponseModel
<
List
<
GroupAndPersonInfoDto
>>
getGroupAndPersonInfo
(
@RequestParam
(
value
=
"groupId"
)
Long
groupId
)
{
public
ResponseModel
<
List
<
GroupAndPersonInfoDto
>>
getGroupAndPersonInfo
(
@RequestParam
(
value
=
"groupId"
)
Long
groupId
)
{
...
...
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