insert into n_notice(notice_type_cd, context, obj_id, start_time, end_time, state, title, community_id, user_id, obj_type, notice_id) values (#{noticeTypeCd}, #{context}, #{objId}, #{startTime}, #{endTime}, #{state}, #{title}, #{communityId}, #{userId}, #{objType}, #{noticeId}) update n_notice t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.notice_type_cd= #{noticeTypeCd} , t.context= #{context} , t.obj_id= #{objId} , t.start_time= #{startTime} , t.end_time= #{endTime} , t.state= #{state} , t.title= #{title} , t.community_id= #{communityId} , t.user_id= #{userId} , t.obj_type= #{objType} where 1=1 and t.notice_id= #{noticeId}