mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 15:55:18 +08:00
限制皮带秤回收率
This commit is contained in:
@@ -210,8 +210,8 @@ public class PdcDeviceDataService
|
||||
|
||||
tmp5 as (select tmp4.*,
|
||||
tmp3.diff as ym_diff,
|
||||
round(case when tmp3.diff is null or tmp3.diff = 0 then 0 else tmp4.diff / tmp3.diff * 100 end,
|
||||
2) as percent
|
||||
max(round(case when tmp3.diff is null or tmp3.diff = 0 then 0 else tmp4.diff / tmp3.diff * 100 end,
|
||||
2), 100) as percent
|
||||
from tmp4
|
||||
left join tmp3 on tmp4.tb = tmp3.tb)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user