id,content,money,user_id,time,type
delete from records
where id = #{id}
insert into records
id,content,money,user_id,time,type,#{id},#{content},#{money},#{userId},#{time},#{type},
update records
content = #{content},
money = #{money},
user_id = #{userId},
time = #{time},
type = #{type},
where id = #{id}