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
7a7bd91c
Commit
7a7bd91c
authored
Mar 19, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
e030d109
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+15
-3
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
7a7bd91c
...
@@ -185,10 +185,16 @@ public class StoreController extends WebBaseController{
...
@@ -185,10 +185,16 @@ public class StoreController extends WebBaseController{
if
(
type
==
null
)
{
if
(
type
==
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
}
List
<
ProvinceDTO
>
provinceList
=
new
ArrayList
<
ProvinceDTO
>();
List
<
CityDTO
>
cityList
=
new
ArrayList
<
CityDTO
>();
List
<
CountyDTO
>
countyList
=
new
ArrayList
<
CountyDTO
>();
switch
(
type
)
{
switch
(
type
)
{
// 省
// 省
case
1
:
case
1
:
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
GlobalDictMap
.
provinceMap
);
for
(
String
key
:
GlobalDictMap
.
provinceMap
.
keySet
())
{
provinceList
.
add
(
GlobalDictMap
.
provinceMap
.
get
(
key
));
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
provinceList
);
// 市
// 市
case
2
:
case
2
:
Map
<
String
,
CityDTO
>
tabCityMap
=
GlobalDictMap
.
cityMap
;
Map
<
String
,
CityDTO
>
tabCityMap
=
GlobalDictMap
.
cityMap
;
...
@@ -199,7 +205,10 @@ public class StoreController extends WebBaseController{
...
@@ -199,7 +205,10 @@ public class StoreController extends WebBaseController{
cityMap
.
put
(
entry
.
getKey
(),
entry
.
getValue
());
cityMap
.
put
(
entry
.
getKey
(),
entry
.
getValue
());
}
}
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
cityMap
);
for
(
String
key
:
cityMap
.
keySet
())
{
cityList
.
add
(
cityMap
.
get
(
key
));
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
cityList
);
case
3
:
case
3
:
Map
<
String
,
CountyDTO
>
tabCountyMap
=
GlobalDictMap
.
countyMap
;
Map
<
String
,
CountyDTO
>
tabCountyMap
=
GlobalDictMap
.
countyMap
;
Map
<
String
,
CountyDTO
>
countyMap
=
new
HashMap
<
String
,
CountyDTO
>();
Map
<
String
,
CountyDTO
>
countyMap
=
new
HashMap
<
String
,
CountyDTO
>();
...
@@ -209,7 +218,10 @@ public class StoreController extends WebBaseController{
...
@@ -209,7 +218,10 @@ public class StoreController extends WebBaseController{
countyMap
.
put
(
entry
.
getKey
(),
entry
.
getValue
());
countyMap
.
put
(
entry
.
getKey
(),
entry
.
getValue
());
}
}
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
countyMap
);
for
(
String
key
:
countyMap
.
keySet
())
{
countyList
.
add
(
countyMap
.
get
(
key
));
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
countyList
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_8
);
return
resultResponse
(
HaoBanErrCode
.
ERR_8
);
...
...
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