<?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="org.springblade.modules.log.zxLog.mapper.ZxLogMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="logResultMap" type="org.springblade.modules.log.zxLog.entity.ZxLogEntity">
        <result column="id" property="id"/>
        <result column="old_user_id" property="oldUserId"/>
        <result column="new_user_id" property="newUserId"/>
        <result column="create_user" property="createUser"/>
        <result column="create_dept" property="createDept"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="status" property="status"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>


    <select id="selectLogPage" resultMap="logResultMap">
        select * from zx_log where is_deleted = 0
    </select>


    <select id="exportLog" resultType="org.springblade.modules.log.zxLog.excel.ZxLogExcel">
        SELECT * FROM zx_log ${ew.customSqlSegment}
    </select>

</mapper>
