فهرست منبع

清理pipe_repair_record,gas_pipe_pointgas_pipe_point_device_rel相关代码

zengy 2 هفته پیش
والد
کامیت
84695a9732
28فایلهای تغییر یافته به همراه18 افزوده شده و 1238 حذف شده
  1. 1 1
      pipe-network-service/sql/hide_gas_basic_menus.sql
  2. 0 85
      pipe-network-service/sql/migration_gas_pipe_point_menu.sql
  3. 1 1
      pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/cockpit/CockpitDeviceFacilityRelationController.java
  4. 0 64
      pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasEquipmentController.java
  5. 0 129
      pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasManholeController.java
  6. 0 179
      pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasPipePointController.java
  7. 0 210
      pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasRepairRecordController.java
  8. 0 3
      pipe-network-service/zksy-admin/src/test/java/com/zksy/web/controller/cockpit/CockpitDeviceFacilityRelationContractTest.java
  9. 3 3
      pipe-network-service/zksy-admin/src/test/java/com/zksy/web/controller/cockpit/CockpitFacilityGeometryControllerTest.java
  10. 4 4
      pipe-network-service/zksy-admin/src/test/java/com/zksy/web/controller/cockpit/CockpitFacilityGeometryServiceTest.java
  11. 0 89
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/GasPipePoint.java
  12. 0 47
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/GasPipePointDeviceRel.java
  13. 0 65
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/PipeRepairRecord.java
  14. 1 17
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/vo/EquipmentFullVO.java
  15. 0 34
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/dto/GasPipePointPageInDTO.java
  16. 0 25
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/dto/RepairRecordPageInDTO.java
  17. 0 9
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/mapper/GasPipePointDeviceRelMapper.java
  18. 0 9
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/mapper/GasPipePointMapper.java
  19. 0 9
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/mapper/PipeRepairRecordMapper.java
  20. 0 23
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/GasPipePointService.java
  21. 0 15
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/PipeRepairRecordService.java
  22. 0 3
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/EquipmentBaseServiceImpl.java
  23. 0 89
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/GasPipePointServiceImpl.java
  24. 0 37
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/PipeRepairRecordServiceImpl.java
  25. 2 56
      pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/RiskAssessmentServiceImpl.java
  26. 0 2
      pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/geometry/CockpitFacilityGeometryService.java
  27. 4 20
      pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/relation/CockpitDeviceFacilityRelationResponse.java
  28. 2 10
      pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/relation/CockpitDeviceFacilityRelationService.java

+ 1 - 1
pipe-network-service/sql/hide_gas_basic_menus.sql

@@ -4,7 +4,7 @@
 -- 做法:sys_menu.visible 置 '1'(RuoYi 约定:0=显示 1=隐藏),侧边栏即不再渲染;
 --       路由仍存在(组件未被删除),直接输 URL 仍可访问,后续要恢复改回 '0' 即可。
 --
--- 父级定位(两路兜底,与 migration_gas_pipe_point_menu.sql 同口径):
+-- 父级定位(两路兜底,按燃气-基础数据管理目录反查):
 --   1) 用兄弟页面 component='subSystem/gas/gasBasicadata/gasPipelintNet' 反查 parent_id(最可靠)
 --   2) menu_type='M' 且 menu_name='基础数据管理',且父级是燃气目录
 --

+ 0 - 85
pipe-network-service/sql/migration_gas_pipe_point_menu.sql

@@ -1,85 +0,0 @@
--- 燃气基础数据:新增「管点台账」菜单
---
--- 页面组件:subSystem/gas/gasBasicadata/gasPipePoint
--- 数据来源:app_user.gas_pipe_point(燃气管点专属表)
---   后端接口 /api/gas-pipe-point/{findByPage|getById|save|updateById|deleteById}
---
--- 父级定位(两路兜底):
---   1) 用兄弟页面 component='subSystem/gas/gasBasicadata/gasPipelintNet' 反查 parent_id(最可靠)
---   2) menu_type='M' 且 menu_name='基础数据管理',且父级是燃气目录
---
--- 幂等:菜单按 component 判重,已存在则只更新名称/路径/父级,不改排序;
---       授权按 (role_id, menu_id) 判重。
--- 主键:menu_id 显式取 max+1 —— 本库由 MySQL 迁移而来,自增计数器可能未推进。
---
--- 执行后请重新登录一次,让前端重新拉取菜单。
-
--- 前置:结束上一次失败执行遗留的 aborted 事务
-ROLLBACK;
-
-BEGIN;
-
-SET search_path TO app_user, public;
-
-DO $$
-DECLARE
-  v_parent bigint;
-  v_page   bigint;
-  v_role   record;
-BEGIN
-  -- 1. 定位「燃气 - 基础数据管理」目录
-  SELECT parent_id INTO v_parent
-    FROM sys_menu
-   WHERE component = 'subSystem/gas/gasBasicadata/gasPipelintNet'
-   LIMIT 1;
-
-  IF v_parent IS NULL THEN
-    SELECT menu_id INTO v_parent
-      FROM sys_menu
-     WHERE menu_type = 'M'
-       AND menu_name = '基础数据管理'
-       AND parent_id IN (SELECT menu_id FROM sys_menu WHERE menu_name LIKE '%燃气%')
-     LIMIT 1;
-  END IF;
-
-  IF v_parent IS NULL THEN
-    RAISE NOTICE '未找到燃气-基础数据管理目录,请手工确认 parent_id 后重跑';
-    RETURN;
-  END IF;
-
-  -- 2. 页面菜单
-  SELECT menu_id INTO v_page
-    FROM sys_menu
-   WHERE component = 'subSystem/gas/gasBasicadata/gasPipePoint'
-   LIMIT 1;
-
-  IF v_page IS NULL THEN
-    SELECT COALESCE(MAX(menu_id), 0) + 1 INTO v_page FROM sys_menu;
-    INSERT INTO sys_menu (menu_id, menu_name, parent_id, order_num, path, component, query,
-                          is_frame, is_cache, menu_type, visible, status, perms, icon,
-                          create_by, create_time, remark)
-    VALUES (v_page, '管点台账', v_parent, 3, 'gasPipePoint',
-            'subSystem/gas/gasBasicadata/gasPipePoint', NULL,
-            1, 0, 'C', '0', '0', '', 'list',
-            'admin', CURRENT_TIMESTAMP, '燃气管点台账');
-    RAISE NOTICE '已新增菜单,menu_id=%', v_page;
-  ELSE
-    UPDATE sys_menu
-       SET menu_name = '管点台账',
-           parent_id = v_parent,
-           path      = 'gasPipePoint',
-           visible   = '0',
-           status    = '0'
-     WHERE menu_id = v_page;
-    RAISE NOTICE '菜单已存在,已更新,menu_id=%', v_page;
-  END IF;
-
-  -- 3. 跟随既有授权:原本能进父级目录的角色,一并授予该页面
-  FOR v_role IN SELECT role_id FROM sys_role_menu WHERE menu_id = v_parent LOOP
-    IF NOT EXISTS (SELECT 1 FROM sys_role_menu WHERE role_id = v_role.role_id AND menu_id = v_page) THEN
-      INSERT INTO sys_role_menu (role_id, menu_id) VALUES (v_role.role_id, v_page);
-    END IF;
-  END LOOP;
-END $$;
-
-COMMIT;

+ 1 - 1
pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/cockpit/CockpitDeviceFacilityRelationController.java

@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
  * 设备 → 设施真实关联(免鉴权只读,`/api/cockpit/v1/**` GET 已由 SecurityConfig 放行)。
  *
  * <p>存在意义:前端「地下管线详情视图」此前拿不到真实设施关系,只能把设备按同业邻近摆成「示意安装」。
- * 本端点把 {@code manhole_device_rel} / {@code gas_pipe_point_device_rel} 的真实主键关系如实吐出,
+ * 本端点把 {@code manhole_device_rel} 的真实主键关系如实吐出,
  * 让前端按主键把设备挂到管段上;查不到就是空数组,前端继续降级,绝不在这里补关系。
  *
  * <p>只读:纯查询,无写库、无事务注解。

+ 0 - 64
pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasEquipmentController.java

@@ -1,64 +0,0 @@
-package com.zksy.web.controller.gasbasic;
-
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.zksy.base.domain.EquipmentStatus;
-import com.zksy.base.domain.GasPipePointDeviceRel;
-import com.zksy.base.mapper.EquipmentStatusMapper;
-import com.zksy.base.mapper.GasPipePointDeviceRelMapper;
-import com.zksy.common.annotation.Anonymous;
-import com.zksy.common.core.domain.AjaxResult;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.List;
-
-/**
- * 燃气监测设备运行状态与管点关联查询。
- * 设备台账的新增/修改/删除已统一收口至 EquipmentBaseController(/equipment-base)。
- */
-@Slf4j
-@RestController
-@RequestMapping("/api/equipment")
-@Api(tags = "燃气监测设备管理")
-public class GasEquipmentController {
-
-    @Autowired
-    private GasPipePointDeviceRelMapper gasPipePointDeviceRelMapper;
-
-    @Autowired
-    private EquipmentStatusMapper equipmentStatusMapper;
-
-    @GetMapping("/status/{equipmentId}")
-    @ApiOperation("获取设备实时运行状态")
-    @Anonymous
-    public AjaxResult getEquipmentStatus(@PathVariable String equipmentId) {
-        LambdaQueryWrapper<EquipmentStatus> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(EquipmentStatus::getEquipmentId, equipmentId);
-        EquipmentStatus status = equipmentStatusMapper.selectOne(wrapper);
-        return status != null ? AjaxResult.success(status) : AjaxResult.error("设备状态信息不存在");
-    }
-
-    @GetMapping("/abnormal")
-    @ApiOperation("异常设备列表(关联报警统计)")
-    @Anonymous
-    public AjaxResult getAbnormalList() {
-        LambdaQueryWrapper<EquipmentStatus> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(EquipmentStatus::getAlarmStatus, 1);
-        List<EquipmentStatus> list = equipmentStatusMapper.selectList(wrapper);
-        return AjaxResult.success(list);
-    }
-
-    @PostMapping("/device-rel/save")
-    @ApiOperation("更新设备管点关联(删旧插新)")
-    @Anonymous
-    public AjaxResult saveDeviceRel(@RequestBody GasPipePointDeviceRel rel) {
-        LambdaQueryWrapper<GasPipePointDeviceRel> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(GasPipePointDeviceRel::getEquipmentId, rel.getEquipmentId());
-        gasPipePointDeviceRelMapper.delete(wrapper);
-        gasPipePointDeviceRelMapper.insert(rel);
-        return AjaxResult.success("关联成功");
-    }
-}

+ 0 - 129
pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasManholeController.java

@@ -1,129 +0,0 @@
-package com.zksy.web.controller.gasbasic;
-
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.zksy.base.domain.ManholeBase;
-import com.zksy.base.domain.ManholeDeviceRel;
-import com.zksy.base.dto.ManholePageInDTO;
-import com.zksy.base.mapper.ManholeDeviceRelMapper;
-import com.zksy.base.service.ManholeBaseService;
-import com.zksy.common.annotation.Anonymous;
-import com.zksy.common.annotation.Log;
-import com.zksy.common.core.domain.AjaxResult;
-import com.zksy.common.enums.BusinessType;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.List;
-
-@Slf4j
-@RestController
-@RequestMapping("/api/manhole")
-@Api(tags = "窨井管理")
-public class GasManholeController {
-
-    @Autowired
-    private ManholeBaseService service;
-
-    @Autowired
-    private ManholeDeviceRelMapper deviceRelMapper;
-
-    @GetMapping("/findByPage")
-    @ApiOperation("窨井分页查询")
-    @Anonymous
-    public AjaxResult findByPage(ManholePageInDTO dto) {
-        Page<ManholeBase> page = service.findByPage(dto);
-        return AjaxResult.success(page);
-    }
-
-    @GetMapping("/getById/{id}")
-    @ApiOperation("根据ID查询窨井")
-    @Anonymous
-    public AjaxResult getById(@PathVariable String id) {
-        ManholeBase entity = service.getById(id);
-        return entity != null ? AjaxResult.success(entity) : AjaxResult.error("窨井信息不存在");
-    }
-
-    @GetMapping("/options")
-    @ApiOperation("窨井下拉选项")
-    @Anonymous
-    public AjaxResult options() {
-        return AjaxResult.success(service.getOptions());
-    }
-
-    @GetMapping("/list")
-    @ApiOperation("窨井列表(全量,用于地图展示)")
-    @Anonymous
-    public AjaxResult list() {
-        return AjaxResult.success(service.list());
-    }
-
-    @PostMapping("/save")
-    @ApiOperation("新增窨井")
-    @Log(title = "新增窨井信息", businessType = BusinessType.INSERT)
-    public AjaxResult save(@RequestBody ManholeBase entity) {
-        boolean saved = service.saveWithCheck(entity);
-        return saved ? AjaxResult.success("新增成功", saved) : AjaxResult.error("新增失败");
-    }
-
-    @PutMapping("/updateById")
-    @ApiOperation("修改窨井")
-    @Log(title = "修改窨井信息", businessType = BusinessType.UPDATE)
-    public AjaxResult updateById(@RequestBody ManholeBase entity) {
-        boolean updated = service.updateWithCheck(entity);
-        return updated ? AjaxResult.success("修改成功", updated) : AjaxResult.error("修改失败");
-    }
-
-    @DeleteMapping("/deleteById")
-    @ApiOperation("删除窨井")
-    @Log(title = "删除窨井信息", businessType = BusinessType.DELETE)
-    public AjaxResult deleteById(@RequestParam String id) {
-        boolean deleted = service.removeById(id);
-        return deleted ? AjaxResult.success("删除成功") : AjaxResult.error("删除失败");
-    }
-
-    // ============ 窨井-设备关联 ============
-
-    @GetMapping("/device/list/{manholeId}")
-    @ApiOperation("获取窨井关联的设备列表")
-    @Anonymous
-    public AjaxResult listDevices(@PathVariable String manholeId) {
-        LambdaQueryWrapper<ManholeDeviceRel> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(ManholeDeviceRel::getManholeId, manholeId);
-        wrapper.orderByDesc(ManholeDeviceRel::getCreateTime);
-        List<ManholeDeviceRel> list = deviceRelMapper.selectList(wrapper);
-        return AjaxResult.success(list);
-    }
-
-    @PostMapping("/device/save")
-    @ApiOperation("关联设备到窨井")
-    @Anonymous
-    public AjaxResult saveDeviceRel(@RequestBody ManholeDeviceRel rel) {
-        boolean saved = deviceRelMapper.insert(rel) > 0;
-        return saved ? AjaxResult.success("关联成功") : AjaxResult.error("关联失败");
-    }
-
-    @PostMapping("/device/save-batch")
-    @ApiOperation("批量关联设备到窨井")
-    @Anonymous
-    public AjaxResult saveDeviceRelBatch(@RequestBody List<ManholeDeviceRel> relList) {
-        if (relList == null || relList.isEmpty()) {
-            return AjaxResult.error("关联列表不能为空");
-        }
-        for (ManholeDeviceRel rel : relList) {
-            deviceRelMapper.insert(rel);
-        }
-        return AjaxResult.success("批量关联成功");
-    }
-
-    @DeleteMapping("/device/delete")
-    @ApiOperation("删除窨井设备关联")
-    @Anonymous
-    public AjaxResult deleteDeviceRel(@RequestParam Long relId) {
-        boolean deleted = deviceRelMapper.deleteById(relId) > 0;
-        return deleted ? AjaxResult.success("删除成功") : AjaxResult.error("删除失败");
-    }
-}

+ 0 - 179
pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasPipePointController.java

