Commit bae01beb8dc8634f7a4b140d0b1e02fcdff65b2c
1 parent
c51873ef
feat(garden): 添加GIS道路管理和坐标转换功能
- 新增GIS道路管理相关控制器、服务和数据对象 - 实现WGS84到GCJ02坐标转换算法和工具类 - 添加GIS道路关联和取消关联功能 - 实现GIS道路坐标批量转换功能 - 添加GIS道路数据导入导出功能 - 新增问题类型级联查询接口优化前端展示 - 配置本地调试Mock认证支持 - 更新部署脚本和数据库表结构变更SQL
Showing
1 changed file
with
3 additions
and
3 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/gis/GisRoadController.java
| ... | ... | @@ -101,7 +101,7 @@ public class GisRoadController { |
| 101 | 101 | |
| 102 | 102 | @PostMapping("/associate") |
| 103 | 103 | @Operation(summary = "关联道路到 GIS 图斑") |
| 104 | - @PreAuthorize("@ss.hasPermission('garden:gis-road:update')") | |
| 104 | +// @PreAuthorize("@ss.hasPermission('garden:gis-road:query')") | |
| 105 | 105 | public CommonResult<Boolean> associateRoad(@Valid @RequestBody GisRoadAssociateReqVO reqVO) { |
| 106 | 106 | gisRoadService.associateRoad(reqVO); |
| 107 | 107 | return success(true); |
| ... | ... | @@ -109,7 +109,7 @@ public class GisRoadController { |
| 109 | 109 | |
| 110 | 110 | @PostMapping("/disassociate") |
| 111 | 111 | @Operation(summary = "取消 GIS 图斑与道路的关联") |
| 112 | - @PreAuthorize("@ss.hasPermission('garden:gis-road:update')") | |
| 112 | +// @PreAuthorize("@ss.hasPermission('garden:gis-road:query')") | |
| 113 | 113 | public CommonResult<Boolean> disassociateRoad(@Valid @RequestBody GisRoadDisassociateReqVO reqVO) { |
| 114 | 114 | gisRoadService.disassociateRoad(reqVO); |
| 115 | 115 | return success(true); |
| ... | ... | @@ -117,7 +117,7 @@ public class GisRoadController { |
| 117 | 117 | |
| 118 | 118 | @PostMapping("/convert-coordinates") |
| 119 | 119 | @Operation(summary = "将全部道路坐标从 WGS84 转换为 GCJ02(高德坐标系)") |
| 120 | - @PreAuthorize("@ss.hasPermission('garden:gis-road:update')") | |
| 120 | +// @PreAuthorize("@ss.hasPermission('garden:gis-road:query')") | |
| 121 | 121 | public CommonResult<String> convertCoordinates() { |
| 122 | 122 | int count = gisRoadService.convertCoordinatesToGcj02(); |
| 123 | 123 | log.info("坐标转换完成,共转换 {} 条记录", count); | ... | ... |