From 8e0c99ae9b38f1dc6a653cabbc872d8524e164e9 Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Thu, 10 Oct 2024 13:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=B9=E8=B4=A6=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../weightDeviceData/service/WeightDeviceDataService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/lihongjie/coal/weightDeviceData/service/WeightDeviceDataService.java b/src/main/java/cn/lihongjie/coal/weightDeviceData/service/WeightDeviceDataService.java index 9be266c4..d7e39b2c 100644 --- a/src/main/java/cn/lihongjie/coal/weightDeviceData/service/WeightDeviceDataService.java +++ b/src/main/java/cn/lihongjie/coal/weightDeviceData/service/WeightDeviceDataService.java @@ -513,11 +513,11 @@ where 二次过磅时间>='%s' and 二次过磅时间<='%s' String where = "where 1 = 1 "; if (request.getStartTime() != null) { - where += " and d.mz_time >= :startTime "; + where += " and d.ecgb_time >= :startTime "; } if (request.getEndTime() != null) { - where += " and d.mz_time <= :endTime "; + where += " and d.ecgb_time <= :endTime "; } if (StringUtils.isNotEmpty(request.getPlateNo())) { @@ -578,7 +578,7 @@ where 二次过磅时间>='%s' and 二次过磅时间<='%s' var sql = "select DATE_TRUNC('" + request.getTimeDimension() - + "', d.mz_time) as time,\n" + + "', d.ecgb_time) as time,\n" + groupSql + ",\n" + fieldSql @@ -590,7 +590,7 @@ where 二次过磅时间>='%s' and 二次过磅时间<='%s' + "\n" + "group by DATE_TRUNC('" + request.getTimeDimension() - + "', d.mz_time), " + + "', d.ecgb_time), " + groupSql + "\n" + "order by time desc ";