浏览代码

[0917] 文件目录调整

taosj 2 月之前
父节点
当前提交
74f6041ff4

+ 1 - 1
forecast-backend-server/src/main/java/com/ufo/project/data/controller/DataController.java

@@ -21,7 +21,6 @@ import com.ufo.base.framework.aspectj.lang.annotation.Log;
 import com.ufo.base.framework.aspectj.lang.enums.BusinessType;
 import com.ufo.base.framework.web.controller.BaseController;
 import com.ufo.base.framework.web.page.TableDataInfo;
-import com.ufo.base.common.utils.DateUtils;
 import com.ufo.base.common.utils.poi.ExcelUtil;
 import com.ufo.project.data.domain.CumulativeIrradianceQuery;
 import com.ufo.project.data.domain.IrradiancePowerComparisonQuery;
@@ -481,4 +480,5 @@ public class DataController extends BaseController
         if (value == null) return null;
         return java.math.BigDecimal.valueOf(value);
     }
+    
 }

+ 0 - 14
forecast-backend-server/src/main/java/com/ufo/project/weather/domain/DataWeatherLocal.java

@@ -34,10 +34,6 @@ public class DataWeatherLocal extends BaseEntity
     @Excel(name = "斜面辐照度,单位 W/m²")
     private Double irradiance;
 
-    /** 组件温度,单位 ℃ */
-    @Excel(name = "组件温度,单位 ℃")
-    private Double boardTemperature;
-
     /** 温度,单位 ℃ */
     @Excel(name = "温度,单位 ℃")
     private Double temperature;
@@ -102,15 +98,6 @@ public class DataWeatherLocal extends BaseEntity
     {
         return irradiance;
     }
-    public void setBoardTemperature(Double boardTemperature)
-    {
-        this.boardTemperature = boardTemperature;
-    }
-
-    public Double getBoardTemperature()
-    {
-        return boardTemperature;
-    }
     public void setTemperature(Double temperature) 
     {
         this.temperature = temperature;
@@ -189,7 +176,6 @@ public class DataWeatherLocal extends BaseEntity
             .append("humidity", getHumidity())
             .append("windSpeed", getWindSpeed())
             .append("windDirection", getWindDirection())
-            .append("boardTemperature", getBoardTemperature())
             .append("dailyIrradiance", getDailyIrradiance())
             .toString();
     }

+ 20 - 20
forecast-backend-vue/src/router/electricity.js

