INSERT INTO unit_maintain (thirdId,unitId,name,spell, addr,status,type) values ( #{thirdId}, #{unitId}, #{name}, #{spell}, #{addr}, #{status}, #{type} ) DELETE FROM unit_maintain WHERE id = #{id}