LogsRequestExceptionDAO.xml 723 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<!-- 请求异常日志表 -->
<mapper namespace="com.yiboshi.science.dao.LogsRequestExceptionDAO">
    <sql id="allColumns">
        t.id as id, t.ip_address as ipAddress, t.username as username, t.request_count as requestCount, t.request_type as requestType, t.created as created, t.updated as updated
    </sql>

    <select id="getListByPage" resultType="com.yiboshi.science.param.dto.LogsRequestExceptionDTO">
        select * from logs_request_exception
        <where>
            ${ew.sqlSegment}
        </where>
        ORDER BY created desc
    </select>
</mapper>