18922397810 пре 1 недеља
родитељ
комит
adbf24952a

+ 55 - 0
backend/console.sql

@@ -0,0 +1,55 @@
+select measurement_type,point_name, count(*)
+from wave_file
+where rpm>0 and measurement_type='压力' and tspluse_status>=4
+group by measurement_type,point_name
+
+
+select point_name, measurement_type, min(sample_time) minTime,max(sample_time) maxTime, count(*)
+from wave_file
+where  point_name like '8号机组二缸%' and rpm>0
+group by measurement_type,point_name
+
+
+select sample_time
+from  wave_file
+where point_name='7号机组一缸压力盖侧' and measurement_type='压力'
+order by sample_time desc
+
+select sample_index,signal_value,second_value
+from wave_sample where wave_file_id=1572
+order by sample_index asc
+
+# 查找第一个有压力数据的文件
+select *
+from  wave_file
+where point_name='7号机组一缸压力盖侧' and measurement_type='压力'
+and rpm>0
+order by sample_time asc
+limit 2
+
+# 7号机组一缸压力盖侧 压力 数据
+select * from wave_sample where wave_file_id=288146 order by wave_file_id,sample_index
+
+# 8号机组一缸压力盖侧 压力 数据
+select * from wave_sample where wave_file_id in(360903, 360904) order by wave_file_id,sample_index
+
+# 9号机组一缸压力盖侧 压力 数据
+select * from wave_sample where wave_file_id in(434810, 434968) order by wave_file_id,sample_index
+
+
+select min(tspluse_status),max(tspluse_status)
+from wave_file
+where rpm>0 and measurement_type='压力'
+
+
+select count(*)
+from wave_file
+where rpm>0 and measurement_type='压力' and tspluse_status=0
+order by sample_time asc
+
+# 增加标注故障预测字段,标注之前的小模型通用简单自动标注
+alter table wave_file add tspluse_status tinyint null default 0;
+alter table wave_file
+    modify tspluse_status tinyint default 0 null comment '标注之前的小模型通用简单自动标注,0 没有异常,大于0有异常';
+
+update wave_file set tspluse_status=0;

+ 1 - 0
frontend/src/components/WaveChart.vue

@@ -267,6 +267,7 @@ function buildOption(zoomMode: 'initial' | 'keep' = 'initial') {
     axisLine: { show: true, lineStyle: { color: colors[type as MeasurementType | '角度' | '合并信号' | 'second_value' | '体积'] } },
     axisLabel: { color: '#71808a', fontSize: 11 },
     splitLine: { show: true, lineStyle: { color: '#e7edf0', width: 1 } },
+    scale: type === '位移',
     min: type === '角度' ? 0 : undefined,
     max: type === '角度' ? 180 : undefined,
   }))

BIN
全场点位表.xls


BIN
压缩机监控数据平台_数据库字典.docx


Разлика између датотеке није приказан због своје велике величине
+ 33 - 0
提示词.md