| | |
| | | public PageResult<SysArea> findAlls(@RequestParam Map<String, Object> params) { |
| | | return sysAreaService.findList(params); |
| | | } |
| | | @ApiOperation(value = "查询列表") |
| | | @GetMapping("/getListByMap") |
| | | public ResultBody getListByMap(@RequestParam Map<String, Object> params) { |
| | | return sysAreaService.getListByMap(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | |
| | | return ResultBody.failed().msg(errMsg.toString()); |
| | | } else { |
| | | //如果父级id是空的,默认填-1 |
| | | if (sysArea.getAreaParentId().toString()=="") { |
| | | if (sysArea.getAreaParentId()==null) { |
| | | sysArea.setAreaParentId(-1L); |
| | | } |
| | | //添加的时候得判断主键唯一 |