select b.id, b.user_id, b.type, b.dd_id, b.md_id,b.amount, b.divvy,b.state, b.illustrate, b.payment_method, b.account_number,b.balance_pay, b.user_type,b.cretim, b.divvy_rate, b.behalf_amount, b.wallet_balance, b.tax, b.tax_rate from user_billing b
insert into user_billing
user_id,
type,
dd_id,
amount,
state,
illustrate,
payment_method,
account_number,
md_id,
divvy,
balance_pay,
user_type,
divvy_rate,
behalf_amount,
wallet_balance,
tax,
tax_rate,
#{userId},
#{type},
#{ddId},
#{amount},
#{state},
#{illustrate},
#{paymentMethod},
#{accountNumber},
#{mdId},
#{divvy},
#{balancePay},
#{userType},
#{divvyRate},
#{behalfAmount},
#{walletBalance},
#{tax},
#{taxRate},
update user_billing
user_id = #{userId},
type = #{type},
dd_id = #{ddId},
amount = #{amount},
state = #{state},
illustrate = #{illustrate},
payment_method = #{paymentMethod},
account_number = #{accountNumber},
md_id = #{mdId},
divvy = #{divvy},
balance_pay = #{balancePay},
user_type = #{userType},
divvy_rate = #{divvyRate},
behalf_amount = #{behalfAmount},
wallet_balance = #{walletBalance},
tax = #{tax},
tax_rate = #{taxRate},
where id = #{id}
delete from user_billing where id = #{id}
delete from user_billing where id in
#{id}