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
16a29a52
Commit
16a29a52
authored
Jul 08, 2020
by
zhiwj
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断storeInfoId在不在门店控件中
parent
27a70a55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
StoreWidgetApiService.java
...ain/java/com/gic/store/service/StoreWidgetApiService.java
+9
-0
StoreWidgetApiServiceImpl.java
...c/store/service/outer/impl/StoreWidgetApiServiceImpl.java
+21
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreWidgetApiService.java
View file @
16a29a52
...
...
@@ -77,8 +77,17 @@ public interface StoreWidgetApiService {
* @Param
* @return result true表示存在
*/
ServiceResponse
existStoreInfoId
(
Integer
enterpriseId
,
Integer
storeWidgetId
,
Integer
storeInfoId
);
/** @Description: 判断门店是否在门店控件里
* @author taogs
* @Date 11:03 2020/3/27
* @Param
* @return result true表示存在
*/
ServiceResponse
exist
(
String
enterpriseId
,
Integer
storeWidgetId
,
Integer
storeId
);
/** @Description: 判断门店是否在门店控件里
* @author taogs
* @Date 11:03 2020/3/27
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreWidgetApiServiceImpl.java
View file @
16a29a52
...
...
@@ -208,6 +208,27 @@ public class StoreWidgetApiServiceImpl implements StoreWidgetApiService {
}
@Override
public
ServiceResponse
existStoreInfoId
(
Integer
enterpriseId
,
Integer
storeWidgetId
,
Integer
storeInfoId
)
{
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
.
setStoreInfoIds
(
storeInfoId
+
""
);
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
);
}
...
...
zhiwj
@314581947
mentioned in commit
c4ac9afd
Jul 08, 2020
mentioned in commit
c4ac9afd
mentioned in commit c4ac9afdcb981c0fc28b77c9120e0ede7ff1e15c
Toggle commit 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