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
0699ef41
Commit
0699ef41
authored
Mar 19, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
aa7a44e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+14
-5
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
0699ef41
...
...
@@ -180,7 +180,7 @@ public class StoreController extends WebBaseController{
//获取首页销售数据
@IgnoreLogin
@RequestMapping
(
"/get-area-list"
)
public
HaobanResponse
getArea
()
{
public
HaobanResponse
getArea
(
String
id
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
ProvinceDTO
>
provinceMap
=
GlobalDictMap
.
provinceMap
;
Map
<
String
,
CityDTO
>
cityMap
=
GlobalDictMap
.
cityMap
;
...
...
@@ -197,10 +197,19 @@ public class StoreController extends WebBaseController{
for
(
String
key
:
countyMap
.
keySet
())
{
countyList
.
add
(
countyMap
.
get
(
key
));
}
map
.
put
(
"province"
,
provinceList
);
map
.
put
(
"city"
,
cityList
);
map
.
put
(
"county"
,
countyList
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
map
);
if
(
StringUtils
.
isEmpty
(
id
)){
//省
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
provinceList
);
}
else
{
if
(
cityMap
.
containsKey
(
id
)){
//市
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
cityList
);
}
else
if
(
countyMap
.
containsKey
(
id
)){
//区
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
countyList
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_8
);
}
//获取首页销售数据
@RequestMapping
(
"/change-store-detail"
)
...
...
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