insert into reserve_goods_detail( goods_id,detail_id,community_id,content ) values ( #{goodsId},#{detailId},#{communityId},#{content} ) update reserve_goods_detail t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.content= #{content} where 1=1 and t.detail_id= #{detailId} and t.goods_id= #{goodsId} and t.community_id= #{communityId}