From 3b50aa4a23bd3ccb2bf71109b84dea65bd9ffc07 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Wed, 06 May 2020 11:02:25 +0800
Subject: [PATCH] update

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

diff --git a/src/main/resources/mapper/HistoryMinutelyMapper.xml b/src/main/resources/mapper/HistoryMinutelyMapper.xml
index bf83a38..3f4c176 100644
--- a/src/main/resources/mapper/HistoryMinutelyMapper.xml
+++ b/src/main/resources/mapper/HistoryMinutelyMapper.xml
@@ -139,7 +139,7 @@
         DATE_FORMAT(time,'${@com.moral.common.util.ReportTimeFormat@toMySqlTimeFormat(timePeriod.timeUnits)}') as
         format_time
         FROM
-        `history_minutely` hmi
+        history_${timeUnits} hmi
         <where>
             and hmi.time >= #{timePeriod.startTime}
             and hmi.time <![CDATA[<=]]> #{timePeriod.endTime}

--
Gitblit v1.8.0