Thanks for your query.Based on the facts that you have posted it appears that you have painful hematuria
. This could be due to many reasons infection in the urinary system
or due to stone in Urethra or Bladder.
Please consult qualified Urologist
for detail clinical evaluation ,You need to get following investigations like
1) Plain X-ray of the abdomen for KUB (Kidney,Ureter , and Bladder) to rule out presence of urinary stone
2) Routine Urine test
scanning of the abdomen to rule out any other cause of bleeding.
The further treatment will depend upon the findings of abve investigations.