<?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.ActivityFeeMapper" >
|
<resultMap id="BaseResultMap" type="com.nuvole.four.domain.ActivityFee" >
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="org_id" property="orgId" jdbcType="BIGINT" />
|
<result column="org_code" property="orgCode" jdbcType="VARCHAR" />
|
<result column="name" property="name" jdbcType="VARCHAR" />
|
<result column="code" property="code" jdbcType="VARCHAR" />
|
<result column="begin_time" property="beginTime" jdbcType="TIMESTAMP" />
|
<result column="end_time" property="endTime" jdbcType="TIMESTAMP" />
|
<result column="expire_time" property="expireTime" jdbcType="TIMESTAMP" />
|
<result column="total_fee" property="totalFee" jdbcType="BIGINT" />
|
<result column="use_fee" property="useFee" jdbcType="BIGINT" />
|
<result column="surplus_fee" property="surplusFee" jdbcType="BIGINT" />
|
<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="status" property="status" jdbcType="INTEGER" />
|
<result column="deleted" property="deleted" jdbcType="INTEGER" />
|
<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, org_id, org_code, name, code, begin_time, end_time, expire_time, total_fee, use_fee, surplus_fee, 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, status, deleted, 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 activity_fee
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
update activity_fee set deleted = 1
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.nuvole.four.domain.ActivityFee" >
|
insert into activity_fee (
|
id,
|
org_id,
|
org_code,
|
name,
|
code,
|
begin_time,
|
end_time,
|
expire_time,
|
total_fee,
|
use_fee,
|
surplus_fee,
|
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,
|
status,
|
deleted,
|
create_by,
|
create_time,
|
update_by,
|
update_time
|
)
|
values (
|
#{id,jdbcType=BIGINT},
|
#{orgId,jdbcType=BIGINT},
|
#{orgCode,jdbcType=VARCHAR},
|
#{name,jdbcType=VARCHAR},
|
#{code,jdbcType=VARCHAR},
|
#{beginTime,jdbcType=TIMESTAMP},
|
#{endTime,jdbcType=TIMESTAMP},
|
#{expireTime,jdbcType=TIMESTAMP},
|
#{totalFee,jdbcType=BIGINT},
|
#{useFee,jdbcType=BIGINT},
|
#{surplusFee,jdbcType=BIGINT},
|
#{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},
|
#{status,jdbcType=INTEGER},
|
#{deleted,jdbcType=INTEGER},
|
#{createBy,jdbcType=BIGINT},
|
#{createTime,jdbcType=TIMESTAMP},
|
#{updateBy,jdbcType=BIGINT},
|
#{updateTime,jdbcType=TIMESTAMP}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.nuvole.four.domain.ActivityFee" >
|
insert into activity_fee
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="id != null" >
|
id,
|
</if>
|
<if test="orgId != null" >
|
org_id,
|
</if>
|
<if test="orgCode != null" >
|
org_code,
|
</if>
|
<if test="name != null" >
|
name,
|
</if>
|
<if test="code != null" >
|
code,
|
</if>
|
<if test="beginTime != null" >
|
begin_time,
|
</if>
|
<if test="endTime != null" >
|
end_time,
|
</if>
|
<if test="expireTime != null" >
|
expire_time,
|
</if>
|
<if test="totalFee != null" >
|
total_fee,
|
</if>
|
<if test="useFee != null" >
|
use_fee,
|
</if>
|
<if test="surplusFee != null" >
|
surplus_fee,
|
</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="status != null" >
|
status,
|
</if>
|
<if test="deleted != null" >
|
deleted,
|
</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="orgId != null" >
|
#{orgId,jdbcType=BIGINT},
|
</if>
|
<if test="orgCode != null" >
|
#{orgCode,jdbcType=VARCHAR},
|
</if>
|
<if test="name != null" >
|
#{name,jdbcType=VARCHAR},
|
</if>
|
<if test="code != null" >
|
#{code,jdbcType=VARCHAR},
|
</if>
|
<if test="beginTime != null" >
|
#{beginTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="endTime != null" >
|
#{endTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="expireTime != null" >
|
#{expireTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="totalFee != null" >
|
#{totalFee,jdbcType=BIGINT},
|
</if>
|
<if test="useFee != null" >
|
#{useFee,jdbcType=BIGINT},
|
</if>
|
<if test="surplusFee != null" >
|
#{surplusFee,jdbcType=BIGINT},
|
</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="status != null" >
|
#{status,jdbcType=INTEGER},
|
</if>
|
<if test="deleted != null" >
|
#{deleted,jdbcType=INTEGER},
|
</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.ActivityFee" >
|
update activity_fee
|
<set >
|
<if test="orgId != null" >
|
org_id = #{orgId,jdbcType=BIGINT},
|
</if>
|
<if test="orgCode != null" >
|
org_code = #{orgCode,jdbcType=VARCHAR},
|
</if>
|
<if test="name != null" >
|
name = #{name,jdbcType=VARCHAR},
|
</if>
|
<if test="code != null" >
|
code = #{code,jdbcType=VARCHAR},
|
</if>
|
<if test="beginTime != null" >
|
begin_time = #{beginTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="endTime != null" >
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="expireTime != null" >
|
expire_time = #{expireTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="totalFee != null" >
|
total_fee = #{totalFee,jdbcType=BIGINT},
|
</if>
|
<if test="useFee != null" >
|
use_fee = #{useFee,jdbcType=BIGINT},
|
</if>
|
<if test="surplusFee != null" >
|
surplus_fee = #{surplusFee,jdbcType=BIGINT},
|
</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="status != null" >
|
status = #{status,jdbcType=INTEGER},
|
</if>
|
<if test="deleted != null" >
|
deleted = #{deleted,jdbcType=INTEGER},
|
</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.ActivityFee" >
|
update activity_fee
|
set
|
org_id = #{orgId,jdbcType=BIGINT},
|
org_code = #{orgCode,jdbcType=VARCHAR},
|
name = #{name,jdbcType=VARCHAR},
|
code = #{code,jdbcType=VARCHAR},
|
begin_time = #{beginTime,jdbcType=TIMESTAMP},
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
expire_time = #{expireTime,jdbcType=TIMESTAMP},
|
total_fee = #{totalFee,jdbcType=BIGINT},
|
use_fee = #{useFee,jdbcType=BIGINT},
|
surplus_fee = #{surplusFee,jdbcType=BIGINT},
|
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},
|
status = #{status,jdbcType=INTEGER},
|
deleted = #{deleted,jdbcType=INTEGER},
|
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>
|