package org.ta.pddserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.ta.pdd.entity.AreaEntity;
import org.ta.pdd.entity.LogsPddDownEntity;
import org.ta.pddserver.model.api.request.AreaListRequest;

import java.util.List;

@Mapper
public interface LogsPddDownMapper extends BaseMapper<LogsPddDownEntity> {

    @Select("SELECT `uid`, `created` FROM `logs_pdd_down` WHERE `req` LIKE '%${keyWord}%';")
    List<LogsPddDownEntity> findByKeyWord(@Param("keyWord") String keyWord);
}
