保留4位小时

This commit is contained in:
gongjiale 2025-02-18 19:41:16 +08:00
parent fcf644323f
commit 33c829363c
1 changed files with 1 additions and 1 deletions

View File

@ -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