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
7c793873
Commit
7c793873
authored
Apr 24, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业门店初始化
parent
a86e3f6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
WxEnterpriseRelatedApiService.java
...ban/manage/api/service/WxEnterpriseRelatedApiService.java
+8
-0
WxEnterpriseRelatedApiServiceImpl.java
...e/service/out/impl/WxEnterpriseRelatedApiServiceImpl.java
+19
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseRelatedApiService.java
View file @
7c793873
...
...
@@ -99,6 +99,14 @@ public interface WxEnterpriseRelatedApiService {
public
List
<
String
>
listStoreIdByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
);
/**
* 查询绑定得门店id
*
* @param wxEnterpriseId
* @return
*/
public
List
<
StoreOrGroupInfoDTO
>
listStoreRelationByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
search
);
/**
* 初始化历史门店数据
*
* @return
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseRelatedApiServiceImpl.java
View file @
7c793873
...
...
@@ -473,6 +473,25 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
}
@Override
public
List
<
StoreOrGroupInfoDTO
>
listStoreRelationByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
search
)
{
BasePageInfo
basePageInfo
=
new
BasePageInfo
();
basePageInfo
.
setPageSizeZero
(
true
);
basePageInfo
.
setPageSize
(
0
);
Page
<
TabStoreRelation
>
relationPage
=
storeRangeService
.
pageStoreRelation
(
enterpriseId
,
wxEnterpriseId
,
search
,
basePageInfo
);
List
<
TabStoreRelation
>
storeRelations
=
relationPage
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
storeRelations
))
{
return
new
ArrayList
<>();
}
return
storeRelations
.
stream
().
map
(
tab
->
{
StoreOrGroupInfoDTO
groupInfoDTO
=
new
StoreOrGroupInfoDTO
();
groupInfoDTO
.
setRelationId
(
tab
.
getStoreId
());
groupInfoDTO
.
setRelationName
(
tab
.
getStoreName
());
groupInfoDTO
.
setRelationType
(
2
);
return
groupInfoDTO
;
}).
collect
(
Collectors
.
toList
());
}
@Override
public
boolean
initHistoryEnterprise
(
String
wxEnterpriseId
)
{
List
<
TabHaobanWxEnterpriseRelated
>
needDealEnts
=
new
ArrayList
<>();
if
(
StringUtils
.
isBlank
(
wxEnterpriseId
))
{
...
...
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