| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.sxkj.fw.area.dto.FwPoliceStationPolygonQueryDTO; |
| | | import org.sxkj.fw.area.entity.FwPoliceStationEntity; |
| | | import org.sxkj.fw.area.vo.FwPoliceStationVO; |
| | | import org.sxkj.fw.area.excel.FwPoliceStationExcel; |
| | |
| | | ExcelUtil.export(response, "派出所信息表数据" + DateUtil.time(), "派出所信息表数据表", list, FwPoliceStationExcel.class); |
| | | } |
| | | |
| | | /** |
| | | * 根据多边形区域查询派出所 |
| | | */ |
| | | @PostMapping("/queryByPolygons") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "根据多边形区域查询派出所", notes = "传入多边形WKT字符串集合") |
| | | public R<List<FwPoliceStationVO>> queryByPolygons(@Valid @RequestBody FwPoliceStationPolygonQueryDTO dto) { |
| | | List<FwPoliceStationVO> result = fwPoliceStationService.selectByPolygons(dto.getPolygons()); |
| | | return R.data(result); |
| | | } |
| | | |
| | | } |