Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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-webapp-plug
Commits
f472d691
Commit
f472d691
authored
Jul 17, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询门店选择器配置
parent
c686ad7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ProvincesController.java
...java/com/gic/plug/web/controller/ProvincesController.java
+3
-3
No files found.
src/main/java/com/gic/plug/web/controller/ProvincesController.java
View file @
f472d691
...
...
@@ -3,6 +3,7 @@ package com.gic.plug.web.controller;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.plug.web.vo.CityVO
;
import
com.gic.plug.web.vo.CountyVO
;
import
com.gic.plug.web.vo.ProvinceVO
;
...
...
@@ -10,7 +11,6 @@ import com.gic.store.dto.CityDTO;
import
com.gic.store.dto.CountyDTO
;
import
com.gic.store.dto.ProvinceDTO
;
import
com.gic.store.service.ProvincesApiService
;
import
com.gic.store.utils.ErrorCode
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -75,7 +75,7 @@ public class ProvincesController {
@ResponseBody
public
Object
searchCitys
(
String
search
){
if
(
StringUtils
.
isBlank
(
search
)){
return
RestResponse
.
failure
(
ErrorCode
.
ERR_2
.
getCode
(),
ErrorCode
.
ERR_2
.
getMsg
());
return
RestResponse
.
failure
(
ErrorCode
.
MISS_PARAMETER
.
getCode
(),
ErrorCode
.
MISS_PARAMETER
.
getMsg
());
}
ServiceResponse
<
List
<
CityDTO
>>
serviceResponse
=
this
.
provincesApiService
.
queryCity
(
search
);
if
(
serviceResponse
.
isSuccess
()){
...
...
@@ -88,7 +88,7 @@ public class ProvincesController {
@ResponseBody
public
Object
searchCounty
(
String
search
){
if
(
StringUtils
.
isBlank
(
search
)){
return
RestResponse
.
failure
(
ErrorCode
.
ERR_2
.
getCode
(),
ErrorCode
.
ERR_2
.
getMsg
());
return
RestResponse
.
failure
(
ErrorCode
.
MISS_PARAMETER
.
getCode
(),
ErrorCode
.
MISS_PARAMETER
.
getMsg
());
}
ServiceResponse
<
List
<
CountyDTO
>>
serviceResponse
=
this
.
provincesApiService
.
queryCounty
(
search
);
if
(
serviceResponse
.
isSuccess
()){
...
...
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