事件接口查询优化

This commit is contained in:
wuweida 2022-05-18 15:15:46 +08:00
parent 9bdaaf3506
commit a765bc764e
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@ import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface EventMapper extends BaseMapper<Event> {
@Select("SELECT * FROM t_event")
@Select("SELECT * FROM t_event where track_event = 'START'")
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();
}