migration_water_supply_facility_menu_reuse.sql 1.3 KB

123456789101112131415161718192021222324252627
  1. -- 供水 / 燃气 / 排水设施查询菜单复用管网基础设施公共页面
  2. -- 2091、2128、2182 通过 sys_menu.query 固定 networkType;2187 固定 stationType
  3. -- 其余目标页本身调用对应业务接口,无需额外 query
  4. -- KingbaseES / PostgreSQL 兼容,可重复执行
  5. UPDATE app_user.sys_menu
  6. SET component = CASE menu_id
  7. WHEN 2091 THEN 'subSystem/pipeNetwork/facilities/pipeNetwork/index'
  8. WHEN 2128 THEN 'subSystem/pipeNetwork/facilities/pipeNetwork/index'
  9. WHEN 2182 THEN 'subSystem/pipeNetwork/facilities/pipeNetwork/index'
  10. WHEN 2187 THEN 'subSystem/pipeNetwork/facilities/pumpStation/index'
  11. WHEN 2188 THEN 'subSystem/pipeNetwork/facilities/waterPlant/index'
  12. WHEN 2189 THEN 'subSystem/pipeNetwork/facilities/waterSource/index'
  13. WHEN 2190 THEN 'subSystem/pipeNetwork/facilities/waterUser/index'
  14. END,
  15. "query" = CASE menu_id
  16. WHEN 2091 THEN '{"networkType":"0"}'
  17. WHEN 2128 THEN '{"networkType":"1"}'
  18. WHEN 2182 THEN '{"networkType":"2"}'
  19. WHEN 2187 THEN '{"stationType":"0"}'
  20. WHEN 2188 THEN ''
  21. WHEN 2189 THEN ''
  22. WHEN 2190 THEN ''
  23. END,
  24. update_by = 'admin',
  25. update_time = CURRENT_TIMESTAMP
  26. WHERE menu_id IN (2091, 2128, 2182, 2187, 2188, 2189, 2190);