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
df21c235
Commit
df21c235
authored
Aug 01, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购code问题修复
parent
be88960f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+8
-8
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
df21c235
...
@@ -234,7 +234,7 @@ public class WxStaffController extends WebBaseController {
...
@@ -234,7 +234,7 @@ public class WxStaffController extends WebBaseController {
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
wxEnterpriseId
,
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
wxEnterpriseId
,
enterpriseId
,
clerkCodeList
);
enterpriseId
,
clerkCodeList
);
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
()
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
()
.
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerk
Code
,
s
->
s
));
.
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerk
Id
,
s
->
s
));
List
<
StoreClerkVO
>
resultList
=
new
ArrayList
<>();
List
<
StoreClerkVO
>
resultList
=
new
ArrayList
<>();
for
(
ClerkDTO
dto
:
clerkDTOS
)
{
for
(
ClerkDTO
dto
:
clerkDTOS
)
{
String
clerkCode
=
dto
.
getClerkCode
();
String
clerkCode
=
dto
.
getClerkCode
();
...
@@ -244,7 +244,7 @@ public class WxStaffController extends WebBaseController {
...
@@ -244,7 +244,7 @@ public class WxStaffController extends WebBaseController {
vo
.
setClerkType
(
dto
.
getClerkType
());
vo
.
setClerkType
(
dto
.
getClerkType
());
vo
.
setClerkImg
(
dto
.
getImageUrl
());
vo
.
setClerkImg
(
dto
.
getImageUrl
());
vo
.
setClerkName
(
dto
.
getClerkName
());
vo
.
setClerkName
(
dto
.
getClerkName
());
StaffClerkRelationDTO
related
=
bindCodeMap
.
get
(
clerkCode
);
StaffClerkRelationDTO
related
=
bindCodeMap
.
get
(
dto
.
getClerkId
()
);
if
(
related
!=
null
)
{
if
(
related
!=
null
)
{
vo
.
setStaffId
(
related
.
getStaffId
());
vo
.
setStaffId
(
related
.
getStaffId
());
vo
.
setBindFlag
(
1
);
vo
.
setBindFlag
(
1
);
...
@@ -1097,13 +1097,13 @@ public class WxStaffController extends WebBaseController {
...
@@ -1097,13 +1097,13 @@ public class WxStaffController extends WebBaseController {
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
wxEnterpriseId
,
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
wxEnterpriseId
,
enterpriseId
,
clerkCodeList
);
enterpriseId
,
clerkCodeList
);
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
()
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
()
.
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerk
Code
,
s
->
s
));
.
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerk
Id
,
s
->
s
));
List
<
BindClerkVO
>
bindList
=
new
ArrayList
<>();
List
<
BindClerkVO
>
bindList
=
new
ArrayList
<>();
List
<
BindClerkVO
>
unBindList
=
new
ArrayList
<>();
List
<
BindClerkVO
>
unBindList
=
new
ArrayList
<>();
for
(
ClerkDTO
dto
:
list
)
{
for
(
ClerkDTO
dto
:
list
)
{
BindClerkVO
vo
=
EntityUtil
.
changeEntityNew
(
BindClerkVO
.
class
,
dto
);
BindClerkVO
vo
=
EntityUtil
.
changeEntityNew
(
BindClerkVO
.
class
,
dto
);
if
(
bindCodeMap
.
containsKey
(
dto
.
getClerk
Code
()))
{
if
(
bindCodeMap
.
containsKey
(
dto
.
getClerk
Id
()))
{
String
staffId
=
bindCodeMap
.
get
(
dto
.
getClerk
Code
()).
getStaffId
();
String
staffId
=
bindCodeMap
.
get
(
dto
.
getClerk
Id
()).
getStaffId
();
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffId
);
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffId
);
vo
.
setStaffId
(
staffId
);
vo
.
setStaffId
(
staffId
);
String
phoneNumber
=
dto
.
getPhoneNumber
();
String
phoneNumber
=
dto
.
getPhoneNumber
();
...
@@ -1146,13 +1146,13 @@ public class WxStaffController extends WebBaseController {
...
@@ -1146,13 +1146,13 @@ public class WxStaffController extends WebBaseController {
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
wxEnterpriseId
,
List
<
StaffClerkRelationDTO
>
bindRelationList
=
staffClerkRelationApiService
.
listBindCode
(
wxEnterpriseId
,
enterpriseId
,
clerkCodeList
);
enterpriseId
,
clerkCodeList
);
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
()
Map
<
String
,
StaffClerkRelationDTO
>
bindCodeMap
=
bindRelationList
.
stream
()
.
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerk
Code
,
s
->
s
));
.
collect
(
Collectors
.
toMap
(
StaffClerkRelationDTO:
:
getClerk
Id
,
s
->
s
));
List
<
BindClerkVO
>
bindList
=
new
ArrayList
<>();
List
<
BindClerkVO
>
bindList
=
new
ArrayList
<>();
List
<
BindClerkVO
>
unBindList
=
new
ArrayList
<>();
List
<
BindClerkVO
>
unBindList
=
new
ArrayList
<>();
for
(
ClerkDTO
dto
:
list
)
{
for
(
ClerkDTO
dto
:
list
)
{
BindClerkVO
vo
=
EntityUtil
.
changeEntityByJSON
(
BindClerkVO
.
class
,
dto
);
BindClerkVO
vo
=
EntityUtil
.
changeEntityByJSON
(
BindClerkVO
.
class
,
dto
);
if
(
bindCodeMap
.
containsKey
(
dto
.
getClerk
Code
()))
{
if
(
bindCodeMap
.
containsKey
(
dto
.
getClerk
Id
()))
{
String
staffId
=
bindCodeMap
.
get
(
dto
.
getClerk
Code
()).
getStaffId
();
String
staffId
=
bindCodeMap
.
get
(
dto
.
getClerk
Id
()).
getStaffId
();
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffId
);
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffId
);
vo
.
setStaffId
(
staffId
);
vo
.
setStaffId
(
staffId
);
vo
.
setNationCode
(
dto
.
getNationcode
());
vo
.
setNationCode
(
dto
.
getNationcode
());
...
...
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