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(); }