Commit 66bd1cc3 by zhengxj

finish 新增日志 on 20190223 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17680 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 0b5ad1b2
......@@ -52,11 +52,12 @@ public class OrganizationController extends BaseController{
@Autowired
private ISysOrganizationService organizationService;
private ISysOrganizationService organizationService;
@RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getByParams(Integer id, String name, Byte orgStatus) {
logger.info("接收到的id参数值为:"+id);
if (!StringUtils.isNull(name)) {
name = name.replaceAll(" ", "");
}
......@@ -70,7 +71,7 @@ public class OrganizationController extends BaseController{
} else {
if (StringUtils.isNull(name) && (orgStatus != null || id != null)) {
if (orgStatus == null) {
// 根据id递归查询子菜单
// 根据id递归查询子菜单
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(),
organizationService.findOrgById(id));
} else if (id != null) {
......
......@@ -38,6 +38,7 @@ public class SysMenuController extends BaseController {
@SuppressWarnings({ "unchecked", "rawtypes" })
@RequestMapping(value = "/getByParams", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject getByParams(Integer id, String name, Byte menuStatus) {
logger.info("接收到的id参数值为:"+id);
if (!StringUtils.isNull(name)) {
name = name.replaceAll(" ", "");
}
......@@ -79,7 +80,7 @@ public class SysMenuController extends BaseController {
@RequestMapping(value = "/deleteById", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject deleteById(@RequestParam(value = "id", required = false) Integer id) {
if (id == null) {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.PARAM_ERROR);
return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.FAIL);
}
int i = menuService.deleteByPrimaryKey(id);
String msg = i == 0 ? ResultCodeEnum.FAIL.getMsg() : ResultCodeEnum.SUCCESS.getMsg();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!