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
966305d2
Commit
966305d2
authored
Dec 07, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员代开发查门店不处理主门店
parent
8bcd8c38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+10
-8
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+10
-8
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
966305d2
...
...
@@ -159,14 +159,16 @@ public class StoreController extends WebBaseController {
}
List
<
String
>
storeIdList
=
list
.
stream
().
map
(
dto
->
dto
.
getStoreId
()).
collect
(
Collectors
.
toList
());
// 处理主门店
ClerkMainStoreRelatedDTO
mainDTO
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffId
,
storeIdList
);
String
mainStoreId
=
mainDTO
==
null
?
""
:
mainDTO
.
getStoreId
();
if
(
null
!=
mainStoreId
)
{
list
.
forEach
(
item
->
{
if
(
item
.
getStoreId
().
equals
(
mainStoreId
))
{
item
.
setMainStoreFlag
(
1
);
}
});
if
(
StringUtils
.
isBlank
(
gicEnterpriseId
))
{
ClerkMainStoreRelatedDTO
mainDTO
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffId
,
storeIdList
);
String
mainStoreId
=
mainDTO
==
null
?
""
:
mainDTO
.
getStoreId
();
if
(
null
!=
mainStoreId
)
{
list
.
forEach
(
item
->
{
if
(
item
.
getStoreId
().
equals
(
mainStoreId
))
{
item
.
setMainStoreFlag
(
1
);
}
});
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
list
);
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
966305d2
...
...
@@ -1591,14 +1591,16 @@ public class WxStaffController extends WebBaseController {
}
List
<
String
>
storeIdList
=
list
.
stream
().
map
(
dto
->
dto
.
getStoreId
()).
collect
(
Collectors
.
toList
());
// 处理主门店
ClerkMainStoreRelatedDTO
mainDTO
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffId
,
storeIdList
);
String
mainStoreId
=
mainDTO
==
null
?
""
:
mainDTO
.
getStoreId
();
if
(
null
!=
mainStoreId
)
{
list
.
forEach
(
item
->
{
if
(
item
.
getStoreId
().
equals
(
mainStoreId
))
{
item
.
setMainStoreFlag
(
1
);
}
});
if
(
StringUtils
.
isBlank
(
gicEnterpriseId
))
{
ClerkMainStoreRelatedDTO
mainDTO
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffId
,
storeIdList
);
String
mainStoreId
=
mainDTO
==
null
?
""
:
mainDTO
.
getStoreId
();
if
(
null
!=
mainStoreId
)
{
list
.
forEach
(
item
->
{
if
(
item
.
getStoreId
().
equals
(
mainStoreId
))
{
item
.
setMainStoreFlag
(
1
);
}
});
}
}
return
RestResponse
.
successResult
(
list
);
}
...
...
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