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
910e73c3
Commit
910e73c3
authored
Apr 23, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增删删除
parent
9bc7861c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+19
-0
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 @
910e73c3
...
@@ -269,6 +269,17 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -269,6 +269,17 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
@Transactional
@Transactional
public
int
deletePerson
(
String
[]
ids
)
{
public
int
deletePerson
(
String
[]
ids
)
{
//查询所有平台用户
QueryWrapper
<
PersonAccount
>
wrapper
=
new
QueryWrapper
();
wrapper
.
in
(
"person_id"
,
ids
);
List
<
PersonAccount
>
list
=
personAccountService
.
list
(
wrapper
);
List
<
String
>
userid
=
new
ArrayList
<>();
for
(
PersonAccount
personAccount
:
list
)
{
userid
.
add
(
personAccount
.
getUserId
());
}
//删除平台
this
.
deleuser
(
String
.
join
(
","
,
userid
));
return
personBasicMapper
.
deleteList
(
ids
);
return
personBasicMapper
.
deleteList
(
ids
);
}
}
...
@@ -330,7 +341,15 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -330,7 +341,15 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
}
}
return
companyModel
;
return
companyModel
;
}
}
private
void
deleuser
(
String
userid
)
{
FeignClientResult
<
List
<
String
>>
cResult
=
Privilege
.
agencyUserClient
.
multDeleteUser
(
userid
);
if
(!
ObjectUtils
.
isEmpty
(
cResult
))
{
if
(
cResult
.
getStatus
()!=
200
){
throw
new
RuntimeException
();
}
}
}
/**
/**
* 分页查询
* 分页查询
...
...
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