1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  | <?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.AccountLogMapper"> 
 |      <insert id="insertAccountLog"> 
 |          insert into xzx_account_log (account_id, old_money, new_money, old_limit, new_limit, old_fixed_limit, new_fixed_limit,create_user_id,create_time,channel_type,order_id) 
 |          values ( 
 |              #{accountId}, #{oldMoney}, #{newMoney}, #{oldLimit}, #{newLimit}, #{oldFixedLimit}, #{newFixedLimit},#{createUserId},#{createTime},#{channelType},#{orderId} 
 |          ) 
 |      </insert> 
 |    
 |      <select id="getModelByPayOrderId" resultType="com.xzx.gc.model.admin.MoneyModel"> 
 |          select 
 |              IFNULL(d.old_limit,'0') as oldLimit, 
 |              IFNULL(d.new_limit,'0') as newLimit, 
 |              IFNULL(d.old_fixed_limit,'0') as oldFixedLimit, 
 |              IFNULL(d.new_fixed_limit,'0') as newFixedLimit 
 |          from xzx_account_log d 
 |          where d.order_id = #{payOrderId} and create_user_id=#{createUserId} 
 |      </select> 
 |    
 |  </mapper> 
 |  
  |