Commit a064a965 by zhengxj

finish 获取地区信息 on 20190223 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17676 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 27ef8224
...@@ -27,6 +27,7 @@ package com.glsx.ordercenter.controller; ...@@ -27,6 +27,7 @@ package com.glsx.ordercenter.controller;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
...@@ -51,7 +52,7 @@ public class AreaController { ...@@ -51,7 +52,7 @@ public class AreaController {
@RequestMapping(value = "/getById", method = { RequestMethod.GET, RequestMethod.POST }) @RequestMapping(value = "/getById", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getByParams(Integer id,String type) { public ResultObject getByParams( @RequestParam(defaultValue = "0")Integer id, String type) {
if(!StringUtils.isEmpty(type)&&type.equals("children")){ if(!StringUtils.isEmpty(type)&&type.equals("children")){
SysAreaExample example=new SysAreaExample(); SysAreaExample example=new SysAreaExample();
example.createCriteria().andParentIdEqualTo(id); example.createCriteria().andParentIdEqualTo(id);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!