From a765bc764e14e8f63b7ec9ab47e435ff06430d8e Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Wed, 18 May 2022 15:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=8E=A5=E5=8F=A3=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hisense/monitormanage/mapper/EventMapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java b/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java index f1c7d01..a2bad4f 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java @@ -8,9 +8,9 @@ import org.apache.ibatis.annotations.Select; import java.util.List; public interface EventMapper extends BaseMapper { - @Select("SELECT * FROM t_event") + @Select("SELECT * FROM t_event where track_event = 'START'") List selectEvent(); - @Select("SELECT * FROM t_event where TO_DAYS(capture_time) = TO_DAYS(NOW())") + @Select("SELECT * FROM t_event where TO_DAYS(capture_time) = TO_DAYS(NOW()) AND track_event = 'START'") List selectByTime(); }