Commit b35ad3df0400793dbeabd56f565e54aec56a6651
1 parent
cb2b42bf
fix(gis): 修复道路数据更新逻辑
- 添加了对 gisRoadId 字段的重置操作 - 添加了对 roadName 字段的清空操作 - 保持了原有的 gisIsRelated 字段更新逻辑
Showing
1 changed file
with
3 additions
and
1 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/gis/GisRoadServiceImpl.java
| ... | ... | @@ -128,7 +128,9 @@ public class GisRoadServiceImpl implements GisRoadService { |
| 128 | 128 | gisRoadMapper.update(null, |
| 129 | 129 | new LambdaUpdateWrapper<GisRoadDO>() |
| 130 | 130 | .eq(GisRoadDO::getId, gisRoad.getId()) |
| 131 | - .set(GisRoadDO::getGisIsRelated, 0)); | |
| 131 | + .set(GisRoadDO::getGisIsRelated, 0) | |
| 132 | + .set(GisRoadDO::getGisRoadId, 0) | |
| 133 | + .set(GisRoadDO::getRoadName, null)); | |
| 132 | 134 | } |
| 133 | 135 | |
| 134 | 136 | @Override | ... | ... |