select wallet_id, user_id, account_id, wallet_type, wallet_bal, limit_balance, frozen_balance,
expired_time, last_subsidy_amount, last_subsidy_time, create_by, create_time,
update_by, update_time, del_flag
from account_wallet_info
insert into account_wallet_info
user_id,
account_id,
wallet_type,
wallet_bal,
limit_balance,
frozen_balance,
expired_time,
last_subsidy_amount,
last_subsidy_time,
create_by,
create_time,
update_by,
update_time,
#{userId},
#{accountId},
#{walletType},
#{walletBal},
#{limitBalance},
#{frozenBalance},
#{expiredTime},
#{lastSubsidyAmount},
#{lastSubsidyTime},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
insert into account_wallet_info(user_id,account_id,wallet_type,create_by,create_time) values
(#{item.userId},#{item.accountId},#{item.walletType},#{item.createBy},NOW())
update account_wallet_info set del_flag = '2' where user_id = #{userId}
update account_wallet_info set del_flag = '2' where user_id in
#{userId}
UPDATE
account_wallet_info
SET limit_balance = #{minBalance},
update_by = #{updateBy},
update_time = #{updateTime}
AND user_id IN
#{userId}
AND wallet_type = #{walletType}
UPDATE account_wallet_info
SET wallet_bal = wallet_bal + #{amount},
update_by = #{updateBy},
update_time = #{updateTime}
WHERE user_id = #{userId}
AND wallet_type = #{walletType}
UPDATE account_wallet_info
SET wallet_bal = wallet_bal - #{amount},
update_by = #{updateBy},
update_time = #{updateTime}
WHERE user_id = #{userId}
AND wallet_type = #{walletType}
UPDATE account_wallet_info
SET wallet_bal = 0,
update_by = #{updateBy},
update_time = #{updateTime}
WHERE user_id = #{userId}
AND wallet_type = #{walletType}