uid, charge_gold_num, noble_gold_num, gold_num, diamond_num, deposit_num, is_first_charge,
first_recharge_time, update_time
insert into user_purse (uid, charge_gold_num, noble_gold_num,
gold_num, diamond_num, deposit_num,
is_first_charge, first_recharge_time, update_time
)
values (#{uid,jdbcType=BIGINT}, #{chargeGoldNum,jdbcType=BIGINT}, #{nobleGoldNum,jdbcType=BIGINT},
#{goldNum,jdbcType=BIGINT}, #{diamondNum,jdbcType=DOUBLE}, #{depositNum,jdbcType=BIGINT},
#{isFirstCharge,jdbcType=BIT}, #{firstRechargeTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
insert into user_purse
uid,
charge_gold_num,
noble_gold_num,
gold_num,
diamond_num,
deposit_num,
is_first_charge,
first_recharge_time,
update_time,
#{uid,jdbcType=BIGINT},
#{chargeGoldNum,jdbcType=BIGINT},
#{nobleGoldNum,jdbcType=BIGINT},
#{goldNum,jdbcType=BIGINT},
#{diamondNum,jdbcType=DOUBLE},
#{depositNum,jdbcType=BIGINT},
#{isFirstCharge,jdbcType=BIT},
#{firstRechargeTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
update user_purse
charge_gold_num = #{chargeGoldNum,jdbcType=BIGINT},
noble_gold_num = #{nobleGoldNum,jdbcType=BIGINT},
gold_num = #{goldNum,jdbcType=BIGINT},
diamond_num = #{diamondNum,jdbcType=DOUBLE},
deposit_num = #{depositNum,jdbcType=BIGINT},
is_first_charge = #{isFirstCharge,jdbcType=BIT},
first_recharge_time = #{firstRechargeTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where uid = #{uid,jdbcType=BIGINT}
update user_purse
set charge_gold_num = #{chargeGoldNum,jdbcType=BIGINT},
noble_gold_num = #{nobleGoldNum,jdbcType=BIGINT},
gold_num = #{goldNum,jdbcType=BIGINT},
diamond_num = #{diamondNum,jdbcType=DOUBLE},
deposit_num = #{depositNum,jdbcType=BIGINT},
is_first_charge = #{isFirstCharge,jdbcType=BIT},
first_recharge_time = #{firstRechargeTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where uid = #{uid,jdbcType=BIGINT}
update user_purse set is_first_charge = 0, gold_num=gold_num + #{num},charge_gold_num=charge_gold_num + #{num},update_time=now()
where uid=#{uid}