If it is hematuria caused by a urinary tract infection and the symptoms are mild, you can use drugs containing ingredients such as amoxicillin.
Care Hacks
How to treat bleeding from the male urethra of dogs

If the bleeding is caused by urethral orifice injury, it is recommended to use hemostatic drugs to avoid licking by the dog, and use antibacterial drugs if necessary. If the bleeding is caused by stones, it needs to be treated by flushing or surgery, and the dog's water intake needs to be increased. It is recommended to feed urinary tract prescription food.