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
b912f697
Commit
b912f697
authored
May 18, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增工号登录支持。
parent
5c38eb8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+14
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
b912f697
...
...
@@ -128,7 +128,12 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
usd
.
setLockStatus
(
"UNLOCK"
);
//新增平台用户
AgencyUserModel
agencyUserModel
=
this
.
setcreateUser
(
usd
);
// this.createLoginInfo(usd);
//设置userID
usd
.
setUserId
(
agencyUserModel
.
getUserId
());
//设置工号
usd
.
setUserName
(
personAccount
.
getJobNumber
());
//创建支持工号登录
this
.
createLoginInfo
(
usd
);
//查询部门
DepartmentModel
departmentModel
=
null
;
if
(
personAccount
.
getDepartmentId
()
!=
null
)
{
...
...
@@ -211,7 +216,12 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
usd
.
setUserId
(
personAccount
.
getPuserId
());
//新增平台用户
AgencyUserModel
agencyUserModel
=
this
.
updateuser
(
personAccount
.
getPuserId
(),
usd
);
// this.updateLoginInfo();
//设置userID
usd
.
setUserId
(
agencyUserModel
.
getUserId
());
//设置工号
usd
.
setUserName
(
personAccount
.
getJobNumber
());
//创建支持工号登录
this
.
updateLoginInfo
(
personAccount
.
getJobNumber
(),
usd
);
//查询部门
DepartmentModel
departmentModel
=
null
;
if
(
personAccount
.
getDepartmentId
()
!=
null
)
{
...
...
@@ -282,13 +292,14 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
wrapper
.
in
(
"person_id"
,
ids
);
List
<
PersonAccount
>
list
=
personAccountService
.
list
(
wrapper
);
List
<
String
>
userid
=
new
ArrayList
<>();
List
<
String
>
loginId
=
new
ArrayList
<>();
for
(
PersonAccount
personAccount
:
list
)
{
userid
.
add
(
personAccount
.
getPuserId
());
}
//删除平台
int
deleteResult
=
personBasicMapper
.
deleteList
(
ids
);
this
.
deleuser
(
String
.
join
(
","
,
userid
));
// this.deleteLoginInfo(
);
this
.
deleteLoginInfo
(
String
.
join
(
","
,
loginId
)
);
return
deleteResult
;
}
...
...
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