<?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.tmerclub.cloud.user.mapper.UserBalanceLogMapper">
  <resultMap id="userBalanceLogMap" type="com.tmerclub.cloud.user.model.UserBalanceLog">
    <id column="balance_log_id" property="balanceLogId" />
    <result column="create_time" property="createTime"/>
    <result column="update_time" property="updateTime"/>
    <result column="user_id" property="userId"/>
    <result column="recharge_id" property="rechargeId"/>
    <result column="change_balance" property="changeBalance"/>
    <result column="io_type" property="ioType"/>
    <result column="pay_id" property="payId"/>
    <result column="type" property="type"/>
    <result column="is_payed" property="isPayed"/>
    <result column="refund_id" property="refundId"/>
    <result column="pay_sys_type" property="paySysType"/>
  </resultMap>
  <sql id="Vo_Column_List">
    `balance_log_id`,`create_time`,`update_time`,`user_id`,`change_balance`,`io_type`,`pay_id`,`type`,`is_payed`,`recharge_id`,`refund_id`, `pay_sys_type`
  </sql>
  <select id="listToMongodb" resultType="com.tmerclub.cloud.user.model.UserBalanceLog">
    select <include refid="Vo_Column_List"/>
    from user_balance_log
    order by balance_log_id
    limit #{start}, #{size}
  </select>
</mapper>
