<?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.nq.dao.SiteSettingMapper" >
|
<resultMap id="BaseResultMap" type="com.nq.pojo.SiteSetting" >
|
<constructor >
|
<idArg column="id" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="buy_fee" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="sell_fee" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="stay_fee" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="duty_fee" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="stay_max_days" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="buy_min_amt" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="charge_min_amt" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="buy_min_num" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="force_stop_fee" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="buy_max_amt_percent" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="force_stop_percent" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="hight_and_low" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="with_min_amt" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="crease_max_percent" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="buy_max_num" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="with_time_begin" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="with_time_end" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="trans_am_begin" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_am_end" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_pm_begin" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_pm_end" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_am_begin_us" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_am_end_us" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_pm_begin_us" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_pm_end_us" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="with_fee_single" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="with_fee_percent" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="site_lever" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="buy_same_times" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="buy_same_nums" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="buy_num_times" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="buy_num_lots" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="cant_sell_times" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="kc_crease_max_percent" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="stock_days" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
<arg column="stock_rate" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="stock_chaa" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="stock_chab" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="stock_chac" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="force_stop_remind_ratio" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="cy_crease_max_percent" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="fall_buy_display" jdbcType="TINYINT" javaType="java.lang.Byte" />
|
<arg column="trans_am_begin_hk" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_am_end_hk" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_pm_begin_hk" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="trans_pm_end_hk" jdbcType="VARCHAR" javaType="java.lang.String" />
|
<arg column="vip_qc_max_amt" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
<arg column="hk_exchange_rate" jdbcType="DECIMAL" javaType="java.math.BigDecimal" />
|
</constructor>
|
</resultMap>
|
<sql id="Example_Where_Clause" >
|
<where >
|
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
<if test="criteria.valid" >
|
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
<foreach collection="criteria.criteria" item="criterion" >
|
<choose >
|
<when test="criterion.noValue" >
|
and ${criterion.condition}
|
</when>
|
<when test="criterion.singleValue" >
|
and ${criterion.condition} #{criterion.value}
|
</when>
|
<when test="criterion.betweenValue" >
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
</when>
|
<when test="criterion.listValue" >
|
and ${criterion.condition}
|
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
#{listItem}
|
</foreach>
|
</when>
|
</choose>
|
</foreach>
|
</trim>
|
</if>
|
</foreach>
|
</where>
|
</sql>
|
<sql id="Update_By_Example_Where_Clause" >
|
<where >
|
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
<if test="criteria.valid" >
|
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
<foreach collection="criteria.criteria" item="criterion" >
|
<choose >
|
<when test="criterion.noValue" >
|
and ${criterion.condition}
|
</when>
|
<when test="criterion.singleValue" >
|
and ${criterion.condition} #{criterion.value}
|
</when>
|
<when test="criterion.betweenValue" >
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
</when>
|
<when test="criterion.listValue" >
|
and ${criterion.condition}
|
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
#{listItem}
|
</foreach>
|
</when>
|
</choose>
|
</foreach>
|
</trim>
|
</if>
|
</foreach>
|
</where>
|
</sql>
|
<sql id="Base_Column_List" >
|
id, buy_fee, sell_fee, stay_fee, duty_fee, stay_max_days, buy_min_amt, charge_min_amt,
|
buy_min_num, force_stop_fee, buy_max_amt_percent, force_stop_percent, hight_and_low,
|
with_min_amt, crease_max_percent, buy_max_num, with_time_begin, with_time_end, trans_am_begin,
|
trans_am_end, trans_pm_begin, trans_pm_end, trans_am_begin_us, trans_am_end_us, trans_pm_begin_us,
|
trans_pm_end_us, with_fee_single, with_fee_percent, site_lever, buy_same_times, buy_same_nums,
|
buy_num_times, buy_num_lots, cant_sell_times, kc_crease_max_percent, stock_days,
|
stock_rate, stock_chaa, stock_chab, stock_chac, force_stop_remind_ratio, cy_crease_max_percent,
|
fall_buy_display, trans_am_begin_hk, trans_am_end_hk, trans_pm_begin_hk, trans_pm_end_hk,
|
vip_qc_max_amt, hk_exchange_rate
|
</sql>
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.nq.pojo.SiteSettingExample" >
|
select
|
<if test="distinct" >
|
distinct
|
</if>
|
<include refid="Base_Column_List" />
|
from site_setting
|
<if test="_parameter != null" >
|
<include refid="Example_Where_Clause" />
|
</if>
|
<if test="orderByClause != null" >
|
order by ${orderByClause}
|
</if>
|
</select>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
from site_setting
|
where id = #{id,jdbcType=INTEGER}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from site_setting
|
where id = #{id,jdbcType=INTEGER}
|
</delete>
|
<delete id="deleteByExample" parameterType="com.nq.pojo.SiteSettingExample" >
|
delete from site_setting
|
<if test="_parameter != null" >
|
<include refid="Example_Where_Clause" />
|
</if>
|
</delete>
|
<insert id="insert" parameterType="com.nq.pojo.SiteSetting" >
|
<selectKey resultType="java.lang.Integer" keyProperty="id" order="BEFORE" >
|
SELECT LAST_INSERT_ID()
|
</selectKey>
|
insert into site_setting (id, buy_fee, sell_fee,
|
stay_fee, duty_fee, stay_max_days,
|
buy_min_amt, charge_min_amt, buy_min_num,
|
force_stop_fee, buy_max_amt_percent, force_stop_percent,
|
hight_and_low, with_min_amt, crease_max_percent,
|
buy_max_num, with_time_begin, with_time_end,
|
trans_am_begin, trans_am_end, trans_pm_begin,
|
trans_pm_end, trans_am_begin_us, trans_am_end_us,
|
trans_pm_begin_us, trans_pm_end_us, with_fee_single,
|
with_fee_percent, site_lever, buy_same_times,
|
buy_same_nums, buy_num_times, buy_num_lots,
|
cant_sell_times, kc_crease_max_percent, stock_days,
|
stock_rate, stock_chaa, stock_chab,
|
stock_chac, force_stop_remind_ratio, cy_crease_max_percent,
|
fall_buy_display, trans_am_begin_hk, trans_am_end_hk,
|
trans_pm_begin_hk, trans_pm_end_hk, vip_qc_max_amt,
|
hk_exchange_rate)
|
values (#{id,jdbcType=INTEGER}, #{buyFee,jdbcType=DECIMAL}, #{sellFee,jdbcType=DECIMAL},
|
#{stayFee,jdbcType=DECIMAL}, #{dutyFee,jdbcType=DECIMAL}, #{stayMaxDays,jdbcType=INTEGER},
|
#{buyMinAmt,jdbcType=INTEGER}, #{chargeMinAmt,jdbcType=INTEGER}, #{buyMinNum,jdbcType=INTEGER},
|
#{forceStopFee,jdbcType=DECIMAL}, #{buyMaxAmtPercent,jdbcType=DECIMAL}, #{forceStopPercent,jdbcType=DECIMAL},
|
#{hightAndLow,jdbcType=DECIMAL}, #{withMinAmt,jdbcType=INTEGER}, #{creaseMaxPercent,jdbcType=DECIMAL},
|
#{buyMaxNum,jdbcType=INTEGER}, #{withTimeBegin,jdbcType=INTEGER}, #{withTimeEnd,jdbcType=INTEGER},
|
#{transAmBegin,jdbcType=VARCHAR}, #{transAmEnd,jdbcType=VARCHAR}, #{transPmBegin,jdbcType=VARCHAR},
|
#{transPmEnd,jdbcType=VARCHAR}, #{transAmBeginUs,jdbcType=VARCHAR}, #{transAmEndUs,jdbcType=VARCHAR},
|
#{transPmBeginUs,jdbcType=VARCHAR}, #{transPmEndUs,jdbcType=VARCHAR}, #{withFeeSingle,jdbcType=INTEGER},
|
#{withFeePercent,jdbcType=DECIMAL}, #{siteLever,jdbcType=VARCHAR}, #{buySameTimes,jdbcType=INTEGER},
|
#{buySameNums,jdbcType=INTEGER}, #{buyNumTimes,jdbcType=INTEGER}, #{buyNumLots,jdbcType=INTEGER},
|
#{cantSellTimes,jdbcType=INTEGER}, #{kcCreaseMaxPercent,jdbcType=DECIMAL}, #{stockDays,jdbcType=INTEGER},
|
#{stockRate,jdbcType=DECIMAL}, #{stockChaa,jdbcType=DECIMAL}, #{stockChab,jdbcType=DECIMAL},
|
#{stockChac,jdbcType=DECIMAL}, #{forceStopRemindRatio,jdbcType=DECIMAL}, #{cyCreaseMaxPercent,jdbcType=DECIMAL},
|
#{fallBuyDisplay,jdbcType=TINYINT}, #{transAmBeginHk,jdbcType=VARCHAR}, #{transAmEndHk,jdbcType=VARCHAR},
|
#{transPmBeginHk,jdbcType=VARCHAR}, #{transPmEndHk,jdbcType=VARCHAR}, #{vipQcMaxAmt,jdbcType=DECIMAL},
|
#{hkExchangeRate,jdbcType=DECIMAL})
|
</insert>
|
<insert id="insertSelective" parameterType="com.nq.pojo.SiteSetting" >
|
<selectKey resultType="java.lang.Integer" keyProperty="id" order="BEFORE" >
|
SELECT LAST_INSERT_ID()
|
</selectKey>
|
insert into site_setting
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
id,
|
<if test="buyFee != null" >
|
buy_fee,
|
</if>
|
<if test="sellFee != null" >
|
sell_fee,
|
</if>
|
<if test="stayFee != null" >
|
stay_fee,
|
</if>
|
<if test="dutyFee != null" >
|
duty_fee,
|
</if>
|
<if test="stayMaxDays != null" >
|
stay_max_days,
|
</if>
|
<if test="buyMinAmt != null" >
|
buy_min_amt,
|
</if>
|
<if test="chargeMinAmt != null" >
|
charge_min_amt,
|
</if>
|
<if test="buyMinNum != null" >
|
buy_min_num,
|
</if>
|
<if test="forceStopFee != null" >
|
force_stop_fee,
|
</if>
|
<if test="buyMaxAmtPercent != null" >
|
buy_max_amt_percent,
|
</if>
|
<if test="forceStopPercent != null" >
|
force_stop_percent,
|
</if>
|
<if test="hightAndLow != null" >
|
hight_and_low,
|
</if>
|
<if test="withMinAmt != null" >
|
with_min_amt,
|
</if>
|
<if test="creaseMaxPercent != null" >
|
crease_max_percent,
|
</if>
|
<if test="buyMaxNum != null" >
|
buy_max_num,
|
</if>
|
<if test="withTimeBegin != null" >
|
with_time_begin,
|
</if>
|
<if test="withTimeEnd != null" >
|
with_time_end,
|
</if>
|
<if test="transAmBegin != null" >
|
trans_am_begin,
|
</if>
|
<if test="transAmEnd != null" >
|
trans_am_end,
|
</if>
|
<if test="transPmBegin != null" >
|
trans_pm_begin,
|
</if>
|
<if test="transPmEnd != null" >
|
trans_pm_end,
|
</if>
|
<if test="transAmBeginUs != null" >
|
trans_am_begin_us,
|
</if>
|
<if test="transAmEndUs != null" >
|
trans_am_end_us,
|
</if>
|
<if test="transPmBeginUs != null" >
|
trans_pm_begin_us,
|
</if>
|
<if test="transPmEndUs != null" >
|
trans_pm_end_us,
|
</if>
|
<if test="withFeeSingle != null" >
|
with_fee_single,
|
</if>
|
<if test="withFeePercent != null" >
|
with_fee_percent,
|
</if>
|
<if test="siteLever != null" >
|
site_lever,
|
</if>
|
<if test="buySameTimes != null" >
|
buy_same_times,
|
</if>
|
<if test="buySameNums != null" >
|
buy_same_nums,
|
</if>
|
<if test="buyNumTimes != null" >
|
buy_num_times,
|
</if>
|
<if test="buyNumLots != null" >
|
buy_num_lots,
|
</if>
|
<if test="cantSellTimes != null" >
|
cant_sell_times,
|
</if>
|
<if test="kcCreaseMaxPercent != null" >
|
kc_crease_max_percent,
|
</if>
|
<if test="stockDays != null" >
|
stock_days,
|
</if>
|
<if test="stockRate != null" >
|
stock_rate,
|
</if>
|
<if test="stockChaa != null" >
|
stock_chaa,
|
</if>
|
<if test="stockChab != null" >
|
stock_chab,
|
</if>
|
<if test="stockChac != null" >
|
stock_chac,
|
</if>
|
<if test="forceStopRemindRatio != null" >
|
force_stop_remind_ratio,
|
</if>
|
<if test="cyCreaseMaxPercent != null" >
|
cy_crease_max_percent,
|
</if>
|
<if test="fallBuyDisplay != null" >
|
fall_buy_display,
|
</if>
|
<if test="transAmBeginHk != null" >
|
trans_am_begin_hk,
|
</if>
|
<if test="transAmEndHk != null" >
|
trans_am_end_hk,
|
</if>
|
<if test="transPmBeginHk != null" >
|
trans_pm_begin_hk,
|
</if>
|
<if test="transPmEndHk != null" >
|
trans_pm_end_hk,
|
</if>
|
<if test="vipQcMaxAmt != null" >
|
vip_qc_max_amt,
|
</if>
|
<if test="hkExchangeRate != null" >
|
hk_exchange_rate,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
#{id,jdbcType=INTEGER},
|
<if test="buyFee != null" >
|
#{buyFee,jdbcType=DECIMAL},
|
</if>
|
<if test="sellFee != null" >
|
#{sellFee,jdbcType=DECIMAL},
|
</if>
|
<if test="stayFee != null" >
|
#{stayFee,jdbcType=DECIMAL},
|
</if>
|
<if test="dutyFee != null" >
|
#{dutyFee,jdbcType=DECIMAL},
|
</if>
|
<if test="stayMaxDays != null" >
|
#{stayMaxDays,jdbcType=INTEGER},
|
</if>
|
<if test="buyMinAmt != null" >
|
#{buyMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="chargeMinAmt != null" >
|
#{chargeMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="buyMinNum != null" >
|
#{buyMinNum,jdbcType=INTEGER},
|
</if>
|
<if test="forceStopFee != null" >
|
#{forceStopFee,jdbcType=DECIMAL},
|
</if>
|
<if test="buyMaxAmtPercent != null" >
|
#{buyMaxAmtPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="forceStopPercent != null" >
|
#{forceStopPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="hightAndLow != null" >
|
#{hightAndLow,jdbcType=DECIMAL},
|
</if>
|
<if test="withMinAmt != null" >
|
#{withMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="creaseMaxPercent != null" >
|
#{creaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="buyMaxNum != null" >
|
#{buyMaxNum,jdbcType=INTEGER},
|
</if>
|
<if test="withTimeBegin != null" >
|
#{withTimeBegin,jdbcType=INTEGER},
|
</if>
|
<if test="withTimeEnd != null" >
|
#{withTimeEnd,jdbcType=INTEGER},
|
</if>
|
<if test="transAmBegin != null" >
|
#{transAmBegin,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmEnd != null" >
|
#{transAmEnd,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmBegin != null" >
|
#{transPmBegin,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmEnd != null" >
|
#{transPmEnd,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmBeginUs != null" >
|
#{transAmBeginUs,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmEndUs != null" >
|
#{transAmEndUs,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmBeginUs != null" >
|
#{transPmBeginUs,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmEndUs != null" >
|
#{transPmEndUs,jdbcType=VARCHAR},
|
</if>
|
<if test="withFeeSingle != null" >
|
#{withFeeSingle,jdbcType=INTEGER},
|
</if>
|
<if test="withFeePercent != null" >
|
#{withFeePercent,jdbcType=DECIMAL},
|
</if>
|
<if test="siteLever != null" >
|
#{siteLever,jdbcType=VARCHAR},
|
</if>
|
<if test="buySameTimes != null" >
|
#{buySameTimes,jdbcType=INTEGER},
|
</if>
|
<if test="buySameNums != null" >
|
#{buySameNums,jdbcType=INTEGER},
|
</if>
|
<if test="buyNumTimes != null" >
|
#{buyNumTimes,jdbcType=INTEGER},
|
</if>
|
<if test="buyNumLots != null" >
|
#{buyNumLots,jdbcType=INTEGER},
|
</if>
|
<if test="cantSellTimes != null" >
|
#{cantSellTimes,jdbcType=INTEGER},
|
</if>
|
<if test="kcCreaseMaxPercent != null" >
|
#{kcCreaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="stockDays != null" >
|
#{stockDays,jdbcType=INTEGER},
|
</if>
|
<if test="stockRate != null" >
|
#{stockRate,jdbcType=DECIMAL},
|
</if>
|
<if test="stockChaa != null" >
|
#{stockChaa,jdbcType=DECIMAL},
|
</if>
|
<if test="stockChab != null" >
|
#{stockChab,jdbcType=DECIMAL},
|
</if>
|
<if test="stockChac != null" >
|
#{stockChac,jdbcType=DECIMAL},
|
</if>
|
<if test="forceStopRemindRatio != null" >
|
#{forceStopRemindRatio,jdbcType=DECIMAL},
|
</if>
|
<if test="cyCreaseMaxPercent != null" >
|
#{cyCreaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="fallBuyDisplay != null" >
|
#{fallBuyDisplay,jdbcType=TINYINT},
|
</if>
|
<if test="transAmBeginHk != null" >
|
#{transAmBeginHk,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmEndHk != null" >
|
#{transAmEndHk,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmBeginHk != null" >
|
#{transPmBeginHk,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmEndHk != null" >
|
#{transPmEndHk,jdbcType=VARCHAR},
|
</if>
|
<if test="vipQcMaxAmt != null" >
|
#{vipQcMaxAmt,jdbcType=DECIMAL},
|
</if>
|
<if test="hkExchangeRate != null" >
|
#{hkExchangeRate,jdbcType=DECIMAL},
|
</if>
|
</trim>
|
</insert>
|
<select id="countByExample" parameterType="com.nq.pojo.SiteSettingExample" resultType="java.lang.Integer" >
|
select count(*) from site_setting
|
<if test="_parameter != null" >
|
<include refid="Example_Where_Clause" />
|
</if>
|
</select>
|
<update id="updateByExampleSelective" parameterType="map" >
|
update site_setting
|
<set >
|
<if test="record.id != null" >
|
id = #{record.id,jdbcType=INTEGER},
|
</if>
|
<if test="record.buyFee != null" >
|
buy_fee = #{record.buyFee,jdbcType=DECIMAL},
|
</if>
|
<if test="record.sellFee != null" >
|
sell_fee = #{record.sellFee,jdbcType=DECIMAL},
|
</if>
|
<if test="record.stayFee != null" >
|
stay_fee = #{record.stayFee,jdbcType=DECIMAL},
|
</if>
|
<if test="record.dutyFee != null" >
|
duty_fee = #{record.dutyFee,jdbcType=DECIMAL},
|
</if>
|
<if test="record.stayMaxDays != null" >
|
stay_max_days = #{record.stayMaxDays,jdbcType=INTEGER},
|
</if>
|
<if test="record.buyMinAmt != null" >
|
buy_min_amt = #{record.buyMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="record.chargeMinAmt != null" >
|
charge_min_amt = #{record.chargeMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="record.buyMinNum != null" >
|
buy_min_num = #{record.buyMinNum,jdbcType=INTEGER},
|
</if>
|
<if test="record.forceStopFee != null" >
|
force_stop_fee = #{record.forceStopFee,jdbcType=DECIMAL},
|
</if>
|
<if test="record.buyMaxAmtPercent != null" >
|
buy_max_amt_percent = #{record.buyMaxAmtPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="record.forceStopPercent != null" >
|
force_stop_percent = #{record.forceStopPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="record.hightAndLow != null" >
|
hight_and_low = #{record.hightAndLow,jdbcType=DECIMAL},
|
</if>
|
<if test="record.withMinAmt != null" >
|
with_min_amt = #{record.withMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="record.creaseMaxPercent != null" >
|
crease_max_percent = #{record.creaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="record.buyMaxNum != null" >
|
buy_max_num = #{record.buyMaxNum,jdbcType=INTEGER},
|
</if>
|
<if test="record.withTimeBegin != null" >
|
with_time_begin = #{record.withTimeBegin,jdbcType=INTEGER},
|
</if>
|
<if test="record.withTimeEnd != null" >
|
with_time_end = #{record.withTimeEnd,jdbcType=INTEGER},
|
</if>
|
<if test="record.transAmBegin != null" >
|
trans_am_begin = #{record.transAmBegin,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transAmEnd != null" >
|
trans_am_end = #{record.transAmEnd,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transPmBegin != null" >
|
trans_pm_begin = #{record.transPmBegin,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transPmEnd != null" >
|
trans_pm_end = #{record.transPmEnd,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transAmBeginUs != null" >
|
trans_am_begin_us = #{record.transAmBeginUs,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transAmEndUs != null" >
|
trans_am_end_us = #{record.transAmEndUs,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transPmBeginUs != null" >
|
trans_pm_begin_us = #{record.transPmBeginUs,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transPmEndUs != null" >
|
trans_pm_end_us = #{record.transPmEndUs,jdbcType=VARCHAR},
|
</if>
|
<if test="record.withFeeSingle != null" >
|
with_fee_single = #{record.withFeeSingle,jdbcType=INTEGER},
|
</if>
|
<if test="record.withFeePercent != null" >
|
with_fee_percent = #{record.withFeePercent,jdbcType=DECIMAL},
|
</if>
|
<if test="record.siteLever != null" >
|
site_lever = #{record.siteLever,jdbcType=VARCHAR},
|
</if>
|
<if test="record.buySameTimes != null" >
|
buy_same_times = #{record.buySameTimes,jdbcType=INTEGER},
|
</if>
|
<if test="record.buySameNums != null" >
|
buy_same_nums = #{record.buySameNums,jdbcType=INTEGER},
|
</if>
|
<if test="record.buyNumTimes != null" >
|
buy_num_times = #{record.buyNumTimes,jdbcType=INTEGER},
|
</if>
|
<if test="record.buyNumLots != null" >
|
buy_num_lots = #{record.buyNumLots,jdbcType=INTEGER},
|
</if>
|
<if test="record.cantSellTimes != null" >
|
cant_sell_times = #{record.cantSellTimes,jdbcType=INTEGER},
|
</if>
|
<if test="record.kcCreaseMaxPercent != null" >
|
kc_crease_max_percent = #{record.kcCreaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="record.stockDays != null" >
|
stock_days = #{record.stockDays,jdbcType=INTEGER},
|
</if>
|
<if test="record.stockRate != null" >
|
stock_rate = #{record.stockRate,jdbcType=DECIMAL},
|
</if>
|
<if test="record.stockChaa != null" >
|
stock_chaa = #{record.stockChaa,jdbcType=DECIMAL},
|
</if>
|
<if test="record.stockChab != null" >
|
stock_chab = #{record.stockChab,jdbcType=DECIMAL},
|
</if>
|
<if test="record.stockChac != null" >
|
stock_chac = #{record.stockChac,jdbcType=DECIMAL},
|
</if>
|
<if test="record.forceStopRemindRatio != null" >
|
force_stop_remind_ratio = #{record.forceStopRemindRatio,jdbcType=DECIMAL},
|
</if>
|
<if test="record.cyCreaseMaxPercent != null" >
|
cy_crease_max_percent = #{record.cyCreaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="record.fallBuyDisplay != null" >
|
fall_buy_display = #{record.fallBuyDisplay,jdbcType=TINYINT},
|
</if>
|
<if test="record.transAmBeginHk != null" >
|
trans_am_begin_hk = #{record.transAmBeginHk,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transAmEndHk != null" >
|
trans_am_end_hk = #{record.transAmEndHk,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transPmBeginHk != null" >
|
trans_pm_begin_hk = #{record.transPmBeginHk,jdbcType=VARCHAR},
|
</if>
|
<if test="record.transPmEndHk != null" >
|
trans_pm_end_hk = #{record.transPmEndHk,jdbcType=VARCHAR},
|
</if>
|
<if test="record.vipQcMaxAmt != null" >
|
vip_qc_max_amt = #{record.vipQcMaxAmt,jdbcType=DECIMAL},
|
</if>
|
<if test="record.hkExchangeRate != null" >
|
hk_exchange_rate = #{record.hkExchangeRate,jdbcType=DECIMAL},
|
</if>
|
</set>
|
<if test="_parameter != null" >
|
<include refid="Update_By_Example_Where_Clause" />
|
</if>
|
</update>
|
<update id="updateByExample" parameterType="map" >
|
update site_setting
|
set id = #{record.id,jdbcType=INTEGER},
|
buy_fee = #{record.buyFee,jdbcType=DECIMAL},
|
sell_fee = #{record.sellFee,jdbcType=DECIMAL},
|
stay_fee = #{record.stayFee,jdbcType=DECIMAL},
|
duty_fee = #{record.dutyFee,jdbcType=DECIMAL},
|
stay_max_days = #{record.stayMaxDays,jdbcType=INTEGER},
|
buy_min_amt = #{record.buyMinAmt,jdbcType=INTEGER},
|
charge_min_amt = #{record.chargeMinAmt,jdbcType=INTEGER},
|
buy_min_num = #{record.buyMinNum,jdbcType=INTEGER},
|
force_stop_fee = #{record.forceStopFee,jdbcType=DECIMAL},
|
buy_max_amt_percent = #{record.buyMaxAmtPercent,jdbcType=DECIMAL},
|
force_stop_percent = #{record.forceStopPercent,jdbcType=DECIMAL},
|
hight_and_low = #{record.hightAndLow,jdbcType=DECIMAL},
|
with_min_amt = #{record.withMinAmt,jdbcType=INTEGER},
|
crease_max_percent = #{record.creaseMaxPercent,jdbcType=DECIMAL},
|
buy_max_num = #{record.buyMaxNum,jdbcType=INTEGER},
|
with_time_begin = #{record.withTimeBegin,jdbcType=INTEGER},
|
with_time_end = #{record.withTimeEnd,jdbcType=INTEGER},
|
trans_am_begin = #{record.transAmBegin,jdbcType=VARCHAR},
|
trans_am_end = #{record.transAmEnd,jdbcType=VARCHAR},
|
trans_pm_begin = #{record.transPmBegin,jdbcType=VARCHAR},
|
trans_pm_end = #{record.transPmEnd,jdbcType=VARCHAR},
|
trans_am_begin_us = #{record.transAmBeginUs,jdbcType=VARCHAR},
|
trans_am_end_us = #{record.transAmEndUs,jdbcType=VARCHAR},
|
trans_pm_begin_us = #{record.transPmBeginUs,jdbcType=VARCHAR},
|
trans_pm_end_us = #{record.transPmEndUs,jdbcType=VARCHAR},
|
with_fee_single = #{record.withFeeSingle,jdbcType=INTEGER},
|
with_fee_percent = #{record.withFeePercent,jdbcType=DECIMAL},
|
site_lever = #{record.siteLever,jdbcType=VARCHAR},
|
buy_same_times = #{record.buySameTimes,jdbcType=INTEGER},
|
buy_same_nums = #{record.buySameNums,jdbcType=INTEGER},
|
buy_num_times = #{record.buyNumTimes,jdbcType=INTEGER},
|
buy_num_lots = #{record.buyNumLots,jdbcType=INTEGER},
|
cant_sell_times = #{record.cantSellTimes,jdbcType=INTEGER},
|
kc_crease_max_percent = #{record.kcCreaseMaxPercent,jdbcType=DECIMAL},
|
stock_days = #{record.stockDays,jdbcType=INTEGER},
|
stock_rate = #{record.stockRate,jdbcType=DECIMAL},
|
stock_chaa = #{record.stockChaa,jdbcType=DECIMAL},
|
stock_chab = #{record.stockChab,jdbcType=DECIMAL},
|
stock_chac = #{record.stockChac,jdbcType=DECIMAL},
|
force_stop_remind_ratio = #{record.forceStopRemindRatio,jdbcType=DECIMAL},
|
cy_crease_max_percent = #{record.cyCreaseMaxPercent,jdbcType=DECIMAL},
|
fall_buy_display = #{record.fallBuyDisplay,jdbcType=TINYINT},
|
trans_am_begin_hk = #{record.transAmBeginHk,jdbcType=VARCHAR},
|
trans_am_end_hk = #{record.transAmEndHk,jdbcType=VARCHAR},
|
trans_pm_begin_hk = #{record.transPmBeginHk,jdbcType=VARCHAR},
|
trans_pm_end_hk = #{record.transPmEndHk,jdbcType=VARCHAR},
|
vip_qc_max_amt = #{record.vipQcMaxAmt,jdbcType=DECIMAL},
|
hk_exchange_rate = #{record.hkExchangeRate,jdbcType=DECIMAL}
|
<if test="_parameter != null" >
|
<include refid="Update_By_Example_Where_Clause" />
|
</if>
|
</update>
|
<update id="updateByPrimaryKeySelective" parameterType="com.nq.pojo.SiteSetting" >
|
update site_setting
|
<set >
|
<if test="buyFee != null" >
|
buy_fee = #{buyFee,jdbcType=DECIMAL},
|
</if>
|
<if test="sellFee != null" >
|
sell_fee = #{sellFee,jdbcType=DECIMAL},
|
</if>
|
<if test="stayFee != null" >
|
stay_fee = #{stayFee,jdbcType=DECIMAL},
|
</if>
|
<if test="dutyFee != null" >
|
duty_fee = #{dutyFee,jdbcType=DECIMAL},
|
</if>
|
<if test="stayMaxDays != null" >
|
stay_max_days = #{stayMaxDays,jdbcType=INTEGER},
|
</if>
|
<if test="buyMinAmt != null" >
|
buy_min_amt = #{buyMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="chargeMinAmt != null" >
|
charge_min_amt = #{chargeMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="buyMinNum != null" >
|
buy_min_num = #{buyMinNum,jdbcType=INTEGER},
|
</if>
|
<if test="forceStopFee != null" >
|
force_stop_fee = #{forceStopFee,jdbcType=DECIMAL},
|
</if>
|
<if test="buyMaxAmtPercent != null" >
|
buy_max_amt_percent = #{buyMaxAmtPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="forceStopPercent != null" >
|
force_stop_percent = #{forceStopPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="hightAndLow != null" >
|
hight_and_low = #{hightAndLow,jdbcType=DECIMAL},
|
</if>
|
<if test="withMinAmt != null" >
|
with_min_amt = #{withMinAmt,jdbcType=INTEGER},
|
</if>
|
<if test="creaseMaxPercent != null" >
|
crease_max_percent = #{creaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="buyMaxNum != null" >
|
buy_max_num = #{buyMaxNum,jdbcType=INTEGER},
|
</if>
|
<if test="withTimeBegin != null" >
|
with_time_begin = #{withTimeBegin,jdbcType=INTEGER},
|
</if>
|
<if test="withTimeEnd != null" >
|
with_time_end = #{withTimeEnd,jdbcType=INTEGER},
|
</if>
|
<if test="transAmBegin != null" >
|
trans_am_begin = #{transAmBegin,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmEnd != null" >
|
trans_am_end = #{transAmEnd,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmBegin != null" >
|
trans_pm_begin = #{transPmBegin,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmEnd != null" >
|
trans_pm_end = #{transPmEnd,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmBeginUs != null" >
|
trans_am_begin_us = #{transAmBeginUs,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmEndUs != null" >
|
trans_am_end_us = #{transAmEndUs,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmBeginUs != null" >
|
trans_pm_begin_us = #{transPmBeginUs,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmEndUs != null" >
|
trans_pm_end_us = #{transPmEndUs,jdbcType=VARCHAR},
|
</if>
|
<if test="withFeeSingle != null" >
|
with_fee_single = #{withFeeSingle,jdbcType=INTEGER},
|
</if>
|
<if test="withFeePercent != null" >
|
with_fee_percent = #{withFeePercent,jdbcType=DECIMAL},
|
</if>
|
<if test="siteLever != null" >
|
site_lever = #{siteLever,jdbcType=VARCHAR},
|
</if>
|
<if test="buySameTimes != null" >
|
buy_same_times = #{buySameTimes,jdbcType=INTEGER},
|
</if>
|
<if test="buySameNums != null" >
|
buy_same_nums = #{buySameNums,jdbcType=INTEGER},
|
</if>
|
<if test="buyNumTimes != null" >
|
buy_num_times = #{buyNumTimes,jdbcType=INTEGER},
|
</if>
|
<if test="buyNumLots != null" >
|
buy_num_lots = #{buyNumLots,jdbcType=INTEGER},
|
</if>
|
<if test="cantSellTimes != null" >
|
cant_sell_times = #{cantSellTimes,jdbcType=INTEGER},
|
</if>
|
<if test="kcCreaseMaxPercent != null" >
|
kc_crease_max_percent = #{kcCreaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="stockDays != null" >
|
stock_days = #{stockDays,jdbcType=INTEGER},
|
</if>
|
<if test="stockRate != null" >
|
stock_rate = #{stockRate,jdbcType=DECIMAL},
|
</if>
|
<if test="stockChaa != null" >
|
stock_chaa = #{stockChaa,jdbcType=DECIMAL},
|
</if>
|
<if test="stockChab != null" >
|
stock_chab = #{stockChab,jdbcType=DECIMAL},
|
</if>
|
<if test="stockChac != null" >
|
stock_chac = #{stockChac,jdbcType=DECIMAL},
|
</if>
|
<if test="forceStopRemindRatio != null" >
|
force_stop_remind_ratio = #{forceStopRemindRatio,jdbcType=DECIMAL},
|
</if>
|
<if test="cyCreaseMaxPercent != null" >
|
cy_crease_max_percent = #{cyCreaseMaxPercent,jdbcType=DECIMAL},
|
</if>
|
<if test="fallBuyDisplay != null" >
|
fall_buy_display = #{fallBuyDisplay,jdbcType=TINYINT},
|
</if>
|
<if test="transAmBeginHk != null" >
|
trans_am_begin_hk = #{transAmBeginHk,jdbcType=VARCHAR},
|
</if>
|
<if test="transAmEndHk != null" >
|
trans_am_end_hk = #{transAmEndHk,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmBeginHk != null" >
|
trans_pm_begin_hk = #{transPmBeginHk,jdbcType=VARCHAR},
|
</if>
|
<if test="transPmEndHk != null" >
|
trans_pm_end_hk = #{transPmEndHk,jdbcType=VARCHAR},
|
</if>
|
<if test="vipQcMaxAmt != null" >
|
vip_qc_max_amt = #{vipQcMaxAmt,jdbcType=DECIMAL},
|
</if>
|
<if test="hkExchangeRate != null" >
|
hk_exchange_rate = #{hkExchangeRate,jdbcType=DECIMAL},
|
</if>
|
</set>
|
where id = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.nq.pojo.SiteSetting" >
|
update site_setting
|
set buy_fee = #{buyFee,jdbcType=DECIMAL},
|
sell_fee = #{sellFee,jdbcType=DECIMAL},
|
stay_fee = #{stayFee,jdbcType=DECIMAL},
|
duty_fee = #{dutyFee,jdbcType=DECIMAL},
|
stay_max_days = #{stayMaxDays,jdbcType=INTEGER},
|
buy_min_amt = #{buyMinAmt,jdbcType=INTEGER},
|
charge_min_amt = #{chargeMinAmt,jdbcType=INTEGER},
|
buy_min_num = #{buyMinNum,jdbcType=INTEGER},
|
force_stop_fee = #{forceStopFee,jdbcType=DECIMAL},
|
buy_max_amt_percent = #{buyMaxAmtPercent,jdbcType=DECIMAL},
|
force_stop_percent = #{forceStopPercent,jdbcType=DECIMAL},
|
hight_and_low = #{hightAndLow,jdbcType=DECIMAL},
|
with_min_amt = #{withMinAmt,jdbcType=INTEGER},
|
crease_max_percent = #{creaseMaxPercent,jdbcType=DECIMAL},
|
buy_max_num = #{buyMaxNum,jdbcType=INTEGER},
|
with_time_begin = #{withTimeBegin,jdbcType=INTEGER},
|
with_time_end = #{withTimeEnd,jdbcType=INTEGER},
|
trans_am_begin = #{transAmBegin,jdbcType=VARCHAR},
|
trans_am_end = #{transAmEnd,jdbcType=VARCHAR},
|
trans_pm_begin = #{transPmBegin,jdbcType=VARCHAR},
|
trans_pm_end = #{transPmEnd,jdbcType=VARCHAR},
|
trans_am_begin_us = #{transAmBeginUs,jdbcType=VARCHAR},
|
trans_am_end_us = #{transAmEndUs,jdbcType=VARCHAR},
|
trans_pm_begin_us = #{transPmBeginUs,jdbcType=VARCHAR},
|
trans_pm_end_us = #{transPmEndUs,jdbcType=VARCHAR},
|
with_fee_single = #{withFeeSingle,jdbcType=INTEGER},
|
with_fee_percent = #{withFeePercent,jdbcType=DECIMAL},
|
site_lever = #{siteLever,jdbcType=VARCHAR},
|
buy_same_times = #{buySameTimes,jdbcType=INTEGER},
|
buy_same_nums = #{buySameNums,jdbcType=INTEGER},
|
buy_num_times = #{buyNumTimes,jdbcType=INTEGER},
|
buy_num_lots = #{buyNumLots,jdbcType=INTEGER},
|
cant_sell_times = #{cantSellTimes,jdbcType=INTEGER},
|
kc_crease_max_percent = #{kcCreaseMaxPercent,jdbcType=DECIMAL},
|
stock_days = #{stockDays,jdbcType=INTEGER},
|
stock_rate = #{stockRate,jdbcType=DECIMAL},
|
stock_chaa = #{stockChaa,jdbcType=DECIMAL},
|
stock_chab = #{stockChab,jdbcType=DECIMAL},
|
stock_chac = #{stockChac,jdbcType=DECIMAL},
|
force_stop_remind_ratio = #{forceStopRemindRatio,jdbcType=DECIMAL},
|
cy_crease_max_percent = #{cyCreaseMaxPercent,jdbcType=DECIMAL},
|
fall_buy_display = #{fallBuyDisplay,jdbcType=TINYINT},
|
trans_am_begin_hk = #{transAmBeginHk,jdbcType=VARCHAR},
|
trans_am_end_hk = #{transAmEndHk,jdbcType=VARCHAR},
|
trans_pm_begin_hk = #{transPmBeginHk,jdbcType=VARCHAR},
|
trans_pm_end_hk = #{transPmEndHk,jdbcType=VARCHAR},
|
vip_qc_max_amt = #{vipQcMaxAmt,jdbcType=DECIMAL},
|
hk_exchange_rate = #{hkExchangeRate,jdbcType=DECIMAL}
|
where id = #{id,jdbcType=INTEGER}
|
</update>
|
|
|
|
|
|
<select id="findAllSiteSetting" resultMap="BaseResultMap">
|
SELECT
|
<include refid="Base_Column_List"/>
|
FROM site_setting
|
</select>
|
|
|
|
|
</mapper>
|