IPaymentPipelineDao.xml
1.99 KB
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
32
33
34
35
36
37
38
39
40
41
42
<?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.diligrp.cashier.pipeline.dao.IPaymentPipelineDao">
<resultMap id="PaymentPipelineMap" type="com.diligrp.cashier.pipeline.model.PaymentPipelineDO">
<id column="id" property="id"/>
<result column="mch_id" property="mchId"/>
<result column="pipeline_id" property="pipelineId"/>
<result column="channel_id" property="channelId"/>
<result column="type" property="type"/>
<result column="name" property="name"/>
<result column="uri" property="uri"/>
<result column="param" property="param"/>
<result column="state" property="state"/>
<result column="created_time" property="createdTime"/>
<result column="modified_time" property="modifiedTime"/>
</resultMap>
<resultMap id="WechatParamMap" type="com.diligrp.cashier.pipeline.model.WechatParam">
<id column="id" property="id"/>
<result column="pipeline_id" property="pipelineId"/>
<result column="mch_id" property="mchId"/>
<result column="app_id" property="appId"/>
<result column="app_secret" property="appSecret"/>
<result column="serial_no" property="serialNo"/>
<result column="private_key" property="privateKey"/>
<result column="wechat_serial_no" property="wechatSerialNo"/>
<result column="wechat_public_key" property="wechatPublicKey"/>
<result column="api_v3_key" property="apiV3Key"/>
<result column="type" property="type"/>
<result column="created_time" property="createdTime"/>
</resultMap>
<select id="listPaymentPipelines" resultMap="PaymentPipelineMap">
SELECT * FROM upay_payment_pipeline
</select>
<select id="findWechatParam" parameterType="long" resultMap="WechatParamMap">
SELECT * FROM upay_wechat_param WHERE pipeline_id = #{pipelineId}
</select>
</mapper>