From 87db70e35f8e562a17c02ef20fa16512871b0e63 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期六, 03 八月 2024 14:17:21 +0800
Subject: [PATCH] 优云录像可用
---
ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
index d10f643..0932367 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/YwPointMapper.xml
@@ -52,4 +52,15 @@
</where>
</select>
+ <select id="home" resultType="com.ycl.platform.domain.entity.YwPoint">
+ <![CDATA[
+ SELECT id, point_name, start_time, end_time, status
+ FROM t_yw_point
+ WHERE
+ deleted = 0
+ AND TIMESTAMPDIFF(MONTH, NOW(), end_time) <= (SELECT config_value FROM sys_config WHERE config_key = 'operation.and.maintenance.expiration.warning.time')
+ ORDER BY end_time
+ ]]>
+ </select>
+
</mapper>
--
Gitblit v1.8.0