Commit f5171d2e by zhengxj

finish 新增注解 on 20190223 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17684 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent f3ebbb86
...@@ -28,6 +28,7 @@ import java.util.HashMap; ...@@ -28,6 +28,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
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.RequestParam;
...@@ -55,7 +56,7 @@ public class OrganizationController extends BaseController{ ...@@ -55,7 +56,7 @@ public class OrganizationController extends BaseController{
private ISysOrganizationService organizationService; private ISysOrganizationService organizationService;
@RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST }) @RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getByParams(Integer id, String name, Byte orgStatus) { public ResultObject getByParams(@RequestBody Integer id,@RequestBody String name,@RequestBody Byte orgStatus) {
logger.info("接收到的id参数值为:"+id); logger.info("接收到的id参数值为:"+id);
if (!StringUtils.isNull(name)) { if (!StringUtils.isNull(name)) {
......
...@@ -9,6 +9,7 @@ import java.util.List; ...@@ -9,6 +9,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
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.RequestParam;
...@@ -37,7 +38,7 @@ public class SysMenuController extends BaseController { ...@@ -37,7 +38,7 @@ public class SysMenuController extends BaseController {
@SuppressWarnings({ "unchecked", "rawtypes" }) @SuppressWarnings({ "unchecked", "rawtypes" })
@RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST }) @RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getByParams(Integer id, String name, Byte menuStatus) { public ResultObject getByParams(@RequestBody Integer id,@RequestBody String name, @RequestBody Byte menuStatus) {
logger.info("接收到的id参数值为:"+id); logger.info("接收到的id参数值为:"+id);
if (!StringUtils.isNull(name)) { if (!StringUtils.isNull(name)) {
name = name.replaceAll(" ", ""); name = name.replaceAll(" ", "");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!