123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?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.emato.cuspay.dao.mapper.merch.MerchPayCfgMapper" >
- <resultMap id="BaseResultMap" type="com.emato.cuspay.dto.merch.MerchPayCfg" >
- <id column="pay_cfg_sn" property="payCfgSn" jdbcType="VARCHAR" />
- <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
- <result column="merch_wx_api_key" property="merchWxApiKey" jdbcType="VARCHAR" />
- <result column="notify_url" property="notifyUrl" jdbcType="VARCHAR" />
- <result column="pay_chnl_flag" property="payChnlFlag" jdbcType="VARCHAR" />
- <result column="is_valid" property="isValid" jdbcType="CHAR" />
- <result column="remark" property="remark" jdbcType="VARCHAR" />
- <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
- <result column="create_time" property="createTime" jdbcType="VARCHAR" />
- <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
- <result column="mod_time" property="modTime" jdbcType="VARCHAR" />
- <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- pay_cfg_sn, merch_sn, merch_wx_api_key, notify_url, pay_chnl_flag, is_valid, remark, creater_sn, create_time, moder_sn,
- mod_time, tstm
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from merch_pay_cfg
- where pay_cfg_sn = #{payCfgSn,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from merch_pay_cfg
- where pay_cfg_sn = #{payCfgSn,jdbcType=VARCHAR}
- </delete>
- <insert id="insertSelective" parameterType="com.emato.cuspay.dto.merch.MerchPayCfg" >
- insert into merch_pay_cfg
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="payCfgSn != null" >
- pay_cfg_sn,
- </if>
- <if test="merchSn != null" >
- merch_sn,
- </if>
- <if test="merchWxApiKey != null" >
- merch_wx_api_key,
- </if>
- <if test="notifyUrl != null">
- notify_url,
- </if>
- <if test="payChnlFlag != null" >
- pay_chnl_flag,
- </if>
- <if test="isValid != null" >
- is_valid,
- </if>
- <if test="remark != null" >
- remark,
- </if>
- <if test="createrSn != null" >
- creater_sn,
- </if>
- <if test="createTime != null" >
- create_time,
- </if>
- <if test="moderSn != null" >
- moder_sn,
- </if>
- <if test="modTime != null" >
- mod_time,
- </if>
- <if test="tstm != null" >
- tstm,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="payCfgSn != null" >
- #{payCfgSn,jdbcType=VARCHAR},
- </if>
- <if test="merchSn != null" >
- #{merchSn,jdbcType=VARCHAR},
- </if>
- <if test="merchWxApiKey != null" >
- #{merchWxApiKey,jdbcType=VARCHAR},
- </if>
- <if test="notifyUrl != null">
- #{notifyUrl,jdbcType=VARCHAR},
- </if>
- <if test="payChnlFlag != null" >
- #{payChnlFlag,jdbcType=VARCHAR},
- </if>
- <if test="isValid != null" >
- #{isValid,jdbcType=CHAR},
- </if>
- <if test="remark != null" >
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createrSn != null" >
- #{createrSn,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- #{createTime,jdbcType=VARCHAR},
- </if>
- <if test="moderSn != null" >
- #{moderSn,jdbcType=VARCHAR},
- </if>
- <if test="modTime != null" >
- #{modTime,jdbcType=VARCHAR},
- </if>
- <if test="tstm != null" >
- #{tstm,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.emato.cuspay.dto.merch.MerchPayCfg" >
- update merch_pay_cfg
- <set >
- <if test="merchSn != null" >
- merch_sn = #{merchSn,jdbcType=VARCHAR},
- </if>
- <if test="merchWxApiKey != null" >
- merch_wx_api_key = #{merchWxApiKey,jdbcType=VARCHAR},
- </if>
- <if test="notify_url != null">
- notify_url = #{notifyUrl, jdbcType=VARCHAR},
- </if>
- <if test="payChnlFlag != null" >
- pay_chnl_flag = #{payChnlFlag,jdbcType=VARCHAR},
- </if>
- <if test="isValid != null" >
- is_valid = #{isValid,jdbcType=CHAR},
- </if>
- <if test="remark != null" >
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createrSn != null" >
- creater_sn = #{createrSn,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- create_time = #{createTime,jdbcType=VARCHAR},
- </if>
- <if test="moderSn != null" >
- moder_sn = #{moderSn,jdbcType=VARCHAR},
- </if>
- <if test="modTime != null" >
- mod_time = #{modTime,jdbcType=VARCHAR},
- </if>
- <if test="tstm != null" >
- tstm = #{tstm,jdbcType=TIMESTAMP},
- </if>
- </set>
- where pay_cfg_sn = #{payCfgSn,jdbcType=VARCHAR}
- </update>
- <select id="selectByWxMercherSn" resultMap="BaseResultMap" parameterType="java.lang.String">
- SELECT
- <include refid="Base_Column_List" />
- FROM merch_pay_cfg WHERE merch_sn = #{merchSn} AND pay_chnl_flag = "weixin"
- </select>
- <select id="selectMerchPayCfg" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List"/>
- FROM merch_pay_cfg
- </select>
- <select id="getMerchPayCfgByMerchsnAndChnlFlag" resultMap="BaseResultMap" parameterType="com.emato.cuspay.dto.merch.MerchPayCfg">
- SELECT
- <include refid="Base_Column_List" />
- FROM merch_pay_cfg WHERE merch_sn = #{merchSn} AND pay_chnl_flag = #{payChnlFlag}
- </select>
- <select id="getMerchPayCfgByMerchsn" resultMap="BaseResultMap" parameterType="java.lang.String">
- SELECT
- <include refid="Base_Column_List" />
- FROM merch_pay_cfg WHERE merch_sn = #{merchSn}
- </select>
- </mapper>
|