Commit 4525c4a5 by zhengxj

finish 新增注解 on 20190223 by zhengxj

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