insert into advert_item( item_type_cd,community_id,advert_item_id,advert_id,url,seq ) values ( #{itemTypeCd},#{communityId},#{advertItemId},#{advertId},#{url},#{seq} ) update advert_item t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.item_type_cd= #{itemTypeCd} , t.community_id= #{communityId} , t.advert_id= #{advertId} , t.url= #{url} , t.seq= #{seq} where 1=1 and t.advert_item_id= #{advertItemId}