|
- <?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.iformall.mapper.WxPayAccountMapper">
- <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxPayAccount">
- <id column="id" jdbcType="BIGINT" property="id"/>
- <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
- <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
-
- <result column="mch_id" jdbcType="VARCHAR" property="mchId"/>
- <result column="sub_mch_id" jdbcType="VARCHAR" property="subMchId"/>
- <result column="sub_app_id" jdbcType="VARCHAR" property="subAppId"/>
-
- <result column="api_key" jdbcType="VARCHAR" property="apiKey"/>
- <result column="cert_path" jdbcType="VARCHAR" property="certPath"/>
- <result column="merchant_api_key" jdbcType="VARCHAR" property="merchantApiKey"/>
- <result column="merchant_cert_path" jdbcType="VARCHAR" property="merchantCertPath"/>
-
- <result column="notify_url" jdbcType="VARCHAR" property="notifyUrl"/>
- <result column="notify_token" jdbcType="VARCHAR" property="notifyToken"/>
-
- <result column="api_v3_key" jdbcType="VARCHAR" property="apiV3Key"/>
- <result column="cert_serial_no" jdbcType="VARCHAR" property="certSerialNo"/>
- <result column="private_key_path" jdbcType="VARCHAR" property="privateKeyPath"/>
- <result column="private_cert_pem_path" jdbcType="VARCHAR" property="privateCertPemPath"/>
-
- <result column="merchant_apiv3_key" jdbcType="VARCHAR" property="merchantApiv3Key"/>
- <result column="merchant_cert_serial_no" jdbcType="VARCHAR" property="merchantCertSerialNo"/>
- <result column="merchant_key_path" jdbcType="VARCHAR" property="merchantKeyPath"/>
- <result column="merchant_cert_pem_path" jdbcType="VARCHAR" property="merchantCertPemPath"/>
-
- <result column="type" jdbcType="INTEGER" property="type"/>
- <result column="mch_type" jdbcType="INTEGER" property="mchType"/>
- <result column="open_pay" jdbcType="VARCHAR" property="openPay"/>
- <result column="pay_version" jdbcType="INTEGER" property="payVersion"/>
- <result column="share" jdbcType="INTEGER" property="share"/>
- <result column="rate" jdbcType="INTEGER" property="rate"/>
- <result column="real_rate" jdbcType="INTEGER" property="realRate"/>
-
- <result column="is_commission" jdbcType="INTEGER" property="isCommission"/>
- <result column="system_rate" jdbcType="INTEGER" property="systemRate"/>
- <result column="sell_rate" jdbcType="INTEGER" property="sellRate"/>
-
- <result column="service_id" jdbcType="VARCHAR" property="serviceId"/>
- <result column="pay_score_notify_url" jdbcType="VARCHAR" property="payScoreNotifyUrl"/>
-
- <result column="business_type" jdbcType="INTEGER" property="businessType"/>
- <result column="brandid" jdbcType="VARCHAR" property="brandid"/>
- <result column="card_id" jdbcType="VARCHAR" property="cardId"/>
- </resultMap>
-
- <sql id="allColumns">
- `id`,`tenant_id`,`parent_tenant_id`,`mch_id`,`sub_mch_id`,`sub_app_id`,
- `api_key`,`cert_path`,`merchant_api_key`,`merchant_cert_path`,
- `notify_url`,`notify_token`,
- `api_v3_key`,`cert_serial_no`,`private_key_path`,`private_cert_pem_path`,
- `merchant_apiv3_key`,`merchant_cert_serial_no`,`merchant_key_path`,`merchant_cert_pem_path`,
- `type`,`mch_type`,`open_pay`,`pay_version`,`share`,`rate`,`real_rate`,
- `is_commission`,`system_rate`,`sell_rate`,
- `service_id`,`pay_score_notify_url`,
- `business_type`,`brandid`,`card_id`
- </sql>
-
- <sql id="dynamicWhereConditions">
- where 1 = 1
-
- <if test=" null != tenantId and '' != tenantId">
- and `tenant_id` = #{tenantId}
- </if>
- <if test=" null != parentTenantId and '' != parentTenantId">
- and `parent_tenant_id` = #{parentTenantId}
- </if>
-
- <if test=" null != mchId ">
- and `mch_id` = #{mchId}
- </if>
-
- <if test=" null != subMchId ">
- and `sub_mch_id` = #{subMchId}
- </if>
- <if test=" null != type ">
- and `type` = #{type}
- </if>
- <if test=" null != share ">
- and `share` = #{share}
- </if>
- <if test=" null != isCommission ">
- and `is_commission` = #{isCommission}
- </if>
- <if test=" null != ids ">
- and id in
- <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
- #{idItem}
- </foreach>
- </if>
- <if test=" null != sortColumns">order by ${sortColumns}</if>
- </sql>
-
- <select id="findList" parameterType="com.iformall.domain.po.WxPayAccount" resultMap="BaseResultMap">
- select
- <include refid="allColumns"/>
- from wx_pay_account
- <include refid="dynamicWhereConditions"/>
- </select>
-
-
- </mapper>
|