From 777b8b79551f3713b57fbe040b351da31a153747 Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 2 Jul 2025 17:02:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor(os-ems):=20=E4=BF=AE=E5=A4=8D=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=9F=A5=E8=AF=A2=20SQL=20=E4=B8=AD=E7=9A=84=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 RecordIotenvInstantMapper.xml 文件中的 SQL 查询语句中的 ">= startTime" 修改为 ">=" 号 - 此修改解决了特殊字符在 SQL 查询中可能导致的问题 --- .../resources/mapper/ems/record/RecordIotenvInstantMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os-ems/src/main/resources/mapper/ems/record/RecordIotenvInstantMapper.xml b/os-ems/src/main/resources/mapper/ems/record/RecordIotenvInstantMapper.xml index 3a54a4e..556bca1 100644 --- a/os-ems/src/main/resources/mapper/ems/record/RecordIotenvInstantMapper.xml +++ b/os-ems/src/main/resources/mapper/ems/record/RecordIotenvInstantMapper.xml @@ -330,7 +330,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" vibration_speed, vibration_displacement, vibration_acceleration, vibration_temp, collectTime, recodeTime FROM ${tableName} - WHERE recodeTime >= #{startTime} + WHERE recodeTime >= #{startTime} ORDER BY recodeTime DESC