From 9d393c50767e83308179029bb25eaf6c1b01a800 Mon Sep 17 00:00:00 2001 From: xy <748613696@qq.com> Date: Fri, 3 Jul 2026 09:31:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(influx):=20=E4=BF=AE=E6=AD=A3=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=B8=AD=E7=9A=84=E5=80=BC=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=B9=B6=E6=B7=BB=E5=8A=A0SQL=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将VALUE_TYPE从"avg"改为"AVG"以匹配数据库中的实际数据格式 - 添加SQL语句打印用于调试目的 - 保持其他查询条件不变包括时间范围、生产线ID和工艺参数 --- .../java/com/njcn/influx/service/impl/CommonServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/njcn/influx/service/impl/CommonServiceImpl.java b/src/main/java/com/njcn/influx/service/impl/CommonServiceImpl.java index 99a81b2..6091751 100644 --- a/src/main/java/com/njcn/influx/service/impl/CommonServiceImpl.java +++ b/src/main/java/com/njcn/influx/service/impl/CommonServiceImpl.java @@ -209,9 +209,10 @@ public class CommonServiceImpl implements CommonService { .select("Apf_Temp_Env","minValue") .between(InfluxDBTableConstant.TIME, param.getStartTime(), param.getEndTime()) .eq(InfluxDBTableConstant.LINE_ID,param.getLineId()) - .eq(InfluxDBTableConstant.VALUE_TYPE,"avg") + .eq(InfluxDBTableConstant.VALUE_TYPE,"AVG") .eq(InfluxDBTableConstant.PROCESS,param.getProcess()) .eq(InfluxDBTableConstant.CL_DID,param.getClDid()); + System.out.println("sql===:" + influxQueryWrapper.generateSql()); return commonMapper.getDeviceRtDataByTime(influxQueryWrapper); }