20260917_dp.sql 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. -- 隐藏菜单
  2. UPDATE "public"."sys_menu" set status = 1 where menu_name in ('多源多模型预测', '理论功率预测');
  3. -- data_weather_local 斜面辐照度字段 -> 总辐照度
  4. ALTER TABLE "public"."data_weather_local" RENAME COLUMN "inclined_irradiance" TO "irradiance";
  5. COMMENT ON COLUMN "public"."data_weather_local"."irradiance" IS '总辐照度,单位 W/m²';
  6. -- =============================================================================
  7. -- 任务编号 2026090805 增加"短期预测报表"功能
  8. -- =============================================================================
  9. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2071, '短期预测日报', 2016, 3, 'shor-term-forecast-daily', 'ufo/datareport/shorTermForecastDailyReport', '', 'ShorTermForecastDailyReport', 1, 0, 'C', '0', '0', 'data:shortTermForecastReport:daily', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '短期预测日报页面');
  10. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2072, '短期预测月报', 2016, 4, 'shor-term-forecast-monthly', 'ufo/datareport/shorTermForecastMonthlyReport', '', 'ShorTermForecastMonthlyReport', 1, 0, 'C', '0', '0', 'data:shortTermForecastReport:monthly', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '短期预测月报页面');
  11. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2073, '短期预测年报', 2016, 5, 'shor-term-forecast-yearly', 'ufo/datareport/shorTermForecastYearlyReport', '', 'ShorTermForecastYearlyReport', 1, 0, 'C', '0', '0', 'data:shortTermForecastReport:yearly', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '短期预测年报页面');
  12. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2087);
  13. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2088);
  14. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2089);
  15. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2090);
  16. -- =============================================================================
  17. -- 任务编号 2026090806 增加"超短期预测报表"功能
  18. -- =============================================================================
  19. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2091, '超短期预测日报', 2016, 6, 'ultra-shor-term-forecast-daily', 'ufo/datareport/ultraShortTermForecastDailyReport', '', 'UltraShorTermForecastDailyReport', 1, 0, 'C', '0', '0', 'data:ultraShortTermForecastReport:daily', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '超短期预测日报页面');
  20. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2092, '超短期预测月报', 2016, 7, 'ultra-shor-term-forecast-monthly', 'ufo/datareport/ultraShortTermForecastMonthlyReport', '', 'UltraShorTermForecastMonthlyReport', 1, 0, 'C', '0', '0', 'data:ultraShortTermForecastReport:monthly', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '超短期预测月报页面');
  21. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2093, '超短期预测年报', 2016, 8, 'ultra-shor-term-forecast-yearly', 'ufo/datareport/ultraShortTermForecastYearlyReport', '', 'UltraShorTermForecastYearlyReport', 1, 0, 'C', '0', '0', 'data:ultraShortTermForecastReport:yearly', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '超短期预测年报页面');
  22. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2091);
  23. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2092);
  24. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2093);
  25. -- =============================================================================
  26. -- 任务编号 2026091401 增加"光伏电场累计报表"功能
  27. -- =============================================================================
  28. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2101, '光伏电场累计日报', 2016, 9, 'pv-plant-cumulative-daily', 'ufo/datareport/pvPlantCumulativeDailyReport', '', 'PvPlantCumulativeDailyReport', 1, 0, 'C', '0', '0', 'data:pvPlantCumulativeReport:daily', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '光伏电场累计日报页面');
  29. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2102, '光伏电场累计月报', 2016, 10, 'pv-plant-cumulative-monthly', 'ufo/datareport/pvPlantCumulativeMonthlyReport', '', 'PvPlantCumulativeMonthlyReport', 1, 0, 'C', '0', '0', 'data:pvPlantCumulativeReport:monthly', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '光伏电场累计月报页面');
  30. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2103, '光伏电场累计年报', 2016, 11, 'pv-plant-cumulative-yearly', 'ufo/datareport/pvPlantCumulativeYearlyReport', '', 'PvPlantCumulativeYearlyReport', 1, 0, 'C', '0', '0', 'data:pvPlantCumulativeReport:yearly', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '光伏电场累计年报页面');
  31. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2101);
  32. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2102);
  33. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2103);
  34. -- =============================================================================
  35. -- 任务编号 2026091402 增加"光伏气象资源数据报表"功能
  36. -- =============================================================================
  37. INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "route_name", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2111, '光伏气象资源数据报表', 2016, 12, 'pv-meteorological-resource-data', 'ufo/datareport/pvMeteorologicalResourceDataReport', '', 'PvMeteorologicalResourceDataReport', 1, 0, 'C', '0', '0', 'data:pvMeteorologicalResourceData:list', 'file-text', 'admin', '2026-09-14 00:00:00', '', NULL, '光伏气象资源数据报表页面');
  38. INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2111);