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
a9157d6b
Commit
a9157d6b
authored
Dec 19, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店查询接口
parent
9f769cc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
ProvincesApiService.java
.../main/java/com/gic/store/service/ProvincesApiService.java
+2
-0
ProvincesApiServiceImpl.java
...gic/store/service/outer/impl/ProvincesApiServiceImpl.java
+15
-0
TabStoreMapper.xml
...tore-service/src/main/resources/mapper/TabStoreMapper.xml
+1
-1
No files found.
gic-store-api/src/main/java/com/gic/store/service/ProvincesApiService.java
View file @
a9157d6b
...
...
@@ -115,4 +115,6 @@ public interface ProvincesApiService {
* @return
*/
ServiceResponse
<
List
<
CityDTO
>>
listHotCity
(
Integer
enterpriseId
,
Integer
brandId
);
ServiceResponse
<
List
<
CityDTO
>>
listEnterpriseCity
(
Integer
enterpriseId
);
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ProvincesApiServiceImpl.java
View file @
a9157d6b
...
...
@@ -201,4 +201,19 @@ public class ProvincesApiServiceImpl implements ProvincesApiService {
}
return
ServiceResponse
.
success
(
hotCityList
);
}
@Override
public
ServiceResponse
<
List
<
CityDTO
>>
listEnterpriseCity
(
Integer
enterpriseId
)
{
List
<
String
>
list
=
this
.
storeService
.
listAllCityId
(
enterpriseId
,
null
);
ServiceResponse
<
List
<
CityDTO
>>
response
=
this
.
selectAllCity
();
List
<
CityDTO
>
cityList
=
new
ArrayList
<>();
if
(
response
.
isSuccess
()){
for
(
CityDTO
dto
:
response
.
getResult
()){
if
(
list
.
contains
(
dto
.
getCityId
())){
cityList
.
add
(
dto
);
}
}
}
return
ServiceResponse
.
success
(
cityList
);
}
}
gic-store-service/src/main/resources/mapper/TabStoreMapper.xml
View file @
a9157d6b
...
...
@@ -203,7 +203,7 @@
and t1.store_info_id = t2.store_info_id
and t2.overflow_status = 0
<if
test=
"storeBrandId != null and storeBrandId != 0"
>
and t2.brand_ids
= #{storeBrandId}
and t2.brand_ids
like concat('%,',#{storeBrandId},',%')
</if>
group by city_id
ORDER BY count(1) desc
...
...
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