insert into staff_community( staff_name,community_name,store_name,community_id,store_id,sc_id,staff_id ) values ( #{staffName},#{communityName},#{storeName},#{communityId},#{storeId},#{scId},#{staffId} ) update staff_community t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.staff_name= #{staffName} , t.community_name= #{communityName} , t.store_name= #{storeName} , t.community_id= #{communityId} , t.store_id= #{storeId} , t.staff_id= #{staffId} where 1=1 and t.sc_id= #{scId}