Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
1d0848f8
Commit
1d0848f8
authored
Mar 27, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/base_platform_enterprise/gic-store
into developer
parents
f53a31ab
d5f9e565
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
StoreWidgetApiService.java
...ain/java/com/gic/store/service/StoreWidgetApiService.java
+17
-0
StoreWidgetApiServiceImpl.java
...c/store/service/outer/impl/StoreWidgetApiServiceImpl.java
+26
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreWidgetApiService.java
View file @
1d0848f8
...
...
@@ -54,4 +54,21 @@ public interface StoreWidgetApiService {
ServiceResponse
<
Page
<
StoreDTO
>>
listStoreByStoreWidgetId
(
Integer
enterpriseId
,
Integer
storeWidgetId
,
int
pageNum
,
int
pageSize
);
ServiceResponse
<
List
<
Integer
>>
listStoreIdByStoreWidgetId
(
Integer
enterpriseId
,
Integer
storeWidgetId
);
/** @Description: 判断门店是否在门店控件里
* @author taogs
* @Date 11:03 2020/3/27
* @Param
* @return result true表示存在
*/
ServiceResponse
exist
(
Integer
enterpriseId
,
Integer
storeWidgetId
,
Integer
storeId
);
/** @Description: 判断门店是否在门店控件里
* @author taogs
* @Date 11:03 2020/3/27
* @Param
* @return result true表示存在
*/
ServiceResponse
exist
(
String
enterpriseId
,
Integer
storeWidgetId
,
Integer
storeId
);
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreWidgetApiServiceImpl.java
View file @
1d0848f8
...
...
@@ -94,6 +94,32 @@ public class StoreWidgetApiServiceImpl implements StoreWidgetApiService {
return
ServiceResponse
.
success
(
list
);
}
@Override
public
ServiceResponse
exist
(
Integer
enterpriseId
,
Integer
storeWidgetId
,
Integer
storeId
)
{
StoreWidgetDTO
storeWidgetDTO
=
this
.
storeWidgetService
.
getStoreWidget
(
storeWidgetId
);
if
(
storeWidgetDTO
!=
null
){
String
authSearchParam
=
storeWidgetDTO
.
getAuthSearchParam
();
String
searchParam
=
storeWidgetDTO
.
getSearchParam
();
StoreSearchDTO
dto
=
new
StoreSearchDTO
();
dto
.
setEnterpriseId
(
enterpriseId
);
if
(
StringUtils
.
isNotBlank
(
authSearchParam
)
&&
!
"{}"
.
equals
(
authSearchParam
)){
dto
.
setAuthSearchJson
(
authSearchParam
);
}
dto
.
setSearchJson
(
searchParam
);
dto
.
setStoreIds
(
storeId
+
""
);
ServiceResponse
<
Long
>
response
=
this
.
storeApiService
.
queryStoreCountFromES
(
dto
);
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
>
0
){
return
ServiceResponse
.
success
(
true
);
}
}
return
ServiceResponse
.
success
(
false
);
}
@Override
public
ServiceResponse
exist
(
String
enterpriseId
,
Integer
storeWidgetId
,
Integer
storeId
)
{
return
this
.
exist
(
Integer
.
valueOf
(
enterpriseId
),
storeWidgetId
,
storeId
);
}
private
void
getStoreId
(
Integer
enterpriseId
,
Integer
storeWidgetId
,
int
pageNum
,
List
<
Integer
>
list
){
ServiceResponse
<
Page
<
StoreDTO
>>
response
=
this
.
listStoreByStoreWidgetId
(
enterpriseId
,
storeWidgetId
,
pageNum
,
10000
);
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
!=
null
){
...
...
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