Commit 5428ee5c by zhengxj

finish 新增注解 on 20190223 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17693 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent ae04e21e
......@@ -56,7 +56,10 @@ public class OrganizationController extends BaseController{
private ISysOrganizationService organizationService;
@RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getByParams(@RequestBody Integer id,@RequestBody String name,@RequestBody Byte orgStatus) {
public ResultObject getByParams(@RequestBody SysOrganization sysOrganization ) {
Integer id=sysOrganization.getId();
String name=sysOrganization.getName();
Byte orgStatus=sysOrganization.getOrgStatus();
logger.info("接收到的id参数值为:"+id);
if (!StringUtils.isNull(name)) {
......
......@@ -38,8 +38,12 @@ public class SysMenuController extends BaseController {
@SuppressWarnings({ "unchecked", "rawtypes" })
@RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getByParams(@RequestBody Integer id,@RequestBody String name, @RequestBody Byte menuStatus) {
logger.info("接收到的id参数值为:"+id);
public ResultObject getByParams(@RequestBody SysMenu sysMenu) {
String name=sysMenu.getName();
Integer id =sysMenu.getId();
Byte menuStatus=sysMenu.getMenuStatus();
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!