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
c19d3ddb
Commit
c19d3ddb
authored
Jul 29, 2022
by
guojx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤门店活码达到上线的门店,获取标志位
parent
cbca0956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+21
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
c19d3ddb
...
...
@@ -16,6 +16,7 @@ import com.gic.haoban.manage.api.dto.WxEnterpriseDTO;
import
com.gic.haoban.manage.api.dto.hm.*
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmLinkSearchQDTO
;
import
com.gic.haoban.manage.api.service.hm.HmLinkApiService
;
import
com.gic.haoban.manage.api.service.hm.HmQrcodeApiService
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanExternalClerkRelatedMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanExternalClerkRelated
;
...
...
@@ -85,6 +86,8 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
private
HmPageService
hmPageService
;
@Autowired
private
StoreService
storeService
;
@Autowired
private
HmQrcodeApiService
hmQrcodeApiService
;
@Override
public
ServiceResponse
<
String
>
getHmLinkUrl
()
{
...
...
@@ -335,6 +338,24 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
int
selectStoreFlag
=
cityStore
.
getOpen
();
log
.
info
(
"省市区开启={}"
,
selectStoreFlag
);
retDTO
.
setStoreType
(
storeType
);
//过滤门店活码达到上线的门店,获取标志位
List
<
HmQrcodeStoreDTO
>
hmStoreList
=
hmQrcodeApiService
.
getHmStoreByEnterpriseId
(
wxEnterpriseId
,
enterpriseId
);
Map
<
String
,
Integer
>
map
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
hmStoreList
))
{
map
=
hmStoreList
.
stream
()
.
collect
(
Collectors
.
toMap
(
HmQrcodeStoreDTO:
:
getStoreId
,
HmQrcodeStoreDTO:
:
getOverFlag
,
(
k1
,
k2
)
->
k1
));
}
if
(
CollectionUtils
.
isNotEmpty
(
storeList
))
{
Map
<
String
,
Integer
>
finalMap
=
map
;
storeList
=
storeList
.
stream
().
filter
(
e
->
{
Integer
overFlag
=
finalMap
.
get
(
e
.
getStoreId
());
if
(
overFlag
!=
null
&&
overFlag
==
1
)
{
return
false
;
}
return
true
;
}).
collect
(
Collectors
.
toList
());
}
retDTO
.
setStoreList
(
storeList
);
retDTO
.
setSelectStoreFlag
(
selectStoreFlag
);
}
...
...
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