mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
皮带秤实时数据问题修复
This commit is contained in:
@@ -15,7 +15,7 @@ public interface PdcDeviceRealTimeDataRepository
|
||||
|
||||
@Query(
|
||||
value =
|
||||
"select dd.id from t_pdc_device_real_time_data dd inner join t_pdc_device d on dd.device_id = d.id where d.id in :deviceIds and (extract(epoch from (now() - dd.last_save_time)) / 60) >= d.data_save_interval ",
|
||||
"select dd.id from t_pdc_device_real_time_data dd inner join t_pdc_device d on dd.device_id = d.id where d.id in :deviceIds and (extract(epoch from (now() - dd.last_save_time)) / 60) >= d.data_save_interval and (extract(epoch from (now() - dd.time)) / 60) <= 3 * d.data_save_interval",
|
||||
nativeQuery = true)
|
||||
List<String> findNeedToSaveData(List<String> deviceIds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user