From 9880d87f87b074b45150a66867c0d1870e6cb3e2 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Thu, 06 Aug 2020 14:31:13 +0800 Subject: [PATCH] update --- src/main/resources/mapper/HistoryHourlyMapper.xml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/HistoryHourlyMapper.xml b/src/main/resources/mapper/HistoryHourlyMapper.xml index aa83d96..fc16813 100644 --- a/src/main/resources/mapper/HistoryHourlyMapper.xml +++ b/src/main/resources/mapper/HistoryHourlyMapper.xml @@ -68,7 +68,7 @@ <select id="getBeamByMacs" resultType="java.util.Map"> SELECT DATE_FORMAT(h.time,'%Y-%m-%d %H:%i:%s') time, - avg(h.json->'$.e12[0]') beam + round(avg(h.json->'$.e12[0]'),0) beam FROM history_hourly h WHERE h.mac in <foreach item="item" collection="macs" index="index" open="(" separator="," close=")">#{item}</foreach> -- Gitblit v1.8.0