insert into user value
(#{username},#{password})
update user set password = #{password} where username=#{username}
update goods
type=#{type},img=#{img},price=#{price},commit =#{commit},phone =#{phone}
where gid=#{gid}
delete from goods where gid=#{gid}
insert into goods values
(#{username},#{price},#{type},#{commit},#{img},#{gid},#{phone})