From 4a6be2249798d618ddb3b46c4a14504906ceb415 Mon Sep 17 00:00:00 2001
From: cjl <909710561@qq.com>
Date: Tue, 19 May 2026 16:37:27 +0800
Subject: [PATCH] fix:雷达数据提交
---
screen-api/src/main/resources/mapper/SecondCruiserSortMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/screen-api/src/main/resources/mapper/SecondCruiserSortMapper.xml b/screen-api/src/main/resources/mapper/SecondCruiserSortMapper.xml
index 9ec731e..2186ac9 100644
--- a/screen-api/src/main/resources/mapper/SecondCruiserSortMapper.xml
+++ b/screen-api/src/main/resources/mapper/SecondCruiserSortMapper.xml
@@ -13,7 +13,10 @@
<select id="getSort" resultType="com.moral.api.entity.SecondCruiserSort">
select road,avg(value) as "avg",time,mac from second_cruiser_sort
- where mac =#{mac} and time BETWEEN #{startTime} and #{endTime} GROUP BY road ORDER BY avg DESC
+ where mac =#{mac}
+ AND `time` <![CDATA[>=]]> #{startTime}
+ AND `time` <![CDATA[<]]> #{endTime}
+ GROUP BY road ORDER BY avg DESC
</select>
--
Gitblit v1.8.0