吉安感知网项目-后端
xiebin
2026-01-30 b3edfcbd0267cf66d4a908d47dbe5d97533dcb33
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/controller/FwPoliceStationController.java
@@ -31,6 +31,7 @@
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;
@@ -163,4 +164,15 @@
      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);
   }
}