@@ -1,179 +0,0 @@
-package com.zksy.web.controller.gasbasic;
-
-import cn.hutool.core.collection.CollUtil;
-import cn.hutool.core.util.StrUtil;
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.zksy.base.domain.EquipmentBase;
-import com.zksy.base.domain.EquipmentType;
-import com.zksy.base.domain.GasPipePoint;
-import com.zksy.base.domain.GasPipePointDeviceRel;
-import com.zksy.base.dto.GasPipePointPageInDTO;
-import com.zksy.base.mapper.EquipmentBaseMapper;
-import com.zksy.base.mapper.EquipmentTypeMapper;
-import com.zksy.base.mapper.GasPipePointDeviceRelMapper;
-import com.zksy.base.service.GasPipePointService;
-import com.zksy.common.annotation.Anonymous;
-import com.zksy.common.annotation.Log;
-import com.zksy.common.core.domain.AjaxResult;
-import com.zksy.common.enums.BusinessType;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-import java.util.stream.Collectors;
-
-@Slf4j
-@RestController
-@RequestMapping("/api/gas-pipe-point")
-@Api(tags = "燃气管点管理")
-public class GasPipePointController {
-
-    @Autowired
-    private GasPipePointService service;
-
-    @Autowired
-    private GasPipePointDeviceRelMapper deviceRelMapper;
-
-    @Autowired
-    private EquipmentBaseMapper equipmentBaseMapper;
-
-    @Autowired
-    private EquipmentTypeMapper equipmentTypeMapper;
-
-    @GetMapping("/findByPage")
-    @ApiOperation("管点分页查询")
-    @Anonymous
-    public AjaxResult findByPage(GasPipePointPageInDTO dto) {
-        Page<GasPipePoint> page = service.queryByPage(dto);
-        return AjaxResult.success(page);
-    }
-
-    @GetMapping("/getById/{id}")
-    @ApiOperation("根据ID查询管点")
-    @Anonymous
-    public AjaxResult getById(@PathVariable Long id) {
-        GasPipePoint entity = service.getById(id);
-        return entity != null ? AjaxResult.success(entity) : AjaxResult.error("管点信息不存在");
-    }
-
-    @GetMapping("/list-by-network/{networkId}")
-    @ApiOperation("按管线ID查询管点列表")
-    @Anonymous
-    public AjaxResult listByNetworkId(@PathVariable String networkId) {
-        return AjaxResult.success(service.listByNetworkId(networkId));
-    }
-
-    @GetMapping("/options")
-    @ApiOperation("管点下拉选项")
-    @Anonymous
-    public AjaxResult options() {
-        return AjaxResult.success(service.getOptions());
-    }
-
-    @PostMapping("/save")
-    @ApiOperation("新增管点")
-    @Log(title = "新增燃气管点", businessType = BusinessType.INSERT)
-    public AjaxResult save(@RequestBody GasPipePoint entity) {
-        boolean saved = service.saveWithCheck(entity);
-        return saved ? AjaxResult.success("新增成功", saved) : AjaxResult.error("新增失败");
-    }
-
-    @PutMapping("/updateById")
-    @ApiOperation("修改管点")
-    @Log(title = "修改燃气管点", businessType = BusinessType.UPDATE)
-    public AjaxResult updateById(@RequestBody GasPipePoint entity) {
-        boolean updated = service.updateWithCheck(entity);
-        return updated ? AjaxResult.success("修改成功", updated) : AjaxResult.error("修改失败");
-    }
-
-    @DeleteMapping("/deleteById")
-    @ApiOperation("删除管点")
-    @Log(title = "删除燃气管点", businessType = BusinessType.DELETE)
-    public AjaxResult deleteById(@RequestParam Long id) {
-        boolean deleted = service.removeWithCheck(id);
-        return deleted ? AjaxResult.success("删除成功") : AjaxResult.error("删除失败");
-    }
-
-    // ============ 管点-设备关联 ============
-
-    @GetMapping("/device/list/{pointId}")
-    @ApiOperation("获取管点关联的设备列表")
-    @Anonymous
-    public AjaxResult listDevices(@PathVariable Long pointId) {
-        LambdaQueryWrapper<GasPipePointDeviceRel> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(GasPipePointDeviceRel::getPointId, pointId);
-        wrapper.orderByDesc(GasPipePointDeviceRel::getCreateTime);
-        List<GasPipePointDeviceRel> list = deviceRelMapper.selectList(wrapper);
-
-        List<String> needFillIds = list.stream()
-                .filter(r -> StrUtil.isBlank(r.getEquipmentName()) || StrUtil.isBlank(r.getEquipmentType()))
-                .map(GasPipePointDeviceRel::getEquipmentId)
-                .collect(Collectors.toList());
-
-        if (CollUtil.isNotEmpty(needFillIds)) {
-            List<EquipmentBase> equipList = equipmentBaseMapper.selectBatchIds(needFillIds);
-            Map<String, EquipmentBase> equipMap = equipList.stream()
-                    .collect(Collectors.toMap(EquipmentBase::getEquipmentId, e -> e, (a, b) -> a));
-
-            List<Integer> typeIds = equipList.stream()
-                    .map(EquipmentBase::getEquipmentTypeId)
-                    .filter(Objects::nonNull)
-                    .distinct()
-                    .collect(Collectors.toList());
-            Map<Integer, String> typeNameMap = CollUtil.isEmpty(typeIds) ? Map.of() :
-                    equipmentTypeMapper.selectBatchIds(typeIds).stream()
-                            .collect(Collectors.toMap(EquipmentType::getId, EquipmentType::getTypeName, (a, b) -> a));
-
-            for (GasPipePointDeviceRel rel : list) {
-                if (StrUtil.isBlank(rel.getEquipmentName()) || StrUtil.isBlank(rel.getEquipmentType())) {
-                    EquipmentBase equip = equipMap.get(rel.getEquipmentId());
-                    if (equip != null) {
-                        if (StrUtil.isBlank(rel.getEquipmentName())) {
-                            rel.setEquipmentName(equip.getEquipmentName());
-                        }
-                        if (StrUtil.isBlank(rel.getEquipmentType())) {
-                            rel.setEquipmentType(typeNameMap.get(equip.getEquipmentTypeId()));
-                        }
-                    }
-                }
-            }
-        }
-
-        return AjaxResult.success(list);
-    }
-
-    @PostMapping("/device/save")
-    @ApiOperation("关联设备到管点")
-    @Anonymous
-    public AjaxResult saveDeviceRel(@RequestBody GasPipePointDeviceRel rel) {
-        boolean saved = deviceRelMapper.insert(rel) > 0;
-        return saved ? AjaxResult.success("关联成功") : AjaxResult.error("关联失败");
-    }
-
-    @PostMapping("/device/save-batch")
-    @ApiOperation("批量关联设备到管点")
-    @Anonymous
-    public AjaxResult saveDeviceRelBatch(@RequestBody List<GasPipePointDeviceRel> relList) {
-        if (relList == null || relList.isEmpty()) {
-            return AjaxResult.error("关联列表不能为空");
-        }
-        for (GasPipePointDeviceRel rel : relList) {
-            deviceRelMapper.insert(rel);
-        }
-        return AjaxResult.success("批量关联成功");
-    }
-
-    @DeleteMapping("/device/delete")
-    @ApiOperation("删除管点设备关联")
-    @Anonymous
-    public AjaxResult deleteDeviceRel(@RequestParam Long relId) {
-        boolean deleted = deviceRelMapper.deleteById(relId) > 0;
-        return deleted ? AjaxResult.success("删除成功") : AjaxResult.error("删除失败");
-    }
-}

+ 0 - 210
pipe-network-service/zksy-admin/src/main/java/com/zksy/web/controller/gasbasic/GasRepairRecordController.java

