<?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.xzx.gc.pay.mapper.PartnerAccountLogMapper">  
 | 
  <resultMap id="BaseResultMap" type="com.xzx.gc.entity.PartnerAccountLog">  
 | 
    <!--  
 | 
      WARNING - @mbg.generated  
 | 
    -->  
 | 
    <id column="id" jdbcType="INTEGER" property="id" />  
 | 
    <result column="account_id" jdbcType="VARCHAR" property="accountId" />  
 | 
    <result column="flow_no" jdbcType="VARCHAR" property="flowNo" />  
 | 
    <result column="type" jdbcType="VARCHAR" property="type" />  
 | 
    <result column="create_time" jdbcType="VARCHAR" property="createTime" />  
 | 
    <result column="money" jdbcType="VARCHAR" property="money" />  
 | 
    <result column="account_money" jdbcType="VARCHAR" property="accountMoney" />  
 | 
    <result column="hbb" jdbcType="VARCHAR" property="hbb" />  
 | 
    <result column="user_name" jdbcType="VARCHAR" property="userName" />  
 | 
    <result column="user_phone" jdbcType="VARCHAR" property="userPhone" />  
 | 
    <result column="role_name" jdbcType="VARCHAR" property="roleName" />  
 | 
    <result column="approver" jdbcType="VARCHAR" property="approver" />  
 | 
    <result column="approver_time" jdbcType="VARCHAR" property="approverTime" />  
 | 
    <result column="approver_status" jdbcType="VARCHAR" property="approverStatus" />  
 | 
    <result column="del_flag"  property="delFlag" />  
 | 
    <result column="update_time" jdbcType="VARCHAR" property="updateTime" />  
 | 
  </resultMap>  
 | 
  
 | 
    <insert id="addPartnerAccountLog">  
 | 
        INSERT INTO `xzx_partner_account_log` (`account_id`, `flow_no`, `type`, `create_time`,  
 | 
                                               `money`, `account_money`, `hbb`, `user_name`, `user_phone`, `role_name`, `approver_status`, `del_flag`, `old_limit`, `manage_limit`, `new_limit`, `old_limit_fix`, `manage_limit_fix`, `new_limit_fix`)  
 | 
        VALUES (#{accountId}, #{flowNo}, #{type}, #{createTime}, #{money},  
 | 
                              #{accountMoney}, #{hbb}, #{userName}, #{userPhone}, #{roleName}, #{approverStatus},  
 | 
                #{delFlag}, #{oldLimit}, #{manageLimit}, #{newLimit}, #{oldLimitFix}, #{manageLimitFix}, #{newLimitFix})  
 | 
    </insert>  
 | 
  
 | 
  <update id="updateParterAccountLog" parameterType="com.xzx.gc.model.admin.PartnerAccountLogModel">  
 | 
    update xzx_partner_account_log set approver=#{approver} ,approver_time=#{approverTime},  
 | 
    approver_status=#{approverStatus}, update_time=#{updateTime}  
 | 
    <if test="hbb!= null and hbb!=''">  
 | 
      , hbb = #{hbb}  
 | 
    </if>  
 | 
    <if test="accountMoney!= null and accountMoney!=''">  
 | 
      , account_money=#{accountMoney}  
 | 
    </if>  
 | 
    where flow_no=#{flowNo}  
 | 
  </update>  
 | 
</mapper> 
 |