insert into maintainance_plan_staff( staff_name,plan_id,community_id,staff_id,mps_id ) values ( #{staffName},#{planId},#{communityId},#{staffId},#{mpsId} ) update maintainance_plan_staff t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.staff_name= #{staffName} , t.staff_id= #{staffId} where 1=1 and t.mps_id= #{mpsId} and t.plan_id= #{planId} and t.community_id= #{communityId}