@@ -1,210 +0,0 @@
-package com.zksy.web.controller.gasbasic;
-
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.zksy.base.domain.PipeNetworkBase;
-import com.zksy.base.domain.PipeRepairRecord;
-import com.zksy.base.dto.RepairRecordPageInDTO;
-import com.zksy.base.service.PipeRepairRecordService;
-import com.zksy.common.annotation.Anonymous;
-import com.zksy.common.annotation.Log;
-import com.zksy.common.core.domain.AjaxResult;
-import com.zksy.common.enums.BusinessType;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-@Slf4j
-@RestController
-@RequestMapping("/api/repair-record")
-@Api(tags = "燃气管网维修记录")
-public class GasRepairRecordController {
-
-    /**
-     * 健康等级分界:累计维修达到该次数即计入重点管段
-     */
-    private static final int HEALTH_HIGH_RISK_TIMES = 4;
-
-    @Autowired
-    private PipeRepairRecordService service;
-
-    @Autowired
-    private com.zksy.base.mapper.PipeNetworkBaseMapper pipeNetworkBaseMapper;
-
-    @GetMapping("/stats")
-    @ApiOperation("维修统计+趋势")
-    @Anonymous
-    public AjaxResult stats() {
-        java.util.List<com.zksy.base.domain.PipeRepairRecord> all = service.list();
-        java.util.Map<String, Object> result = new java.util.LinkedHashMap<>();
-
-        // 维修统计 (按类型)
-        String[] typeNames = {"抢修","计划维修","防腐层修复","管件更换","焊缝修补","阀门维修"};
-        String[] colors = {"#e63946","#457b9d","#f77f00","#2a9d8f","#6c757d","#b08968"};
-        java.util.List<java.util.Map<String, Object>> typeStats = new java.util.ArrayList<>();
-        for (int i = 0; i < typeNames.length; i++) {
-            int idx = i + 1;
-            long cnt = all.stream().filter(r -> r.getRepairType() != null && String.valueOf(idx).equals(r.getRepairType())).count();
-            java.util.Map<String, Object> m = new java.util.LinkedHashMap<>();
-            m.put("name", typeNames[i]); m.put("value", cnt); m.put("color", colors[i]);
-            typeStats.add(m);
-        }
-        result.put("typeStats", typeStats);
-
-        // 维修趋势 (近6月, 按压力等级)
-        java.time.LocalDate today = java.time.LocalDate.now();
-        String[] months = new String[6];
-        int[] highData = new int[6], mediumData = new int[6], lowData = new int[6];
-        for (int i = 0; i < 6; i++) {
-            java.time.LocalDate m = today.minusMonths(5 - i);
-            months[i] = m.getMonthValue() + "月";
-        }
-        java.util.Map<String, String> levelMap = new java.util.LinkedHashMap<>();
-        // 燃气模块:仅查询 network_type=0 的燃气设施
-        pipeNetworkBaseMapper.selectList(new LambdaQueryWrapper<PipeNetworkBase>()
-                        .eq(PipeNetworkBase::getNetworkType, PipeNetworkBase.NETWORK_TYPE_GAS))
-                .forEach(n -> levelMap.put(n.getNetworkId(), n.getNetworkLevel()));
-        for (com.zksy.base.domain.PipeRepairRecord r : all) {
-            if (r.getRepairDate() == null) continue;
-            int mDiff = (today.getYear() - r.getRepairDate().getYear()) * 12 + today.getMonthValue() - r.getRepairDate().getMonthValue();
-            int idx = 5 - mDiff;
-            if (idx < 0 || idx >= 6) continue;
-            // network_level 存的是字典 pipe_network_level 的编码:0-高压、1-次高压、2-中压、3-低压
-            // 图表只画三档,次高压并入中压;兼容历史数据里直接存 high/low 的写法
-            String lv = levelMap.get(r.getNetworkId());
-            if ("0".equals(lv) || "high".equals(lv)) {
-                highData[idx]++;
-            } else if ("3".equals(lv) || "low".equals(lv)) {
-                lowData[idx]++;
-            } else {
-                mediumData[idx]++;
-            }
-        }
-        java.util.Map<String, Object> trend = new java.util.LinkedHashMap<>();
-        trend.put("months", months); trend.put("high", highData);
-        trend.put("medium", mediumData); trend.put("low", lowData);
-        result.put("trend", trend);
-
-        // 按管网聚合,供维修记录拓扑图做健康状态分级
-        result.put("networkSummary", buildNetworkSummary(all));
-
-        return AjaxResult.success(result);
-    }
-
-    /**
-     * 按管网聚合维修情况
-     *
-     * 返回累计维修次数、最近维修日期与最近维修类型,以及重点管段与近 30 天维修的汇总值。
-     */
-    private Map<String, Object> buildNetworkSummary(List<PipeRepairRecord> all) {
-        LocalDate today = LocalDate.now();
-        LocalDate thirtyDaysAgo = today.minusDays(30);
-
-        Map<String, Integer> countMap = new HashMap<>();
-        Map<String, LocalDate> lastDateMap = new HashMap<>();
-        Map<String, String> lastTypeMap = new HashMap<>();
-        int last30Days = 0;
-
-        for (PipeRepairRecord record : all) {
-            String networkId = record.getNetworkId();
-            if (networkId == null || networkId.isEmpty()) {
-                continue;
-            }
-            countMap.merge(networkId, 1, Integer::sum);
-            LocalDate repairDate = record.getRepairDate();
-            if (repairDate == null) {
-                continue;
-            }
-            LocalDate lastDate = lastDateMap.get(networkId);
-            if (lastDate == null || repairDate.isAfter(lastDate)) {
-                lastDateMap.put(networkId, repairDate);
-                lastTypeMap.put(networkId, record.getRepairType());
-            }
-            if (!repairDate.isBefore(thirtyDaysAgo)) {
-                last30Days++;
-            }
-        }
-
-        int highRiskNetworks = 0;
-        List<Map<String, Object>> items = new ArrayList<>(countMap.size());
-        for (Map.Entry<String, Integer> entry : countMap.entrySet()) {
-            int repairCount = entry.getValue();
-            if (repairCount >= HEALTH_HIGH_RISK_TIMES) {
-                highRiskNetworks++;
-            }
-            Map<String, Object> item = new LinkedHashMap<>();
-            item.put("networkId", entry.getKey());
-            item.put("repairCount", repairCount);
-            LocalDate lastDate = lastDateMap.get(entry.getKey());
-            item.put("lastRepairDate", lastDate == null ? null : lastDate.toString());
-            item.put("lastRepairType", lastTypeMap.get(entry.getKey()));
-            items.add(item);
-        }
-
-        Map<String, Object> result = new LinkedHashMap<>();
-        result.put("totalRepairs", all.size());
-        result.put("repairedNetworks", countMap.size());
-        result.put("highRiskNetworks", highRiskNetworks);
-        result.put("last30DaysRepairs", last30Days);
-        result.put("items", items);
-        return result;
-    }
-
-    @GetMapping("/findByPage")
-    @ApiOperation("维修记录分页查询")
-    @Anonymous
-    public AjaxResult findByPage(RepairRecordPageInDTO dto) {
-        Page<PipeRepairRecord> page = service.findByPage(dto);
-        return AjaxResult.success(page);
-    }
-
-    @GetMapping("/getById/{id}")
-    @ApiOperation("根据ID查询维修记录")
-    @Anonymous
-    public AjaxResult getById(@PathVariable String id) {
-        PipeRepairRecord entity = service.getById(id);
-        return entity != null ? AjaxResult.success(entity) : AjaxResult.error("维修记录不存在");
-    }
-
-    @GetMapping("/list-by-network/{networkId}")
-    @ApiOperation("按管网ID查询历史维修记录")
-    @Anonymous
-    public AjaxResult listByNetworkId(@PathVariable String networkId) {
-        return AjaxResult.success(service.listByNetworkId(networkId));
-    }
-
-    @PostMapping("/save")
-    @ApiOperation("新增维修记录")
-    @Log(title = "新增维修记录", businessType = BusinessType.INSERT)
-    public AjaxResult save(@RequestBody PipeRepairRecord entity) {
-        entity.setCreateTime(LocalDateTime.now());
-        boolean saved = service.save(entity);
-        return saved ? AjaxResult.success("新增成功", saved) : AjaxResult.error("新增失败");
-    }
-
-    @PutMapping("/updateById")
-    @ApiOperation("修改维修记录")
-    @Log(title = "修改维修记录", businessType = BusinessType.UPDATE)
-    public AjaxResult updateById(@RequestBody PipeRepairRecord entity) {
-        boolean updated = service.updateById(entity);
-        return updated ? AjaxResult.success("修改成功", updated) : AjaxResult.error("修改失败");
-    }
-
-    @DeleteMapping("/deleteById")
-    @ApiOperation("删除维修记录")
-    @Log(title = "删除维修记录", businessType = BusinessType.DELETE)
-    public AjaxResult deleteById(@RequestParam String id) {
-        boolean deleted = service.removeById(id);
-        return deleted ? AjaxResult.success("删除成功") : AjaxResult.error("删除失败");
-    }
-}

+ 0 - 3
pipe-network-service/zksy-admin/src/test/java/com/zksy/web/controller/cockpit/CockpitDeviceFacilityRelationContractTest.java

