select id, symbol, coin,profit_loss,float_profit, base_coin, earn_rate,loss_rate,delivery_days,min_margin,market,share_number, logo, leverage, enable, visible, exchangeable, enable_open_sell, enable_open_buy, enable_market_sell, enable_market_buy, open_fee, close_fee, usdt_rate, interval_hour, coin_scale, base_scale, min_share, max_share, total_profit, sort, create_time, update_time,show_symbol from t_contract_coin
insert into t_contract_coin
symbol,
coin,
base_coin,
share_number,
leverage,
enable,
visible,
exchangeable,
enable_open_sell,
enable_open_buy,
enable_market_sell,
enable_market_buy,
open_fee,
close_fee,
usdt_rate,
interval_hour,
coin_scale,
base_scale,
min_share,
max_share,
total_profit,
sort,
create_time,
update_time,
show_symbol,
logo,
market,
delivery_days,
min_margin,
earn_rate,
loss_rate,
float_profit,
profit_loss,
#{symbol},
#{coin},
#{baseCoin},
#{shareNumber},
#{leverage},
#{enable},
#{visible},
#{exchangeable},
#{enableOpenSell},
#{enableOpenBuy},
#{enableMarketSell},
#{enableMarketBuy},
#{openFee},
#{closeFee},
#{usdtRate},
#{intervalHour},
#{coinScale},
#{baseScale},
#{minShare},
#{maxShare},
#{totalProfit},
#{sort},
#{createTime},
#{updateTime},
#{showSymbol},
#{logo},
#{market},
#{deliveryDays},
#{minMargin},
#{earnRate},
#{lossRate},
#{floatProfit},
#{profitLoss},
update t_contract_coin
symbol = #{symbol},
coin = #{coin},
base_coin = #{baseCoin},
share_number = #{shareNumber},
leverage = #{leverage},
enable = #{enable},
visible = #{visible},
exchangeable = #{exchangeable},
enable_open_sell = #{enableOpenSell},
enable_open_buy = #{enableOpenBuy},
enable_market_sell = #{enableMarketSell},
enable_market_buy = #{enableMarketBuy},
open_fee = #{openFee},
close_fee = #{closeFee},
usdt_rate = #{usdtRate},
interval_hour = #{intervalHour},
coin_scale = #{coinScale},
base_scale = #{baseScale},
min_share = #{minShare},
max_share = #{maxShare},
total_profit = #{totalProfit},
sort = #{sort},
create_time = #{createTime},
update_time = #{updateTime},
show_symbol=#{showSymbol},
logo=#{logo},
market=#{market},
min_margin=#{minMargin},
delivery_days=#{deliveryDays},
earn_rate=#{earnRate},
loss_rate=#{lossRate},
float_profit=#{floatProfit},
profit_loss=#{profitLoss},
where id = #{id}
delete from t_contract_coin where id = #{id}
delete from t_contract_coin where id in
#{id}