insert into advert( classify,ad_name,location_type_cd,ad_type_cd,advert_type,advert_id,view_type,start_time,page_url,state,end_time,community_id,location_obj_id,seq ) values ( #{classify},#{adName},#{locationTypeCd},#{adTypeCd},#{advertType},#{advertId},#{viewType},#{startTime},#{pageUrl},#{state},#{endTime},#{communityId},#{locationObjId},#{seq} ) update advert t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.classify= #{classify} , t.ad_name= #{adName} , t.location_type_cd= #{locationTypeCd} , t.ad_type_cd= #{adTypeCd} , t.advert_type= #{advertType} , t.view_type= #{viewType} , t.start_time= #{startTime} , t.page_url= #{pageUrl} , t.state= #{state} , t.end_time= #{endTime} , t.community_id= #{communityId} , t.location_obj_id= #{locationObjId} , t.seq= #{seq} where 1=1 and t.advert_id= #{advertId}