| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 | | <?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.order.mapper.PayInfoMapper">  |  |         <insert id="payInfoAdd" parameterType="map">  |  |             insert into xzx_pay_info(pay_order_id,order_id,create_user_id,money,  |  |             account_id,pay_type,open_id,status,create_time)  |  |             values (#{payOrderId},#{orderId},#{createUserId},#{money},  |  |             #{accountId},#{payType},#{openId},#{status},#{createTime})  |  |         </insert>  |  |   |  |   |  |         <select id="selectByOrderIdAndUserId" resultType="com.xzx.gc.entity.PayInfo">  |  |             select pay_type "payType",money from xzx_pay_info where  order_id=#{orderId} and create_user_id=#{userId}  |  |             and pay_type=#{payType}  |  |         </select>  |  |   |  |   |  |     <insert id="addPayInfo">  |  |         INSERT INTO `xzx_pay_info` (`pay_order_id`, `order_id`, `create_user_id`, `money`,  |  |                                     `account_id`, `pay_type`, `open_id`, `status`, `create_time`, `check_num`, `pay_img`, `pay_time`)  |  |         VALUES (#{payOrderId}, NULL, #{createUserId}, #{money}, #{accountId},  |  |                                '1', NULL, #{status}, SYSDATE(), NULL, #{payImg}, #{payTime})  |  |     </insert>  |  |   |  |   |  |   |  |   |  |   |  |   |  |   |  | </mapper> | 
 |