|
@@ -37,20 +37,20 @@
|
|
|
<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="is_alone_login" jdbcType="INTEGER" javaType="java.lang.Integer" />
|
|
|
</constructor>
|
|
|
</resultMap>
|
|
|
|
|
|
<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,
|
|
|
+ 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, 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
|
|
|
+ kc_crease_max_percent,stock_days,stock_rate ,is_alone_login
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from site_setting
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -60,28 +60,29 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.xc.pojo.SiteSetting" >
|
|
|
- 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,
|
|
|
+ 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, 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
|
|
|
+ kc_crease_max_percent,stock_days,stock_rate ,is_alone_login
|
|
|
)
|
|
|
- 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},
|
|
|
+ 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}, #{withFeeSingle,jdbcType=INTEGER}, #{withFeePercent,jdbcType=DECIMAL},
|
|
|
#{siteLever,jdbcType=INTEGER},#{buySameTimes,jdbcType=INTEGER},#{buySameNums,jdbcType=INTEGER},
|
|
|
#{buyNumTimes,jdbcType=INTEGER},#{buyNumLots,jdbcType=INTEGER},#{cantSellTimes,jdbcType=INTEGER},
|
|
|
- #{kcCreaseMaxPercent,jdbcType=DECIMAL},#{stockDays,jdbcType=INTEGER},#{stockRate,jdbcType=DECIMAL}
|
|
|
+ #{kcCreaseMaxPercent,jdbcType=DECIMAL},#{stockDays,jdbcType=INTEGER},#{stockRate,jdbcType=DECIMAL},
|
|
|
+ #{isAloneLogin,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -394,6 +395,9 @@
|
|
|
<if test="stockRate != null" >
|
|
|
stock_rate = #{stockRate,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="isAloneLogin != null" >
|
|
|
+ is_alone_login = #{isAloneLogin,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
|
|
|
</set>
|
|
|
|
|
@@ -440,16 +444,17 @@
|
|
|
</update>
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<select id="findAllSiteSetting" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
FROM site_setting
|
|
|
</select>
|
|
|
|
|
|
+ <select id="findIsAloneLogin" resultType="INTEGER">
|
|
|
+ SELECT
|
|
|
+ is_alone_login
|
|
|
+ FROM site_setting
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
-
|
|
|
-</mapper>
|
|
|
+</mapper>
|