I have prostatitis (bacterial) and completed antibiotic course. While on antibiotic I ejaculated 7 times in 2 months. Will it disrupt the treatment?

No, no reason to be. Sexual arousal & masturbation x 7 in 2 months will not disrupt the effectiveness of antibiotic Rx of bacterial prostatitis if it's indeed well documented. If so and not clinically improved, consider something else. Nonetheless, disregard of who, what & how you're, practicing low-risk healthy lifestyle without overindulgence / obsession will greatly help all willing persons return to a better life.