Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
2c9f40c7
Commit
2c9f40c7
authored
Oct 08, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:查询区经列表修改
parent
a22bdb27
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+8
-2
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
2c9f40c7
...
...
@@ -1040,7 +1040,7 @@ public class ClerkController extends WebBaseController {
* @return
*/
@RequestMapping
(
"clerk-manage-list"
)
public
RestResponse
<
List
<
BindClerkVO
>>
clerkManageList
(
String
enterpriseId
)
{
public
RestResponse
clerkManageList
(
String
enterpriseId
)
{
List
<
ClerkDTO
>
list
=
clerkService
.
listClerkEnableHaoban
(
Collections
.
singletonList
(
enterpriseId
),
null
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
RestResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCode
.
ERR_10016
.
getCode
()),
HaoBanErrCode
.
ERR_10016
.
getMsg
());
...
...
@@ -1049,6 +1049,7 @@ public class ClerkController extends WebBaseController {
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
enterpriseId
,
clerkCodeList
);
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
().
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerkCode
,
s
->
s
));
List
<
BindClerkVO
>
bindList
=
new
ArrayList
<>();
List
<
BindClerkVO
>
unBindList
=
new
ArrayList
<>();
for
(
ClerkDTO
dto
:
list
)
{
BindClerkVO
vo
=
EntityUtil
.
changeEntityByJSON
(
BindClerkVO
.
class
,
dto
);
if
(
bindCodeMap
.
containsKey
(
dto
.
getClerkCode
()))
{
...
...
@@ -1059,9 +1060,14 @@ public class ClerkController extends WebBaseController {
vo
.
setPhoneNumber
(
dto
.
getPhoneNumber
());
vo
.
setStaffName
(
staffDTO
==
null
?
""
:
staffDTO
.
getStaffName
());
bindList
.
add
(
vo
);
}
else
{
unBindList
.
add
(
vo
);
}
}
return
RestResponse
.
successResult
(
bindList
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bindList"
,
bindList
);
map
.
put
(
"unBindList"
,
unBindList
);
return
RestResponse
.
successResult
(
map
);
}
/**
...
...
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