|
@@ -130,16 +130,16 @@ public class CustomerBasicInfoSaveController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "/query_provinceList")
|
|
@RequestMapping(value = "/query_provinceList")
|
|
public ResponseJson queryProvinceList(HttpServletRequest request) {
|
|
public ResponseJson queryProvinceList(HttpServletRequest request) {
|
|
- Province province = new Province();
|
|
|
|
|
|
+ //Province province = new Province();
|
|
String provinceId = request.getParameter("provinceListInfo");
|
|
String provinceId = request.getParameter("provinceListInfo");
|
|
List<Province> provinceList = null;
|
|
List<Province> provinceList = null;
|
|
provinceList = customerBasicInfoSaveService.queryProvinceList(provinceId);
|
|
provinceList = customerBasicInfoSaveService.queryProvinceList(provinceId);
|
|
- if (provinceList == null || provinceList.size() < 1) {
|
|
|
|
- return new ResponseJson(500, "查询失败", 500);
|
|
|
|
- } else {
|
|
|
|
|
|
+ if (provinceList != null || provinceList.size() > 0) {
|
|
ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
rj.addResponseKeyValue("provinceList", provinceList);
|
|
rj.addResponseKeyValue("provinceList", provinceList);
|
|
return rj;
|
|
return rj;
|
|
|
|
+ } else {
|
|
|
|
+ return new ResponseJson(500, "查询失败", 500);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -151,19 +151,58 @@ public class CustomerBasicInfoSaveController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "/query_cityList")
|
|
@RequestMapping(value = "/query_cityList")
|
|
public ResponseJson queryCityList(HttpServletRequest request) {
|
|
public ResponseJson queryCityList(HttpServletRequest request) {
|
|
- Province province = new Province();
|
|
|
|
- String provinceId = request.getParameter("cityList");
|
|
|
|
|
|
+ //Province province = new Province();
|
|
|
|
+ String provinceId = request.getParameter("provinceId");
|
|
List<City> cityList = null;
|
|
List<City> cityList = null;
|
|
cityList = customerBasicInfoSaveService.queryCityList(provinceId);
|
|
cityList = customerBasicInfoSaveService.queryCityList(provinceId);
|
|
- if (cityList == null || cityList.size() < 1) {
|
|
|
|
- return new ResponseJson(500, "查询失败", 500);
|
|
|
|
- } else {
|
|
|
|
|
|
+ if (cityList != null || cityList.size() > 0) {
|
|
ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
rj.addResponseKeyValue("cityList", cityList);
|
|
rj.addResponseKeyValue("cityList", cityList);
|
|
return rj;
|
|
return rj;
|
|
|
|
+ } else {
|
|
|
|
+ return new ResponseJson(500, "查询失败", 500);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查询所有渠道类别
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "/query_channelCategoryList")
|
|
|
|
+ public ResponseJson queryChannelCategoryList(HttpServletRequest request) {
|
|
|
|
+ String channelCategoryId = request.getParameter("provinceListInfo");
|
|
|
|
+ List<ChannelDivisionInfo> channelCategoryList = null;
|
|
|
|
+ channelCategoryList = customerBasicInfoSaveService.queryChannelCategoryList(channelCategoryId);
|
|
|
|
+ if (channelCategoryList != null || channelCategoryList.size() > 0) {
|
|
|
|
+ ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
|
|
+ rj.addResponseKeyValue("provinceList", channelCategoryList);
|
|
|
|
+ return rj;
|
|
|
|
+ } else {
|
|
|
|
+ return new ResponseJson(500, "查询失败", 500);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据渠道类别查询渠道类型
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "/query_channelTypeList")
|
|
|
|
+ public ResponseJson queryChannelTypeList(HttpServletRequest request) {
|
|
|
|
+ String channelCategoryId = request.getParameter("channelCategory");
|
|
|
|
+ List<ChannelDivisionInfo> channelTypeList = null;
|
|
|
|
+ channelTypeList = customerBasicInfoSaveService.queryChannelTypeList(channelCategoryId);
|
|
|
|
+ if (channelTypeList != null || channelTypeList.size() > 0) {
|
|
|
|
+ ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
|
|
+ rj.addResponseKeyValue("channelTypeList", channelTypeList);
|
|
|
|
+ return rj;
|
|
|
|
+ } else {
|
|
|
|
+ return new ResponseJson(500, "查询失败", 500);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 验证方法
|
|
* 验证方法
|