Commit 8212d7c239cda86484defee4ef702f3352891a70
1 parent
a029929b
feat(garden): 添加GIS道路管理和坐标转换功能
- 新增GIS道路管理相关控制器、服务和数据对象 - 实现WGS84到GCJ02坐标转换算法和工具类 - 添加GIS道路关联和取消关联功能 - 实现GIS道路坐标批量转换功能 - 添加GIS道路数据导入导出功能 - 新增问题类型级联查询接口优化前端展示 - 配置本地调试Mock认证支持 - 更新部署脚本和数据库表结构变更SQL
Showing
1 changed file
with
5 additions
and
0 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/problemtype/GardenProblemTypeServiceImpl.java
| ... | ... | @@ -13,6 +13,7 @@ import jakarta.annotation.Resource; |
| 13 | 13 | import java.util.ArrayList; |
| 14 | 14 | import java.util.List; |
| 15 | 15 | import java.util.Map; |
| 16 | +import java.util.Objects; | |
| 16 | 17 | import java.util.stream.Collectors; |
| 17 | 18 | |
| 18 | 19 | import com.zteits.urbanops.module.garden.dal.dataobject.problemtype.GardenProblemTypeDO; |
| ... | ... | @@ -198,6 +199,10 @@ public class GardenProblemTypeServiceImpl implements GardenProblemTypeService { |
| 198 | 199 | entity.setStatus(CommonStatusEnum.ENABLE.getStatus()); |
| 199 | 200 | gardenProblemTypeMapper.insert(entity); |
| 200 | 201 | count++; |
| 202 | + } else if (!Objects.equals(exist.getTypeName(), dict.getLabel())) { | |
| 203 | + exist.setTypeName(dict.getLabel()); | |
| 204 | + gardenProblemTypeMapper.updateById(exist); | |
| 205 | + count++; | |
| 201 | 206 | } |
| 202 | 207 | } |
| 203 | 208 | return count; | ... | ... |