保留4位小时
This commit is contained in:
parent
fcf644323f
commit
33c829363c
|
@ -40,7 +40,7 @@
|
|||
<select id="queryMonth" resultMap="SensorMonthResultMap">
|
||||
SELECT
|
||||
t.SN,
|
||||
COALESCE(AVG(r.DS), 0) AS "avg_value", -- 如果没有数据,返回 0
|
||||
ROUND(COALESCE(AVG(r.DS), 0), 4) AS "avg_value",
|
||||
dept.dept_id,
|
||||
TO_CHAR(TO_DATE(#{lastMonth}, 'YYYY-MM'), 'YYYY') AS year,
|
||||
TO_CHAR(TO_DATE(#{lastMonth}, 'YYYY-MM'), 'MM') AS month
|
||||
|
|
Loading…
Reference in New Issue