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
bd8d0268
Commit
bd8d0268
authored
Feb 03, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌过期校验
parent
6497cdc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+5
-2
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
bd8d0268
...
...
@@ -751,7 +751,7 @@ public class WxStaffController extends WebBaseController {
}
List
<
EnterpriseDetailDTO
>
list
=
wxEnterpriseRelatedApiService
.
listEnterpriseByWxEnterpriseId
(
wxEnterpriseId
);
if
(
list
==
null
||
list
.
isEmpty
())
{
return
resultResponse
(
HaoBanErrCode
.
ERR_
1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_
0
,
"未关联gic商户"
);
}
List
<
String
>
enterpriseIdList
=
list
.
stream
().
filter
(
s
->
{
boolean
over
=
wxEnterpriseApiService
.
haobanIsStop
(
s
.
getEnterpriseId
());
...
...
@@ -762,6 +762,9 @@ public class WxStaffController extends WebBaseController {
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
new
ArrayList
<>());
}
logger
.
info
(
"查询到企微门店数={},{}"
,
storeIds
.
size
(),
storeIds
);
if
(
CollectionUtils
.
isEmpty
(
enterpriseIdList
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
"关联gic商户已过期"
);
}
List
<
ClerkDTO
>
clerkList
=
new
ArrayList
<>();
if
(
manageFlag
==
-
1
)
{
clerkList
.
addAll
(
clerkService
.
listClerkEnableHaoban
(
enterpriseIdList
,
keyword
));
...
...
@@ -1603,7 +1606,7 @@ public class WxStaffController extends WebBaseController {
logger
.
info
(
"没有关联任何商户或商户都已停用:{}"
,
wxEnterpriseId
);
return
RestResponse
.
successResult
();
}
logger
.
info
(
"关联的商户={}"
,
enterpriseIdList
);
Map
<
String
,
EnterpriseDetailDTO
>
enterpriseTypeMap
=
enterpriseList
.
stream
()
.
collect
(
Collectors
.
toMap
(
dto
->
dto
.
getEnterpriseId
(),
dto
->
dto
));
bindRelationList
=
staffClerkRelationApiService
.
listBindCodeByStaffId
(
enterpriseIdList
,
staffId
);
...
...
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