From fcb8b8cc392b146aa11bbaab9e497f7f13f29d44 Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期一, 26 五月 2025 11:38:17 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/YiWuProject --- hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageHistoryTaskMapper.xml | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageHistoryTaskMapper.xml b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageHistoryTaskMapper.xml index 66f2369..275093f 100644 --- a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageHistoryTaskMapper.xml +++ b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageHistoryTaskMapper.xml @@ -50,12 +50,14 @@ <select id="queryRunTimes" resultType="com.mes.largenscreen.entity.RunTime"> with big_storage_cage_history_task_temp as ( select distinct create_time from hollow_big_storage_cage_history_task where task_type = 5 and - create_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 DAY) + create_time LIKE '%${days}%' ) SELECT t1.create_time AS first_timestamp, t2.create_time AS second_timestamp, - TIMESTAMPDIFF(MINUTE, t1.create_time, t2.create_time) as diff_minutes + TIMESTAMPDIFF(MINUTE, t1.create_time, t2.create_time) as diff_minutes, + (select min(create_time) from big_storage_cage_history_task_temp) as start_timestamp + ,(select max(create_time) from big_storage_cage_history_task_temp) as end_timestamp FROM (SELECT create_time, -- Gitblit v1.8.0