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.LogsPddIoEntity;

import java.util.List;

@Mapper
public interface LogsPddIoMapper extends BaseMapper<LogsPddIoEntity> {

    @Select("SELECT `uid`, `created`, `remarks`, `action` FROM `logs_pdd_io` WHERE `req` LIKE '%${keyword}%';")
    List<LogsPddIoEntity> selectByReqKeyword(@Param("keyword") String keyword);
}
