The invention provides a hydraulic pump and a vehicle with the same. The hydraulic pump comprises a pump body and a control valve, wherein the pump body is provided with a flow inlet and a flow outlet, the control valve comprises a valve body and a valve element, the valve body is arranged on the pump body, the valve element is movably arranged on the valve body, the valve element is provided witha liquid supply channel, a first liquid outlet and a second liquid outlet, the first liquid outlet and the second liquid outlet communicate with the liquid supply channel, and the liquid supply channel communicate with the flow outlet; the valve body is further provided with a first liquid outlet branch and a second liquid outlet branch, and the first liquid outlet branch communicates with the first liquid outlet; the valve element is provided with an avoiding position and a communicating position, and when the valve element is located at the avoiding position, the second liquid outlet is blocked by the valve body, so that the second liquid outlet is disconnected from the second liquid outlet branch; and when the valve element is located at the communicating position, the second liquid outlet and at least part of the second liquid outlet branch are oppositely arranged, so that the second liquid outlet communicates with the second liquid outlet branch. The technical problem that a hydraulic system of a tractor in the prior art is large in occupied space is solved.