处理小数位

This commit is contained in:
2024-06-02 21:37:10 +08:00
parent c9b6909ae9
commit 7024cec725

View File

@@ -73,7 +73,7 @@ select gen_random_uuid()::text as id,
'' as update_user_id,
null as file_ids,
round(sum(d.xx), 2) as days,
sum(d.run_hours) as run_hours,
round(sum(d.run_hours),2) as run_hours,
count(1) as cnt,
array_agg(d.id) as ids
from ((select 1.0 / count(1) over (partition by date_trunc('day', date)) as xx , *