| | |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public ResultBody<PageResult> list(@RequestParam Map<String, Object> params) { |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return ResultBody.ok().data(sysCompanyService.findList(params)); |
| | | return sysCompanyService.findList(params); |
| | | } |
| | | |
| | | /** |
| | |
| | | return ResultBody.failed().msg("删除失败"); |
| | | } |
| | | } |
| | | /** |
| | | *修改状态 |
| | | */ |
| | | @ApiOperation(value = "修改状态") |
| | | @GetMapping("updateEnabled") |
| | | public ResultBody updateEnabled(@RequestParam Map<String, Object> params) { |
| | | return sysCompanyService.updateEnabled(params); |
| | | } |
| | | } |