From 3bb54d86b0a80a13374b10b1a9d9d0f131a85f9d Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Mon, 16 Jul 2018 15:08:58 +0800 Subject: [PATCH] 大屏登录 返回地址信息完善 --- src/main/resources/mapper/HistoryMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/HistoryMapper.xml b/src/main/resources/mapper/HistoryMapper.xml index e19db1a..bef36f5 100644 --- a/src/main/resources/mapper/HistoryMapper.xml +++ b/src/main/resources/mapper/HistoryMapper.xml @@ -115,4 +115,17 @@ AND mp.${regionType}_code = #{regionCode} AND dis.`year` = #{year} </select> + + <select id="getValueByMacAndSize" resultType="java.util.Map"> + SELECT + value, + time + FROM + history + WHERE + mac = #{mac} + ORDER BY + time DESC + LIMIT #{size} + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0