The compressor comprises a shell, a pump body
assembly and a motor, the pump body
assembly is arranged in the shell, a
stator assembly of the motor is fixedly connected with the inner wall of the circumferential shell, and a rotor assembly of the motor is located in an annular space of the
stator assembly and connected with a
crankshaft. The oil baffle cap is located at the uppermost end of the rotor assembly and can conduct oil-
gas separation on
mixed gas from the pump body assembly. The height of the
flanging structure of the oil baffle cap is h, the height between the upper end face of the circumferential shell and the upper end face of the
stator core in the vertical direction is the height H of an upper cavity of the shell, and the nominal working volume of the compressor is V. According to the compressor, the value of H * h / V is reasonably set to be within the range of (0.97-3.53) * 10 <-2 > mm <-1 >, the flowing resistance of
airflow and the separation efficiency of lubricating
oil can be balanced, and the working efficiency of the compressor is improved. Therefore, the operation performance and reliability of the compressor are improved, meanwhile, the situation that the size of the compressor is too large is avoided, and the compact design of the compressor structure is facilitated.