事件接口查询优化
This commit is contained in:
parent
9bdaaf3506
commit
a765bc764e
|
@ -8,9 +8,9 @@ import org.apache.ibatis.annotations.Select;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface EventMapper extends BaseMapper<Event> {
|
public interface EventMapper extends BaseMapper<Event> {
|
||||||
@Select("SELECT * FROM t_event")
|
@Select("SELECT * FROM t_event where track_event = 'START'")
|
||||||
List<Event> selectEvent();
|
List<Event> 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<Event> selectByTime();
|
List<Event> selectByTime();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue