id, buy_max_percent, force_sell_percent, 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,trans_am_begin_hk, trans_am_end_hk, trans_pm_begin_hk,
trans_pm_end_hk, down_limit, rise_limit, force_stop_remind_ratio
delete from site_index_setting
where id = #{id,jdbcType=INTEGER}
insert into site_index_setting (id, buy_max_percent, force_sell_percent,
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, trans_am_begin_hk, trans_am_end_hk, trans_pm_begin_hk,
trans_pm_end_hk,down_limit, rise_limit, force_stop_remind_ratio
)
values (#{id,jdbcType=INTEGER}, #{buyMaxPercent,jdbcType=DECIMAL}, #{forceSellPercent,jdbcType=DECIMAL},
#{transAmBegin,jdbcType=VARCHAR}, #{transAmEnd,jdbcType=VARCHAR}, #{transPmBegin,jdbcType=VARCHAR},
#{transPmEnd,jdbcType=VARCHAR},#{transAmBeginUs,jdbcType=VARCHAR}, #{transAmEndUs,jdbcType=VARCHAR}, #{transPmBeginUs,jdbcType=VARCHAR},
#{transPmEndUs,jdbcType=VARCHAR},#{transAmBeginhk,jdbcType=VARCHAR}, #{transAmEndhk,jdbcType=VARCHAR}, #{transPmBeginhk,jdbcType=VARCHAR},
#{transPmEndhk,jdbcType=VARCHAR}, #{downLimit,jdbcType=DECIMAL}, #{riseLimit,jdbcType=DECIMAL}, #{forceStopRemindRatio,jdbcType=DECIMAL}
)
insert into site_index_setting
id,
buy_max_percent,
force_sell_percent,
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,
trans_am_begin_hk,
trans_am_end_hk,
trans_pm_begin_hk,
trans_pm_end_hk,
down_limit,
rise_limit,
force_stop_remind_ratio,
#{id,jdbcType=INTEGER},
#{buyMaxPercent,jdbcType=DECIMAL},
#{forceSellPercent,jdbcType=DECIMAL},
#{transAmBegin,jdbcType=VARCHAR},
#{transAmEnd,jdbcType=VARCHAR},
#{transPmBegin,jdbcType=VARCHAR},
#{transPmEnd,jdbcType=VARCHAR},
#{transAmBeginUs,jdbcType=VARCHAR},
#{transAmEndUs,jdbcType=VARCHAR},
#{transPmBeginUs,jdbcType=VARCHAR},
#{transPmEndUs,jdbcType=VARCHAR},
#{transAmBeginhk,jdbcType=VARCHAR},
#{transAmEndhk,jdbcType=VARCHAR},
#{transPmBeginhk,jdbcType=VARCHAR},
#{transPmEndhk,jdbcType=VARCHAR},
#{downLimit,jdbcType=DECIMAL},
#{riseLimit,jdbcType=DECIMAL},
#{forceStopRemindRatio,jdbcType=DECIMAL},
update site_index_setting
buy_max_percent = #{buyMaxPercent,jdbcType=DECIMAL},
force_sell_percent = #{forceSellPercent,jdbcType=DECIMAL},
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},
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},
down_limit = #{downLimit,jdbcType=DECIMAL},
rise_limit = #{riseLimit,jdbcType=DECIMAL},
force_stop_remind_ratio = #{forceStopRemindRatio,jdbcType=DECIMAL},
where id = #{id,jdbcType=INTEGER}
update site_index_setting
set buy_max_percent = #{buyMaxPercent,jdbcType=DECIMAL},
force_sell_percent = #{forceSellPercent,jdbcType=DECIMAL},
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},
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},
down_limit = #{downLimit,jdbcType=DECIMAL},
rise_limit = #{riseLimit,jdbcType=DECIMAL},
force_stop_remind_ratio = #{forceStopRemindRatio,jdbcType=DECIMAL}
where id = #{id,jdbcType=INTEGER}