| | |
| | | IPage<AttResBase> pageList = attResBaseService.selectAttResBasePage(Condition.getPage(query), attResBase); |
| | | return R.data(pageList); |
| | | } |
| | | |
| | | @ApiOperation(value = "中台水库-查询该行政区下的水库", notes = "中台水库-查询该行政区下的水库") |
| | | @GetMapping(value = "/getListByRegion") |
| | | public R getListByRegion(@ApiIgnore @RequestParam Map<String, Object> obj,Query query) { |
| | | String code = obj.get("code").toString(); |
| | | if (code.substring(0,4).indexOf("00") > -1) { |
| | | obj.put("code",code.substring(0,2)); |
| | | } else if (code.substring(0,6).indexOf("00") > -1) { |
| | | obj.put("code",code.substring(0,4)); |
| | | } |
| | | // List<AttResBase> list = attResBaseService.getListByRegion(obj); |
| | | IPage<AttResBase> pageList = attResBaseService.getListByRegion(Condition.getPage(query),obj); |
| | | return R.data(pageList); |
| | | } |
| | | |
| | | @ApiOperation(value = "中台水库-获取水库详情", notes = "中台水库-获取水库详情") |
| | | @GetMapping(value = "/getDetailByCode") |
| | | public R getDetailByCode(String code) { |
| | | AttResBase attResBase = attResBaseService.getDetailByCode(code); |
| | | return R.data(attResBase); |
| | | } |
| | | |
| | | /** |
| | | * 获取水库对应责任人分页数据 |
| | | * @param params 条件查询参数对象 |
| | | * @param query 分页查询参数对象 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "中台水库-获取水库对应责任人分页数据", notes = "中台水库-获取水库对应责任人分页数据") |
| | | @GetMapping(value = "/getAttResBaseUserPage") |
| | | public R getAttResBaseUserPage(@RequestParam Map<String, Object> params,Query query) { |
| | | return R.data(attResBaseService.getAttResBaseUserPage(Condition.getPage(query),params)); |
| | | } |
| | | } |