insert into goods_stock(id, goods_id, num, channel, date, comment) values (#{id}, #{goodsId}, #{num}, #{channel}, #{date}, #{comment}) update goods_stock set goods_id = #{goodsId}, num = #{num}, channel = #{channel}, date = #{date}, comment = #{comment} where id = #{id}