select id, user_id, type, amount, cretim from user_margin
insert into user_margin
user_id,type,amount,cretim,#{userId},#{type},#{amount},#{cretim},
update user_margin
user_id = #{userId},type = #{type},amount = #{amount},cretim = #{cretim},
where id = #{id}
delete from user_margin where id = #{id}
delete from user_margin where id in
#{id}