From 6ccaaa5d51c37bc3000a11d0cc9ffe0487e79013 Mon Sep 17 00:00:00 2001
From: whyczh <hzjl@qq.com>
Date: 星期五, 09 四月 2021 15:29:55 +0800
Subject: [PATCH] 试验历史数据优化,设置默认测试次数

---
 src/main/resources/mapper/MotorStateMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/MotorStateMapper.xml b/src/main/resources/mapper/MotorStateMapper.xml
index 68eebf2..100638e 100644
--- a/src/main/resources/mapper/MotorStateMapper.xml
+++ b/src/main/resources/mapper/MotorStateMapper.xml
@@ -27,6 +27,6 @@
     <select id="getDataByTime" resultMap="MotorStateResultMap" statementType="STATEMENT">
         select <include refid="Base_Column_List"/>
         from db_experiment_history.${tableName}
-        where record_time between '${startTime}' and '${endTime}'
+        where record_time between '${startTime}' and '${endTime}' group by record_time
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1