From 1f88041780dad4d85bc68bbf4876c80c3fc3b614 Mon Sep 17 00:00:00 2001 From: lizijie <lzjiiie@163.com> Date: Wed, 31 Aug 2022 17:18:17 +0800 Subject: [PATCH] 修改虎丘区AQI中PM2_5的选值 --- src/main/resources/mapper/HistoryMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/HistoryMapper.xml b/src/main/resources/mapper/HistoryMapper.xml index 1cd78ce..aa4967d 100644 --- a/src/main/resources/mapper/HistoryMapper.xml +++ b/src/main/resources/mapper/HistoryMapper.xml @@ -263,4 +263,11 @@ <delete id="dropHistoryTable" parameterType="String"> drop table history_${yearMonthDay} </delete> + + <select id="selectLastDataByMac" resultType="com.moral.entity.History"> + select * from history_${yearMonthDay} + where mac = #{mac} + order by time desc + limit 1 + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0