LogsExceptionDAO.xml 746 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.LogsExceptionDAO">
    <sql id="allColumns">
        t.id as id, t.log_level as logLevel, t.short_title as shortTitle, t.ip_address as ipAddress, t.customer_id as customerId, t.page_url as pageUrl, t.request_url as requestUrl, t.message as message,
        t.created as created
    </sql>
    <select id="getListByPage" resultType="com.yiboshi.science.param.dto.LogsExceptionDTO">
        select * from logs_exception
        <where>
            ${ew.sqlSegment}
        </where>
        ORDER BY created desc
    </select>
</mapper>