<?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.nuvole.four.mapper.ChannelInfoMapper" >
|
<resultMap id="BaseResultMap" type="com.nuvole.four.domain.ChannelInfo" >
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="channel_code" property="channelCode" jdbcType="VARCHAR" />
|
<result column="channel_name" property="channelName" jdbcType="VARCHAR" />
|
<result column="extend_json" property="extendJson" jdbcType="VARCHAR" />
|
<result column="online_agree_wx_rate" property="onlineAgreeWxRate" jdbcType="DECIMAL" />
|
<result column="online_agree_zfb_rate" property="onlineAgreeZfbRate" jdbcType="DECIMAL" />
|
<result column="online_agree_unionpay_rate" property="onlineAgreeUnionpayRate" jdbcType="DECIMAL" />
|
<result column="offline_agree_wx_rate" property="offlineAgreeWxRate" jdbcType="DECIMAL" />
|
<result column="offline_agree_zfb_rate" property="offlineAgreeZfbRate" jdbcType="DECIMAL" />
|
<result column="offline_agree_unionpay_rate" property="offlineAgreeUnionpayRate" jdbcType="DECIMAL" />
|
<result column="online_mer_wx_rate" property="onlineMerWxRate" jdbcType="DECIMAL" />
|
<result column="online_mer_zfb_rate" property="onlineMerZfbRate" jdbcType="DECIMAL" />
|
<result column="online_mer_unionpay_rate" property="onlineMerUnionpayRate" jdbcType="DECIMAL" />
|
<result column="offline_mer_wx_rate" property="offlineMerWxRate" jdbcType="DECIMAL" />
|
<result column="offline_mer_zfb_rate" property="offlineMerZfbRate" jdbcType="DECIMAL" />
|
<result column="offline_mer_unionpay_rate" property="offlineMerUnionpayRate" jdbcType="DECIMAL" />
|
<result column="certification" property="certification" jdbcType="VARCHAR" />
|
<result column="status" property="status" jdbcType="INTEGER" />
|
<result column="remark" property="remark" jdbcType="VARCHAR" />
|
<result column="create_by" property="createBy" jdbcType="BIGINT" />
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
<result column="update_by" property="updateBy" jdbcType="BIGINT" />
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
id, channel_code, channel_name, extend_json, online_agree_wx_rate, online_agree_zfb_rate, online_agree_unionpay_rate, offline_agree_wx_rate, offline_agree_zfb_rate, offline_agree_unionpay_rate, online_mer_wx_rate, online_mer_zfb_rate, online_mer_unionpay_rate, offline_mer_wx_rate, offline_mer_zfb_rate, offline_mer_unionpay_rate, certification, status, remark, create_by, create_time, update_by, update_time
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
select
|
<include refid="Base_Column_List" />
|
from channel_info
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
delete from channel_info
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.nuvole.four.domain.ChannelInfo" >
|
insert into channel_info (
|
id,
|
channel_code,
|
channel_name,
|
extend_json,
|
online_agree_wx_rate,
|
online_agree_zfb_rate,
|
online_agree_unionpay_rate,
|
offline_agree_wx_rate,
|
offline_agree_zfb_rate,
|
offline_agree_unionpay_rate,
|
online_mer_wx_rate,
|
online_mer_zfb_rate,
|
online_mer_unionpay_rate,
|
offline_mer_wx_rate,
|
offline_mer_zfb_rate,
|
offline_mer_unionpay_rate,
|
certification,
|
status,
|
remark,
|
create_by,
|
create_time,
|
update_by,
|
update_time
|
)
|
values (
|
#{id,jdbcType=BIGINT},
|
#{channelCode,jdbcType=VARCHAR},
|
#{channelName,jdbcType=VARCHAR},
|
#{extendJson,jdbcType=VARCHAR},
|
#{onlineAgreeWxRate,jdbcType=DECIMAL},
|
#{onlineAgreeZfbRate,jdbcType=DECIMAL},
|
#{onlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
#{offlineAgreeWxRate,jdbcType=DECIMAL},
|
#{offlineAgreeZfbRate,jdbcType=DECIMAL},
|
#{offlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
#{onlineMerWxRate,jdbcType=DECIMAL},
|
#{onlineMerZfbRate,jdbcType=DECIMAL},
|
#{onlineMerUnionpayRate,jdbcType=DECIMAL},
|
#{offlineMerWxRate,jdbcType=DECIMAL},
|
#{offlineMerZfbRate,jdbcType=DECIMAL},
|
#{offlineMerUnionpayRate,jdbcType=DECIMAL},
|
#{certification,jdbcType=VARCHAR},
|
#{status,jdbcType=INTEGER},
|
#{remark,jdbcType=VARCHAR},
|
#{createBy,jdbcType=BIGINT},
|
#{createTime,jdbcType=TIMESTAMP},
|
#{updateBy,jdbcType=BIGINT},
|
#{updateTime,jdbcType=TIMESTAMP}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.nuvole.four.domain.ChannelInfo" >
|
insert into channel_info
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="id != null" >
|
id,
|
</if>
|
<if test="channelCode != null" >
|
channel_code,
|
</if>
|
<if test="channelName != null" >
|
channel_name,
|
</if>
|
<if test="extendJson != null" >
|
extend_json,
|
</if>
|
<if test="onlineAgreeWxRate != null" >
|
online_agree_wx_rate,
|
</if>
|
<if test="onlineAgreeZfbRate != null" >
|
online_agree_zfb_rate,
|
</if>
|
<if test="onlineAgreeUnionpayRate != null" >
|
online_agree_unionpay_rate,
|
</if>
|
<if test="offlineAgreeWxRate != null" >
|
offline_agree_wx_rate,
|
</if>
|
<if test="offlineAgreeZfbRate != null" >
|
offline_agree_zfb_rate,
|
</if>
|
<if test="offlineAgreeUnionpayRate != null" >
|
offline_agree_unionpay_rate,
|
</if>
|
<if test="onlineMerWxRate != null" >
|
online_mer_wx_rate,
|
</if>
|
<if test="onlineMerZfbRate != null" >
|
online_mer_zfb_rate,
|
</if>
|
<if test="onlineMerUnionpayRate != null" >
|
online_mer_unionpay_rate,
|
</if>
|
<if test="offlineMerWxRate != null" >
|
offline_mer_wx_rate,
|
</if>
|
<if test="offlineMerZfbRate != null" >
|
offline_mer_zfb_rate,
|
</if>
|
<if test="offlineMerUnionpayRate != null" >
|
offline_mer_unionpay_rate,
|
</if>
|
<if test="certification != null" >
|
certification,
|
</if>
|
<if test="status != null" >
|
status,
|
</if>
|
<if test="remark != null" >
|
remark,
|
</if>
|
<if test="createBy != null" >
|
create_by,
|
</if>
|
<if test="createTime != null" >
|
create_time,
|
</if>
|
<if test="updateBy != null" >
|
update_by,
|
</if>
|
<if test="updateTime != null" >
|
update_time,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="id != null" >
|
#{id,jdbcType=BIGINT},
|
</if>
|
<if test="channelCode != null" >
|
#{channelCode,jdbcType=VARCHAR},
|
</if>
|
<if test="channelName != null" >
|
#{channelName,jdbcType=VARCHAR},
|
</if>
|
<if test="extendJson != null" >
|
#{extendJson,jdbcType=VARCHAR},
|
</if>
|
<if test="onlineAgreeWxRate != null" >
|
#{onlineAgreeWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineAgreeZfbRate != null" >
|
#{onlineAgreeZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineAgreeUnionpayRate != null" >
|
#{onlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineAgreeWxRate != null" >
|
#{offlineAgreeWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineAgreeZfbRate != null" >
|
#{offlineAgreeZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineAgreeUnionpayRate != null" >
|
#{offlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineMerWxRate != null" >
|
#{onlineMerWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineMerZfbRate != null" >
|
#{onlineMerZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineMerUnionpayRate != null" >
|
#{onlineMerUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineMerWxRate != null" >
|
#{offlineMerWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineMerZfbRate != null" >
|
#{offlineMerZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineMerUnionpayRate != null" >
|
#{offlineMerUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="certification != null" >
|
#{certification,jdbcType=VARCHAR},
|
</if>
|
<if test="status != null" >
|
#{status,jdbcType=INTEGER},
|
</if>
|
<if test="remark != null" >
|
#{remark,jdbcType=VARCHAR},
|
</if>
|
<if test="createBy != null" >
|
#{createBy,jdbcType=BIGINT},
|
</if>
|
<if test="createTime != null" >
|
#{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null" >
|
#{updateBy,jdbcType=BIGINT},
|
</if>
|
<if test="updateTime != null" >
|
#{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.nuvole.four.domain.ChannelInfo" >
|
update channel_info
|
<set >
|
<if test="channelCode != null" >
|
channel_code = #{channelCode,jdbcType=VARCHAR},
|
</if>
|
<if test="channelName != null" >
|
channel_name = #{channelName,jdbcType=VARCHAR},
|
</if>
|
<if test="extendJson != null" >
|
extend_json = #{extendJson,jdbcType=VARCHAR},
|
</if>
|
<if test="onlineAgreeWxRate != null" >
|
online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineAgreeZfbRate != null" >
|
online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineAgreeUnionpayRate != null" >
|
online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineAgreeWxRate != null" >
|
offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineAgreeZfbRate != null" >
|
offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineAgreeUnionpayRate != null" >
|
offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineMerWxRate != null" >
|
online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineMerZfbRate != null" >
|
online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="onlineMerUnionpayRate != null" >
|
online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineMerWxRate != null" >
|
offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineMerZfbRate != null" >
|
offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL},
|
</if>
|
<if test="offlineMerUnionpayRate != null" >
|
offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL},
|
</if>
|
<if test="certification != null" >
|
certification = #{certification,jdbcType=VARCHAR},
|
</if>
|
<if test="status != null" >
|
status = #{status,jdbcType=INTEGER},
|
</if>
|
<if test="remark != null" >
|
remark = #{remark,jdbcType=VARCHAR},
|
</if>
|
<if test="createBy != null" >
|
create_by = #{createBy,jdbcType=BIGINT},
|
</if>
|
<if test="createTime != null" >
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null" >
|
update_by = #{updateBy,jdbcType=BIGINT},
|
</if>
|
<if test="updateTime != null" >
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
</set>
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.nuvole.four.domain.ChannelInfo" >
|
update channel_info
|
set
|
channel_code = #{channelCode,jdbcType=VARCHAR},
|
channel_name = #{channelName,jdbcType=VARCHAR},
|
extend_json = #{extendJson,jdbcType=VARCHAR},
|
online_agree_wx_rate = #{onlineAgreeWxRate,jdbcType=DECIMAL},
|
online_agree_zfb_rate = #{onlineAgreeZfbRate,jdbcType=DECIMAL},
|
online_agree_unionpay_rate = #{onlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
offline_agree_wx_rate = #{offlineAgreeWxRate,jdbcType=DECIMAL},
|
offline_agree_zfb_rate = #{offlineAgreeZfbRate,jdbcType=DECIMAL},
|
offline_agree_unionpay_rate = #{offlineAgreeUnionpayRate,jdbcType=DECIMAL},
|
online_mer_wx_rate = #{onlineMerWxRate,jdbcType=DECIMAL},
|
online_mer_zfb_rate = #{onlineMerZfbRate,jdbcType=DECIMAL},
|
online_mer_unionpay_rate = #{onlineMerUnionpayRate,jdbcType=DECIMAL},
|
offline_mer_wx_rate = #{offlineMerWxRate,jdbcType=DECIMAL},
|
offline_mer_zfb_rate = #{offlineMerZfbRate,jdbcType=DECIMAL},
|
offline_mer_unionpay_rate = #{offlineMerUnionpayRate,jdbcType=DECIMAL},
|
certification = #{certification,jdbcType=VARCHAR},
|
status = #{status,jdbcType=INTEGER},
|
remark = #{remark,jdbcType=VARCHAR},
|
create_by = #{createBy,jdbcType=BIGINT},
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
update_by = #{updateBy,jdbcType=BIGINT},
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|