修改对账逻辑

This commit is contained in:
2024-10-10 13:47:27 +08:00
parent 27cd941fb0
commit c36a352bbf

View File

@@ -122,7 +122,7 @@ public class WeightDeviceDataService
round(sum(d.sz), 2) as sz,
count(1) as cnt
from WeightDeviceDataEntity d where not d.invalid and d.dataUpdateTime >= :start and d.dataUpdateTime <= :end and d.device.id = :deviceId
from WeightDeviceDataEntity d where not d.invalid and d.ecgbTime >= :start and d.ecgbTime <= :end and d.device.id = :deviceId
""",
Tuple.class);
@@ -147,7 +147,7 @@ round(sum(扣重), 2) as kz,
round(sum(实重), 2) as sz,
count(1) as cnt
from 称重信息
where 更新时间>='%s' and 更新时间<='%s'
where 二次过磅时间>='%s' and 二次过磅时间<='%s'
"""
.formatted(
requst.getStart()