@@ -187,63 +187,63 @@ const electricityRoutes = [
         meta: {title: '故障处理日志', icon: 'ProfileOutlined'}
       },
       {
-        path: 'datareport/shor-term-forecast-daily',
+        path: 'electricity/shor-term-forecast-daily',
         name: 'ShorTermForecastDailyReport',
-        component: () => import('@/views/ufo/datareport/shorTermForecastDailyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/shorTermForecastDailyReport.vue'),
         meta: {title: '短期预测日报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/shor-term-forecast-monthly',
+        path: 'electricity/shor-term-forecast-monthly',
         name: 'ShorTermForecastMonthlyReport',
-        component: () => import('@/views/ufo/datareport/shorTermForecastMonthlyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/shorTermForecastMonthlyReport.vue'),
         meta: {title: '短期预测月报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/shor-term-forecast-yearly',
+        path: 'electricity/shor-term-forecast-yearly',
         name: 'ShorTermForecastYearlyReport',
-        component: () => import('@/views/ufo/datareport/shorTermForecastYearlyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/shorTermForecastYearlyReport.vue'),
         meta: {title: '短期预测年报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/ultra-shor-term-forecast-daily',
+        path: 'electricity/ultra-shor-term-forecast-daily',
         name: 'UltraShorTermForecastDailyReport',
-        component: () => import('@/views/ufo/datareport/ultraShortTermForecastDailyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/ultraShortTermForecastDailyReport.vue'),
         meta: {title: '超短期预测日报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/ultra-shor-term-forecast-monthly',
+        path: 'electricity/ultra-shor-term-forecast-monthly',
         name: 'UltraShorTermForecastMonthlyReport',
-        component: () => import('@/views/ufo/datareport/ultraShortTermForecastMonthlyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/ultraShortTermForecastMonthlyReport.vue'),
         meta: {title: '超短期预测月报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/ultra-shor-term-forecast-yearly',
+        path: 'electricity/ultra-shor-term-forecast-yearly',
         name: 'UltraShorTermForecastYearlyReport',
-        component: () => import('@/views/ufo/datareport/ultraShortTermForecastYearlyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/ultraShortTermForecastYearlyReport.vue'),
         meta: {title: '超短期预测年报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/pv-plant-cumulative-daily',
+        path: 'electricity/pv-plant-cumulative-daily',
         name: 'PvPlantCumulativeDailyReport',
-        component: () => import('@/views/ufo/datareport/pvPlantCumulativeDailyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/pvPlantCumulativeDailyReport.vue'),
         meta: {title: '光伏电场累计日报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/pv-plant-cumulative-monthly',
+        path: 'electricity/pv-plant-cumulative-monthly',
         name: 'PvPlantCumulativeMonthlyReport',
-        component: () => import('@/views/ufo/datareport/pvPlantCumulativeMonthlyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/pvPlantCumulativeMonthlyReport.vue'),
         meta: {title: '光伏电场累计月报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/pv-plant-cumulative-yearly',
+        path: 'electricity/pv-plant-cumulative-yearly',
         name: 'PvPlantCumulativeYearlyReport',
-        component: () => import('@/views/ufo/datareport/pvPlantCumulativeYearlyReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/pvPlantCumulativeYearlyReport.vue'),
         meta: {title: '光伏电场累计年报', icon: 'FileTextOutlined'}
       },
       {
-        path: 'datareport/pv-meteorological-resource-data',
+        path: 'electricity/pv-meteorological-resource-data',
         name: 'PvMeteorologicalResourceDataReport',
-        component: () => import('@/views/ufo/datareport/pvMeteorologicalResourceDataReport.vue'),
+        component: () => import('@/views/ufo/electricity/datareport/pvMeteorologicalResourceDataReport.vue'),
         meta: {title: '光伏气象资源数据报表', icon: 'FileTextOutlined'}
       }
     ]

+ 7 - 0
forecast-backend-vue/src/views/ufo/electricity/components/dataAdapter.js

@@ -73,3 +73,10 @@ export function summarizeRows(rows, config) {
     };
   });
 }
+
+export function toStationOptions(rows = []) {
+  return rows.map((item, index) => ({
+    label: pick(item, STATION_KEYS, `站点${index + 1}`),
+    value: item.id || item.stationId || item.entityId || index + 1,
+  }));
+}

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/pvMeteorologicalResourceDataReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/pvMeteorologicalResourceDataReport.vue

@@ -51,9 +51,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryPvMeteorologicalResourceData, exportPvMeteorologicalResourceData } from '@/api/data/pvMeteorologicalResourceData';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/pvPlantCumulativeDailyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/pvPlantCumulativeDailyReport.vue

@@ -51,9 +51,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryPvPlantCumulativeReport, exportPvPlantCumulativeReport } from '@/api/data/pvPlantCumulativeReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/pvPlantCumulativeMonthlyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/pvPlantCumulativeMonthlyReport.vue

@@ -49,9 +49,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryPvPlantCumulativeReport, exportPvPlantCumulativeReport } from '@/api/data/pvPlantCumulativeReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/pvPlantCumulativeYearlyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/pvPlantCumulativeYearlyReport.vue

@@ -49,9 +49,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryPvPlantCumulativeReport, exportPvPlantCumulativeReport } from '@/api/data/pvPlantCumulativeReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 4 - 4
forecast-backend-vue/src/views/ufo/datareport/shorTermForecastDailyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/shorTermForecastDailyReport.vue

