| | |
| | | * 根据指定条件获取片区,2024-08-14新增,替换原来的片区分页查询 |
| | | * |
| | | * @param qo |
| | | * @param bindingResult |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/some") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoBlock>>> getBlocks(@Valid QueryVo qo, BindingResult bindingResult) { |
| | | if (bindingResult != null && bindingResult.hasErrors()) { |
| | | return BaseResponseUtils.buildFail(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage()); |
| | | } |
| | | public BaseResponse<QueryResultVo<List<VoBlock>>> getBlocks(QueryVo qo) { |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(this.sv.getBlocks(qo)); |
| | | } catch (Exception e) { |
| | |
| | | return BaseResponseUtils.buildFail("数据库存储失败"); |
| | | } |
| | | |
| | | // 删除片区关联的地图图形 |
| | | this.sv.deleteMapGraph(id); |
| | | // 删除地图图形坐标 |
| | | this.sv.deleteMapCoordinates(id); |
| | | // 删除片区关联的地图图形 |
| | | this.sv.deleteMapGraph(id); |
| | | |
| | | return BaseResponseUtils.buildSuccess(true); |
| | | } |