From d3e76a8afe548f5f9e51de37f26b3cb8aa7374a1 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 26 五月 2025 11:38:09 +0800
Subject: [PATCH] 大屏样式修改
---
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