@@ -51,9 +51,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryShortTermForecastReport, exportShortTermForecastReport } from '@/api/power/shortTermForecastReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);
@@ -110,7 +110,7 @@ const handleQuery = async () => {
 
   loading.value = true
   try {
-    const res = await listShortTermForecastReport(buildParams())
+    const res = await queryShortTermForecastReport(buildParams())
     tableRows.value = normalizeRows(res)
   } finally {
     loading.value = false

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/shorTermForecastMonthlyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/shorTermForecastMonthlyReport.vue

@@ -49,9 +49,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryShortTermForecastReport, exportShortTermForecastReport } from '@/api/power/shortTermForecastReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/shorTermForecastYearlyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/shorTermForecastYearlyReport.vue

@@ -49,9 +49,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryShortTermForecastReport, exportShortTermForecastReport } from '@/api/power/shortTermForecastReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/ultraShortTermForecastDailyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/ultraShortTermForecastDailyReport.vue

@@ -51,9 +51,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryUltraShortTermForecastReport, exportUltraShortTermForecastReport } from '@/api/power/ultraShortTermForecastReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/ultraShortTermForecastMonthlyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/ultraShortTermForecastMonthlyReport.vue

@@ -49,9 +49,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryUltraShortTermForecastReport, exportUltraShortTermForecastReport } from '@/api/power/ultraShortTermForecastReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 3 - 3
forecast-backend-vue/src/views/ufo/datareport/ultraShortTermForecastYearlyReport.vue → forecast-backend-vue/src/views/ufo/electricity/datareport/ultraShortTermForecastYearlyReport.vue

@@ -49,9 +49,9 @@ import { saveAs } from 'file-saver';
 import { blobValidate } from '@/utils/bearjia';
 import { listStation } from '@/api/config/station';
 import { queryUltraShortTermForecastReport, exportUltraShortTermForecastReport } from '@/api/power/ultraShortTermForecastReport';
-import BusinessDataTable from '../electricity/components/BusinessDataTable.vue';
-import StationSelector from '../electricity/components/StationSelector.vue';
-import { normalizeRows, toStationOptions } from '../electricity/components/dataAdapter';
+import BusinessDataTable from './components/BusinessDataTable.vue';
+import StationSelector from './components/StationSelector.vue';
+import { normalizeRows, toStationOptions } from '../components/dataAdapter.js';
 
 const loading = ref(false);
 const exporting = ref(false);

+ 14 - 0
release_note/2026.09.17/20260917_dp.sql

@@ -49,3 +49,17 @@ INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2103);
 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, '光伏气象资源数据报表页面');
 
 INSERT INTO sys_role_menu (role_id, menu_id) VALUES (1, 2111);
+
+
+-- 修复菜单名称
+update "public"."sys_menu" set menu_name = '湿度曲线图' where menu_name = '温度曲线图' and menu_id = 2074;
+update "public"."sys_menu" set menu_name = '气压曲线图' where menu_name = '湿度曲线图' and menu_id = 2075;
+update "public"."sys_menu" set menu_name = '辐照曲线图' where menu_name = '气压曲线图' and menu_id = 2076;
+update "public"."sys_menu" set menu_name = '功率预测' where menu_name = '预报管理' and menu_id = 2007;
+update "public"."sys_menu" set status =  1 where menu_name = '发电量预测' and menu_id = 2010;
+update "public"."sys_menu" set status =  1 where menu_name = '短期预测功率' and menu_id = 2083;
+update "public"."sys_menu" set status =  1 where menu_name = '超短期预测功率' and menu_id = 2084;
+update "public"."sys_menu" set menu_name = '短期功率预测修正' where menu_name = '短期预测功率修正' and menu_id = 2085;
+update "public"."sys_menu" set menu_name = '超短期功率预测修正' where menu_name = '超短期预测功率修正' and menu_id = 2086;
+update "public"."sys_menu" set parent_id =  2007 where parent_id = 2004 and menu_id = 2080;
+update "public"."sys_menu" set parent_id =  2007 where parent_id = 2004 and menu_id = 2076;