From 09c3a7d258c7bde571f74050156437d2eb86c6c6 Mon Sep 17 00:00:00 2001 From: lizijie <lzjiiie@163.com> Date: Wed, 12 Jun 2019 17:02:40 +0800 Subject: [PATCH] sensor --- src/main/resources/mapper/HistoryDailyMapper.xml | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/HistoryDailyMapper.xml b/src/main/resources/mapper/HistoryDailyMapper.xml index 6fa840a..7628af6 100644 --- a/src/main/resources/mapper/HistoryDailyMapper.xml +++ b/src/main/resources/mapper/HistoryDailyMapper.xml @@ -94,4 +94,20 @@ vdd.monitor_point_id, vdd.device_tech </select> + + <!-- ������������mac������������������������������������������������������ --> + <select id="getTraceabilityData" resultType="java.util.Map"> + SELECT + json ->'$.${sensorKey}[0]' AS '${sensorKey}' + FROM + history_daily + <where> + <if test="mac!=null and mac!=''"> + AND mac=#{mac} + </if> + <if test="time!=null and time!=''"> + AND time=#{time} + </if> + </where> + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0