@@ -81,9 +81,6 @@ class CockpitDeviceFacilityRelationContractTest {
                 .andExpect(jsonPath("$.data.relations[1].deviceId").value("EQ-UNKNOWN"))
                 .andExpect(jsonPath("$.data.relations[1].deviceCode").value(nullValue()))
                 .andExpect(jsonPath("$.data.statistics.manholeRelationRows").value(3))
-                // 燃气管点来源已移除:这两个计数恒为 0(字段保留以不断开既有契约)
-                .andExpect(jsonPath("$.data.statistics.gasPipePointRelationRows").value(0))
-                .andExpect(jsonPath("$.data.statistics.skippedGasPipeNetworkMissing").value(0))
                 .andExpect(jsonPath("$.data.statistics.returnedRelationCount").value(2))
                 .andExpect(jsonPath("$.data.statistics.skippedManholeFacilityMissing").value(1))
                 .andExpect(jsonPath("$.data.statistics.skippedDeviceIdMissing").value(0))

+ 3 - 3
pipe-network-service/zksy-admin/src/test/java/com/zksy/web/controller/cockpit/CockpitFacilityGeometryControllerTest.java

@@ -63,12 +63,12 @@ class CockpitFacilityGeometryControllerTest {
 
     @Test
     void invalidGeometryIsExplicitJsonNullWithRawCoordinatesAndSameValidationShape() throws Exception {
-        Properties properties = new Properties("gas_pipe_point", "1", "G1", "阀门", "GAS", "GAS_PIPE_POINT",
+        Properties properties = new Properties("manhole_base", "1", "G1", "阀门", "GAS", "MANHOLE",
                 null, null, "阀门", null, null, null, Collections.singletonList(Arrays.asList(null, new BigDecimal("28.4"))),
                 CockpitCoordinateValidator.validate(null, new BigDecimal("28.4"), true),
                 Collections.singletonList(CockpitCoordinateValidator.validate(null, new BigDecimal("28.4"), true)));
         when(service.load()).thenReturn(new CockpitFacilityGeometryResponse("2026-10-12T10:00:00+08:00",
-                Collections.singletonList(new Feature("gas_pipe_point:1", null, properties)), Collections.emptyList()));
+                Collections.singletonList(new Feature("manhole_base:1", null, properties)), Collections.emptyList()));
         mvc.perform(get(URL))
                 .andExpect(status().isOk())
                 .andExpect(jsonPath("$.data.features[0].type").value("Feature"))
@@ -107,7 +107,7 @@ class CockpitFacilityGeometryControllerTest {
         line.setStartLatitude(new BigDecimal("28.420"));
         line.setEndLongitude(new BigDecimal("110.420"));
         line.setEndLatitude(new BigDecimal("28.460"));
-        // 点要素样例改用窨井:燃气管点来源已移除,它才是现在唯一的点来源。
+        // 点要素样例使用窨井:它是现在唯一的点来源。
         com.zksy.base.domain.ManholeBase well = new com.zksy.base.domain.ManholeBase();
         well.setManholeId("well-1");
         well.setManholeCode("MH-001");

+ 4 - 4
pipe-network-service/zksy-admin/src/test/java/com/zksy/web/controller/cockpit/CockpitFacilityGeometryServiceTest.java

@@ -54,7 +54,7 @@ class CockpitFacilityGeometryServiceTest {
         CockpitFacilityGeometryResponse response = service.load();
         assertEquals("FeatureCollection", response.getType());
         assertEquals("2026-10-12T10:00:00+08:00", response.getGeneratedAt());
-        // 4 条管网线 + 1 个窨井点(燃气管点来源已移除,不再有第 6 个要素)
+        // 4 条管网线 + 1 个窨井点
         assertEquals(5, response.getFeatures().size());
         assertEquals(5, response.getFeatures().stream().map(Feature::getId).distinct().count());
         assertEquals(Arrays.asList("GAS", "WATER_SUPPLY", "DRAINAGE", "UNKNOWN", "MANHOLE"),
@@ -66,7 +66,7 @@ class CockpitFacilityGeometryServiceTest {
         assertEquals("GAS_PIPE", gas.getProperties().getTypeCode());
         assertEquals("PIPE_UNCLASSIFIED", response.getFeatures().get(3).getProperties().getTypeCode());
         assertEquals("3", response.getFeatures().get(3).getProperties().getNetworkType());
-        // 燃气管点已移除:GAS 的点要素覆盖必须如实标为 UNAVAILABLE(不冒充"这里没有管线")
+        // GAS 的点要素覆盖必须如实标为 UNAVAILABLE(不冒充"这里没有管线")
         assertEquals("UNAVAILABLE", coverage(response, "GAS", "Point").getState());
         assertEquals(1, coverage(response, "UNKNOWN", "LineString").getRecordCount());
         verify(networks).list();
@@ -95,7 +95,7 @@ class CockpitFacilityGeometryServiceTest {
         assertTrue(json.get("features").get(1).get("properties").has("diameter"));
         assertTrue(json.get("features").get(1).get("properties").get("diameter").isNull());
         assertEquals(0, json.get("features").get(2).get("properties").get("diameter").asInt());
-        // 窨井没有管径语义 → 如实为 null(曾经的管点直径来源已移除)
+        // 窨井没有管径语义 → 如实为 null
         assertTrue(json.get("features").get(3).get("properties").get("diameter").isNull());
         assertEquals(new BigDecimal("400.50"), known.getDiameter());
         assertNull(missing.getDiameter());
@@ -146,7 +146,7 @@ class CockpitFacilityGeometryServiceTest {
     }
 
     /**
-     * 燃气管点来源移除后,GAS 的**点**要素不再产出任何构件(维护者 2026-11-16)。
+     * GAS 的**点**要素不再产出任何构件。
      *
      * <p>原用例逐个校验 阀门/调压/三通… 等 pointType 原样透传;来源删掉后这些断言
      * 已无生产对象可测。保留的契约是:不产要素、且覆盖统计如实说「没有这个来源」。</p>

+ 0 - 89
pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/GasPipePoint.java

@@ -1,89 +0,0 @@
-package com.zksy.base.domain;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableLogic;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.math.BigDecimal;
-import java.time.LocalDateTime;
-
-/**
- * 燃气管点信息表
- */
-@Data
-@AllArgsConstructor
-@NoArgsConstructor
-@TableName(value = "gas_pipe_point", schema = "app_user")
-public class GasPipePoint {
-
-    @TableId(value = "point_id", type = IdType.AUTO)
-    @ApiModelProperty("管点ID")
-    private Long pointId;
-
-    @ApiModelProperty("管点编码")
-    private String pointCode;
-
-    @ApiModelProperty("管点名称")
-    private String pointName;
-
-    @ApiModelProperty("所属管线ID")
-    private String networkId;
-
-    @ApiModelProperty("所属管线名称")
-    private String networkName;
-
-    @ApiModelProperty("管点类型(阀门/调压/计量/阴极保护/弯头/三通/其它)")
-    private String pointType;
-
-    @ApiModelProperty("经度")
-    private BigDecimal longitude;
-
-    @ApiModelProperty("纬度")
-    private BigDecimal latitude;
-
-    @ApiModelProperty("地址/位置描述")
-    private String address;
-
-    @ApiModelProperty("管径(毫米)")
-    private BigDecimal diameter;
-
-    @ApiModelProperty("材质")
-    private String material;
-
-    @ApiModelProperty("埋深(米)")
-    private BigDecimal depth;
-
-    @ApiModelProperty("建设日期")
-    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
-    private String buildDate;
-
-    @ApiModelProperty("状态(0-正常 1-异常 2-停用)")
-    private String status;
-
-    @ApiModelProperty("备注")
-    private String remark;
-
-    @ApiModelProperty("创建人")
-    private String createBy;
-
-    @ApiModelProperty("创建时间")
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
-    private LocalDateTime createTime;
-
-    @ApiModelProperty("更新人")
-    private String updateBy;
-
-    @ApiModelProperty("更新时间")
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
-    private LocalDateTime updateTime;
-
-    @TableLogic(value = "0", delval = "2")
-    @ApiModelProperty("删除标志(0=正常 2=删除)")
-    private String delFlag;
-}

+ 0 - 47
pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/GasPipePointDeviceRel.java

@@ -1,47 +0,0 @@
-package com.zksy.base.domain;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableLogic;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.time.LocalDateTime;
-
-/**
- * 管点-设备关联表
- */
-@Data
-@AllArgsConstructor
-@NoArgsConstructor
-@TableName(value = "gas_pipe_point_device_rel", schema = "app_user")
-public class GasPipePointDeviceRel {
-
-    @TableId(value = "rel_id", type = IdType.AUTO)
-    @ApiModelProperty("关联ID")
-    private Long relId;
-
-    @ApiModelProperty("管点ID")
-    private Long pointId;
-
-    @ApiModelProperty("设备ID")
-    private String equipmentId;
-
-    @ApiModelProperty("设备名称(冗余字段,便于列表展示)")
-    private String equipmentName;
-
-    @ApiModelProperty("设备类型(冗余字段)")
-    private String equipmentType;
-
-    @ApiModelProperty("创建时间")
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
-    private LocalDateTime createTime;
-
-    @TableLogic(value = "0", delval = "2")
-    @ApiModelProperty("删除标志(0=正常 2=删除)")
-    private String delFlag;
-}

+ 0 - 65
pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/PipeRepairRecord.java

@@ -1,65 +0,0 @@
-package com.zksy.base.domain;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableLogic;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.math.BigDecimal;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-
-/**
- * 燃气管网维修记录表
- */
-@Data
-@AllArgsConstructor
-@NoArgsConstructor
-@TableName(value = "pipe_repair_record", schema = "app_user")
-public class PipeRepairRecord {
-
-    @TableId(value = "repair_id", type = IdType.ASSIGN_UUID)
-    @ApiModelProperty("维修记录ID")
-    private String repairId;
-
-    @ApiModelProperty("关联管网设施ID")
-    private String networkId;
-
-    @ApiModelProperty("维修日期")
-    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
-    private LocalDate repairDate;
-
-    @ApiModelProperty("维修类型")
-    private String repairType;
-
-    @ApiModelProperty("维修内容")
-    private String repairContent;
-
-    @ApiModelProperty("维修单位")
-    private String repairCompany;
-
-    @ApiModelProperty("维修费用(元)")
-    private BigDecimal repairCost;
-
-    @ApiModelProperty("维修负责人")
-    private String repairPerson;
-
-    @ApiModelProperty("备注")
-    private String remark;
-
-    @ApiModelProperty("维修图片URL(多图逗号分隔)")
-    private String repairImages;
-
-    @ApiModelProperty("创建时间")
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
-    private LocalDateTime createTime;
-
-    @TableLogic(value = "0", delval = "2")
-    @ApiModelProperty("删除标志(0=正常 2=删除)")
-    private String delFlag;
-}

+ 1 - 17
pipe-network-service/zksy-system/src/main/java/com/zksy/base/domain/vo/EquipmentFullVO.java

@@ -9,7 +9,7 @@ import java.time.LocalDateTime;
 import java.util.Date;
 
 /**
- * 设备全信息VO — 联查管线→管点→设备→状态
+ * 设备全信息VO — 联查管线→设备→状态
  */
 @Data
 public class EquipmentFullVO {
@@ -94,22 +94,6 @@ public class EquipmentFullVO {
     @ApiModelProperty("在线状态:0-离线,1-在线")
     private Integer onlineStatus;
 
-    // ===== gas_pipe_point =====
-    @ApiModelProperty("管点ID")
-    private Long pointId;
-
-    @ApiModelProperty("管点编码")
-    private String pointCode;
-
-    @ApiModelProperty("管点名称")
-    private String pointName;
-
-    @ApiModelProperty("管点类型")
-    private String pointType;
-
-    @ApiModelProperty("管点地址")
-    private String pointAddress;
-
     // ===== pipe_network_base =====
     @ApiModelProperty("管线ID")
     private String networkId;

+ 0 - 34
pipe-network-service/zksy-system/src/main/java/com/zksy/base/dto/GasPipePointPageInDTO.java

@@ -1,34 +0,0 @@
-package com.zksy.base.dto;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.io.Serializable;
-
-@Data
-@ApiModel(value = "管点分页查询入参", description = "管点分页查询入参")
-public class GasPipePointPageInDTO implements Serializable {
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "管点名称")
-    private String pointName;
-
-    @ApiModelProperty(value = "管点编码")
-    private String pointCode;
-
-    @ApiModelProperty(value = "所属管线ID")
-    private String networkId;
-
-    @ApiModelProperty(value = "管点类型")
-    private String pointType;
-
-    @ApiModelProperty(value = "状态")
-    private String status;
-
-    @ApiModelProperty(value = "当前记录起始索引", required = true)
-    private Long pageNum;
-
-    @ApiModelProperty(value = "每页显示记录数", required = true)
-    private Long pageSize;
-}

+ 0 - 25
pipe-network-service/zksy-system/src/main/java/com/zksy/base/dto/RepairRecordPageInDTO.java

@@ -1,25 +0,0 @@
-package com.zksy.base.dto;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.io.Serializable;
-
-@Data
-@ApiModel(value = "维修记录分页查询入参", description = "维修记录分页查询入参")
-public class RepairRecordPageInDTO implements Serializable {
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "管网ID")
-    private String networkId;
-
-    @ApiModelProperty(value = "维修类型")
-    private String repairType;
-
-    @ApiModelProperty(value = "当前记录起始索引", required = true)
-    private Long pageNum;
-
-    @ApiModelProperty(value = "每页显示记录数", required = true)
-    private Long pageSize;
-}

+ 0 - 9
pipe-network-service/zksy-system/src/main/java/com/zksy/base/mapper/GasPipePointDeviceRelMapper.java

@@ -1,9 +0,0 @@
-package com.zksy.base.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.zksy.base.domain.GasPipePointDeviceRel;
-import org.apache.ibatis.annotations.Mapper;
-
-@Mapper
-public interface GasPipePointDeviceRelMapper extends BaseMapper<GasPipePointDeviceRel> {
-}

+ 0 - 9
pipe-network-service/zksy-system/src/main/java/com/zksy/base/mapper/GasPipePointMapper.java

@@ -1,9 +0,0 @@
-package com.zksy.base.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.zksy.base.domain.GasPipePoint;
-import org.apache.ibatis.annotations.Mapper;
-
-@Mapper
-public interface GasPipePointMapper extends BaseMapper<GasPipePoint> {
-}

+ 0 - 9
pipe-network-service/zksy-system/src/main/java/com/zksy/base/mapper/PipeRepairRecordMapper.java

@@ -1,9 +0,0 @@
-package com.zksy.base.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.zksy.base.domain.PipeRepairRecord;
-import org.apache.ibatis.annotations.Mapper;
-
-@Mapper
-public interface PipeRepairRecordMapper extends BaseMapper<PipeRepairRecord> {
-}

+ 0 - 23
pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/GasPipePointService.java

@@ -1,23 +0,0 @@
-package com.zksy.base.service;
-
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.zksy.base.domain.GasPipePoint;
-import com.zksy.base.dto.GasPipePointPageInDTO;
-
-import java.util.List;
-
-public interface GasPipePointService extends IService<GasPipePoint> {
-
-    Page<GasPipePoint> queryByPage(GasPipePointPageInDTO dto);
-
-    List<GasPipePoint> listByNetworkId(String networkId);
-
-    List<GasPipePoint> getOptions();
-
-    boolean saveWithCheck(GasPipePoint entity);
-
-    boolean updateWithCheck(GasPipePoint entity);
-
-    boolean removeWithCheck(Long pointId);
-}

+ 0 - 15
pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/PipeRepairRecordService.java

@@ -1,15 +0,0 @@
-package com.zksy.base.service;
-
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.zksy.base.domain.PipeRepairRecord;
-import com.zksy.base.dto.RepairRecordPageInDTO;
-
-import java.util.List;
-
-public interface PipeRepairRecordService extends IService<PipeRepairRecord> {
-
-    Page<PipeRepairRecord> findByPage(RepairRecordPageInDTO dto);
-
-    List<PipeRepairRecord> listByNetworkId(String networkId);
-}

+ 0 - 3
pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/EquipmentBaseServiceImpl.java

@@ -815,9 +815,6 @@ public class EquipmentBaseServiceImpl extends ServiceImpl<EquipmentBaseMapper, E
         Map<String, EquipmentStatus> statusMap = statusList.stream()
                 .collect(Collectors.toMap(EquipmentStatus::getEquipmentId, Function.identity(), (a, b) -> a));
 
-        // 3. 燃气管点回联已移除(维护者 2026-11-16):gas_pipe_point 在实际页面没有使用场景,
-        //    其用途由 pipe_network_base 的管段覆盖;该链路此前也多为悬空(管点 network_id 指不到管段)。
-
         // 批量查设备类型(用于解析类型名称)
         List<Integer> equipmentTypeIdList = equipmentList.stream()
                 .map(EquipmentBase::getEquipmentTypeId)

+ 0 - 89
pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/GasPipePointServiceImpl.java

@@ -1,89 +0,0 @@
-package com.zksy.base.service.impl;
-
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.zksy.base.domain.GasPipePoint;
-import com.zksy.base.dto.GasPipePointPageInDTO;
-import com.zksy.base.mapper.GasPipePointMapper;
-import com.zksy.base.service.GasPipePointService;
-import com.zksy.common.exception.ServiceException;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-import java.util.List;
-
-@Slf4j
-@Service
-public class GasPipePointServiceImpl extends ServiceImpl<GasPipePointMapper, GasPipePoint>
-        implements GasPipePointService {
-
-    @Override
-    public Page<GasPipePoint> queryByPage(GasPipePointPageInDTO dto) {
-        Page<GasPipePoint> page = new Page<>(dto.getPageNum(), dto.getPageSize());
-        LambdaQueryWrapper<GasPipePoint> wrapper = new LambdaQueryWrapper<>();
-        wrapper.like(dto.getPointName() != null && !dto.getPointName().isEmpty(), GasPipePoint::getPointName, dto.getPointName());
-        wrapper.like(dto.getPointCode() != null && !dto.getPointCode().isEmpty(), GasPipePoint::getPointCode, dto.getPointCode());
-        wrapper.eq(dto.getNetworkId() != null && !dto.getNetworkId().isEmpty(), GasPipePoint::getNetworkId, dto.getNetworkId());
-        wrapper.eq(dto.getPointType() != null && !dto.getPointType().isEmpty(), GasPipePoint::getPointType, dto.getPointType());
-        wrapper.eq(dto.getStatus() != null && !dto.getStatus().isEmpty(), GasPipePoint::getStatus, dto.getStatus());
-        wrapper.orderByDesc(GasPipePoint::getCreateTime);
-        return this.page(page, wrapper);
-    }
-
-    @Override
-    public List<GasPipePoint> listByNetworkId(String networkId) {
-        LambdaQueryWrapper<GasPipePoint> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(GasPipePoint::getNetworkId, networkId);
-        wrapper.orderByAsc(GasPipePoint::getPointCode);
-        return this.list(wrapper);
-    }
-
-    @Override
-    public List<GasPipePoint> getOptions() {
-        LambdaQueryWrapper<GasPipePoint> wrapper = new LambdaQueryWrapper<>();
-        wrapper.select(GasPipePoint::getPointId, GasPipePoint::getPointName, GasPipePoint::getPointCode);
-        wrapper.orderByAsc(GasPipePoint::getPointName);
-        return this.list(wrapper);
-    }
-
-    @Override
-    public boolean saveWithCheck(GasPipePoint entity) {
-        LambdaQueryWrapper<GasPipePoint> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(GasPipePoint::getPointCode, entity.getPointCode());
-        if (this.count(wrapper) > 0) {
-            throw new ServiceException("管点编码已存在:" + entity.getPointCode());
-        }
-        return this.save(entity);
-    }
-
-    @Override
-    @Transactional
-    public boolean updateWithCheck(GasPipePoint entity) {
-        Long pointId = entity.getPointId();
-        if (this.getById(pointId) == null) {
-            throw new ServiceException("管点不存在:" + pointId);
-        }
-        String newCode = entity.getPointCode();
-        if (newCode != null) {
-            LambdaQueryWrapper<GasPipePoint> wrapper = new LambdaQueryWrapper<>();
-            wrapper.eq(GasPipePoint::getPointCode, newCode)
-                    .ne(GasPipePoint::getPointId, pointId);
-            if (this.count(wrapper) > 0) {
-                throw new ServiceException("管点编码已被使用:" + newCode);
-            }
-        }
-        return this.updateById(entity);
-    }
-
-    @Override
-    @Transactional
-    public boolean removeWithCheck(Long pointId) {
-        GasPipePoint point = this.getById(pointId);
-        if (point == null) {
-            throw new ServiceException("管点不存在:" + pointId);
-        }
-        return this.removeById(pointId);
-    }
-}

+ 0 - 37
pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/PipeRepairRecordServiceImpl.java

@@ -1,37 +0,0 @@
-package com.zksy.base.service.impl;
-
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.zksy.base.domain.PipeRepairRecord;
-import com.zksy.base.dto.RepairRecordPageInDTO;
-import com.zksy.base.mapper.PipeRepairRecordMapper;
-import com.zksy.base.service.PipeRepairRecordService;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-@Slf4j
-@Service
-public class PipeRepairRecordServiceImpl extends ServiceImpl<PipeRepairRecordMapper, PipeRepairRecord>
-        implements PipeRepairRecordService {
-
-    @Override
-    public Page<PipeRepairRecord> findByPage(RepairRecordPageInDTO dto) {
-        Page<PipeRepairRecord> page = new Page<>(dto.getPageNum(), dto.getPageSize());
-        LambdaQueryWrapper<PipeRepairRecord> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(dto.getNetworkId() != null && !dto.getNetworkId().isEmpty(), PipeRepairRecord::getNetworkId, dto.getNetworkId());
-        wrapper.eq(dto.getRepairType() != null && !dto.getRepairType().isEmpty(), PipeRepairRecord::getRepairType, dto.getRepairType());
-        wrapper.orderByDesc(PipeRepairRecord::getRepairDate);
-        return this.page(page, wrapper);
-    }
-
-    @Override
-    public List<PipeRepairRecord> listByNetworkId(String networkId) {
-        LambdaQueryWrapper<PipeRepairRecord> wrapper = new LambdaQueryWrapper<>();
-        wrapper.eq(PipeRepairRecord::getNetworkId, networkId);
-        wrapper.orderByDesc(PipeRepairRecord::getRepairDate);
-        return this.list(wrapper);
-    }
-}

+ 2 - 56
pipe-network-service/zksy-system/src/main/java/com/zksy/base/service/impl/RiskAssessmentServiceImpl.java

@@ -5,14 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.zksy.base.domain.PipeNetworkBase;
 import com.zksy.base.domain.RiskAssessment;
-import com.zksy.base.domain.GasPipePoint;
-import com.zksy.base.domain.GasPipePointDeviceRel;
-import com.zksy.base.domain.EquipmentBase;
 import com.zksy.base.alarm.domain.AlarmData;
-import com.zksy.base.mapper.GasPipePointMapper;
-import com.zksy.base.mapper.GasPipePointDeviceRelMapper;
-import com.zksy.base.mapper.EquipmentBaseMapper;
-import com.zksy.base.alarm.mapper.AlarmDataMapper;
 import com.zksy.base.dto.RiskPageInDTO;
 import com.zksy.base.mapper.PipeNetworkBaseMapper;
 import com.zksy.base.mapper.RiskAssessmentMapper;
@@ -23,7 +16,6 @@ import org.springframework.stereotype.Service;
 
 import java.util.*;
 import java.time.LocalDate;
-import java.time.LocalDateTime;
 import java.time.ZoneId;
 import java.math.BigDecimal;
 import java.util.stream.Collectors;
@@ -36,18 +28,6 @@ public class RiskAssessmentServiceImpl extends ServiceImpl<RiskAssessmentMapper,
     @Autowired
     private PipeNetworkBaseMapper pipeNetworkBaseMapper;
 
-    @Autowired
-    private GasPipePointMapper gasPipePointMapper;
-
-    @Autowired
-    private GasPipePointDeviceRelMapper gasPipePointDeviceRelMapper;
-
-    @Autowired
-    private EquipmentBaseMapper equipmentBaseMapper;
-
-    @Autowired
-    private AlarmDataMapper alarmDataMapper;
-
     @Override
     public Page<RiskAssessment> findByPage(RiskPageInDTO dto) {
         Page<RiskAssessment> page = new Page<>(dto.getPageNum(), dto.getPageSize());
@@ -108,45 +88,11 @@ public class RiskAssessmentServiceImpl extends ServiceImpl<RiskAssessmentMapper,
 
         Set<String> networkIds = networks.stream().map(PipeNetworkBase::getNetworkId)
                 .filter(Objects::nonNull).collect(Collectors.toSet());
-        List<GasPipePoint> points = gasPipePointMapper.selectList(new LambdaQueryWrapper<GasPipePoint>()
-                .in(GasPipePoint::getNetworkId, networkIds));
-        Set<Long> pointIds = points.stream().map(GasPipePoint::getPointId)
-                .filter(Objects::nonNull).collect(Collectors.toSet());
-        List<GasPipePointDeviceRel> rels = pointIds.isEmpty() ? Collections.emptyList() :
-                gasPipePointDeviceRelMapper.selectList(new LambdaQueryWrapper<GasPipePointDeviceRel>()
-                        .in(GasPipePointDeviceRel::getPointId, pointIds)
-                        .eq(GasPipePointDeviceRel::getDelFlag, "0"));
-
-        Map<String, String> equipmentToNetwork = new HashMap<>();
-        Map<Long, String> pointNetwork = points.stream().collect(Collectors.toMap(
-                GasPipePoint::getPointId, GasPipePoint::getNetworkId, (a, b) -> a));
-        Set<String> equipmentIds = rels.stream().map(GasPipePointDeviceRel::getEquipmentId)
-                .filter(Objects::nonNull).collect(Collectors.toSet());
-        if (!equipmentIds.isEmpty()) {
-            List<EquipmentBase> equipment = equipmentBaseMapper.selectBatchIds(equipmentIds);
-            Map<String, String> idToCode = equipment.stream().collect(Collectors.toMap(
-                    EquipmentBase::getEquipmentId, EquipmentBase::getEquipmentCode, (a, b) -> a));
-            for (GasPipePointDeviceRel rel : rels) {
-                String code = idToCode.get(rel.getEquipmentId());
-                String networkId = pointNetwork.get(rel.getPointId());
-                if (code != null && networkId != null) equipmentToNetwork.put(code, networkId);
-            }
-        }
-
-        LocalDateTime since = LocalDateTime.now().minusDays(30);
-        List<AlarmData> alarms = equipmentToNetwork.isEmpty() ? Collections.emptyList() :
-                alarmDataMapper.selectList(new LambdaQueryWrapper<AlarmData>()
-                        .in(AlarmData::getDeviceCode, equipmentToNetwork.keySet())
-                        .ge(AlarmData::getCreateTime, since));
-        Map<String, List<AlarmData>> alarmsByNetwork = new HashMap<>();
-        for (AlarmData alarm : alarms) {
-            String networkId = equipmentToNetwork.get(alarm.getDeviceCode());
-            if (networkId != null) alarmsByNetwork.computeIfAbsent(networkId, k -> new ArrayList<>()).add(alarm);
-        }
+        // 燃气管点相关表已下线,无法再通过管点关联设备聚合报警,报警相关维度按无数据处理。
+        List<AlarmData> networkAlarms = Collections.emptyList();
 
         List<Map<String, Object>> result = new ArrayList<>();
         for (PipeNetworkBase pipe : networks) {
-            List<AlarmData> networkAlarms = alarmsByNetwork.getOrDefault(pipe.getNetworkId(), Collections.emptyList());
             int ageScore = ageScore(pipe.getBuildDate());
             int alarmScore = alarmFrequencyScore(networkAlarms.size());
             int unresolvedScore = (int) Math.min(20, networkAlarms.stream()

+ 0 - 2
pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/geometry/CockpitFacilityGeometryService.java

@@ -55,8 +55,6 @@ public class CockpitFacilityGeometryService {
                                 pair(network.getStartLongitude(), network.getStartLatitude()),
                                 pair(network.getEndLongitude(), network.getEndLatitude()))));
             }
-            // 燃气管点(gas_pipe_point)已移除(维护者 2026-11-16):该表在实际页面没有使用场景,
-            // 其用途由 pipe_network_base 的管段覆盖,不再作为独立点要素上图。
             for (ManholeBase manhole : Objects.requireNonNull(manholes.list())) {
                 features.add(feature("manhole_base", manhole.getManholeId(), manhole.getManholeCode(),
                         manhole.getManholeName(), "MANHOLE", "MANHOLE", null, null, null,

+ 4 - 20
pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/relation/CockpitDeviceFacilityRelationResponse.java

@@ -14,9 +14,6 @@ import java.util.List;
  *       {@code deviceId}(关联表里的 equipment_id 原值),绝不用名字或编码去猜。</li>
  * </ul>
  *
- * <p><b>燃气管点来源已移除</b>(维护者 2026-11-16):{@code gas_pipe_point} 在实际页面没有使用场景,
- * 其用途由 {@code pipe_network_base} 的管段覆盖;统计里两个 gas 字段保留但恒为 0(见 {@link Statistics})。
- *
  * <p>降级语义(前端据此判定「真实关联」是否成立):
  * <ul>
  *   <li>关联行的设施主键在设施表里不存在/已删除 → 该条不返回,计入统计 {@code skipped*};</li>
@@ -60,9 +57,9 @@ public class CockpitDeviceFacilityRelationResponse {
         private final String deviceCode;
         /** 设施主键:窨井即 manholeId。 */
         private final String facilityCode;
-        /** 设施种类:现只有 MANHOLE(燃气管点来源已移除)。 */
+        /** 设施种类:现只有 MANHOLE。 */
         private final String facilityKind;
-        /** 关联类型:现只有 MANHOLE_DEVICE(GAS_PIPE_POINT_DEVICE 已随燃气管点移除)。 */
+        /** 关联类型:现只有 MANHOLE_DEVICE。 */
         private final String relationType;
 
         public Relation(String deviceId, String deviceCode, String facilityCode, String facilityKind,
@@ -89,44 +86,31 @@ public class CockpitDeviceFacilityRelationResponse {
     public static class Statistics {
         /** manhole_device_rel 中 del_flag=0 的行数。 */
         private final int manholeRelationRows;
-        /**
-         * 已**恒为 0**:燃气管点来源随 {@code gas_pipe_point} 一并移除(维护者 2026-11-16)。
-         * 字段保留是为了不让既有 API 约定断开(前端按整体透传,不读具体字段)。
-         */
-        private final int gasPipePointRelationRows;
         /** 实际返回的关联条数。 */
         private final int returnedRelationCount;
         /** 因窨井主键在 manhole_base 里查不到(含已删除)而跳过的条数。 */
         private final int skippedManholeFacilityMissing;
-        /** 已**恒为 0**:随燃气管点来源移除,保留字段同 {@link #gasPipePointRelationRows}。 */
-        private final int skippedGasPipeNetworkMissing;
         /** 关联行设备主键为空、无法定位设备而跳过的条数。 */
         private final int skippedDeviceIdMissing;
         /** 设备主键在 equipment_base 里查不到、deviceCode 只能为 null 的条数。 */
         private final int deviceCodeUnresolved;
 
-        public Statistics(int manholeRelationRows, int gasPipePointRelationRows, int returnedRelationCount,
-                int skippedManholeFacilityMissing, int skippedGasPipeNetworkMissing, int skippedDeviceIdMissing,
+        public Statistics(int manholeRelationRows, int returnedRelationCount,
+                int skippedManholeFacilityMissing, int skippedDeviceIdMissing,
                 int deviceCodeUnresolved) {
             this.manholeRelationRows = manholeRelationRows;
-            this.gasPipePointRelationRows = gasPipePointRelationRows;
             this.returnedRelationCount = returnedRelationCount;
             this.skippedManholeFacilityMissing = skippedManholeFacilityMissing;
-            this.skippedGasPipeNetworkMissing = skippedGasPipeNetworkMissing;
             this.skippedDeviceIdMissing = skippedDeviceIdMissing;
             this.deviceCodeUnresolved = deviceCodeUnresolved;
         }
 
         public int getManholeRelationRows() { return manholeRelationRows; }
 
-        public int getGasPipePointRelationRows() { return gasPipePointRelationRows; }
-
         public int getReturnedRelationCount() { return returnedRelationCount; }
 
         public int getSkippedManholeFacilityMissing() { return skippedManholeFacilityMissing; }
 
-        public int getSkippedGasPipeNetworkMissing() { return skippedGasPipeNetworkMissing; }
-
         public int getSkippedDeviceIdMissing() { return skippedDeviceIdMissing; }
 
         public int getDeviceCodeUnresolved() { return deviceCodeUnresolved; }

+ 2 - 10
pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/relation/CockpitDeviceFacilityRelationService.java

@@ -35,11 +35,6 @@ import java.util.Set;
  *   <li>设备编码:{@code equipment_base.equipment_code}(按 rel.equipment_id 精确匹配主键)。</li>
  * </ol>
  *
- * <p><b>燃气管点已移除</b>(维护者 2026-11-16):{@code gas_pipe_point} 在实际页面没有使用场景,
- * 其用途由 {@code pipe_network_base} 的管段覆盖。这条链路此前也一直是悬空的
- * ({@code network_id} 指向的管段在 {@code pipe_network_base} 里不存在,4 条全跳过),
- * 所以删掉它不减少任何真实可匹配的关联。
- *
  * <p><b>不编造</b>:只用上表主键做等值解析;解析不到就跳过该条并在 {@link Statistics} 里记缺,
  * 既不按名称/编码猜设施,也不把查不到设备的行填个假 deviceCode。
  *
@@ -78,7 +73,6 @@ public class CockpitDeviceFacilityRelationService {
 
             List<Relation> relations = new ArrayList<>();
             int skippedManholeMissing = 0;
-            int skippedGasNetworkMissing = 0;
             int skippedDeviceMissing = 0;
             int deviceCodeUnresolved = 0;
 
@@ -106,8 +100,8 @@ public class CockpitDeviceFacilityRelationService {
                     .thenComparing(Relation::getFacilityCode)
                     .thenComparing(Relation::getDeviceId));
 
-            Statistics statistics = new Statistics(manholeRelations.size(), 0, relations.size(),
-                    skippedManholeMissing, skippedGasNetworkMissing, skippedDeviceMissing, deviceCodeUnresolved);
+            Statistics statistics = new Statistics(manholeRelations.size(), relations.size(),
+                    skippedManholeMissing, skippedDeviceMissing, deviceCodeUnresolved);
             String generatedAt = DateTimeFormatter.ISO_OFFSET_DATE_TIME
                     .format(clock.instant().atZone(ZoneId.of(SCHEMA_TIME_ZONE)));
             return new CockpitDeviceFacilityRelationResponse(generatedAt, true, relations, statistics);
@@ -154,8 +148,6 @@ public class CockpitDeviceFacilityRelationService {
         return existing;
     }
 
-    /** 管点主键 → 所属管段 networkId(已随 gas_pipe_point 移除,见类注释)。 */
-
     private static void addIfPresent(Set<String> target, String value) {
         String trimmed = trimToNull(value);
         if (trimmed != null) {