mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 23:57:12 +08:00
处理小数位
This commit is contained in:
@@ -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,
|
||||
round(sum(d.run_hours),2) as run_hours,
|
||||
round(sum(d.run_hours)::numeric,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 , *
|
||||
|
||||
Reference in New Issue
Block a user