insert into maintainance_plan_machine( mpm_id,machine_id,plan_id,community_id,machine_name ) values ( #{mpmId},#{machineId},#{planId},#{communityId},#{machineName} ) update maintainance_plan_machine t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.machine_id= #{machineId} , t.create_time= #{createTime} , t.plan_id= #{planId} , t.community_id= #{communityId} , t.machine_name= #{machineName} where 1=1 and t.mpm_id= #{mpmId}