<?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.chushang.system.mapper.SysLoginInfoMapper">
    <sql id="selectDeptVo">
        select t.info_id, t.username, t.status, t.ipaddr, t.msg, t.access_time, t.create_time, t.update_time, t.del_state, t.version,t.create_by,t.update_by
        from sys_login_info t where 1=1
    </sql>
    <resultMap type="com.chushang.system.entity.po.SysLoginInfo" id="SysLoginInfoResult">
        <id     property="infoId"           column="info_id"     />
        <result property="username"     column="username"   />
        <result property="status"        column="status"   />
        <result property="ipaddr"         column="ipaddr"   />
        <result property="msg"         column="msg"   />
        <result property="accessTime"           column="access_time"      />
        <result property="createTime"         column="create_time"    />
        <result property="updateTime"       column="update_time" />
        <result property="delState"         column="del_state"   />
        <result property="version"       column="version" />
        <result property="createBy"         column="create_by"   />
        <result property="updateBy"       column="update_by" />
    </resultMap>

    <select id="pageList" resultMap="SysLoginInfoResult">
        <include refid="selectDeptVo"/>
        <if test="1 == 1">
            ${query.sqlParam.get('sqlWhere')}
        </if>
        ORDER BY t.${query.orderBy} ${query.isAsc}
    </select>
</mapper>
