It sounds like your case has already been concluded as a result of some kind of plea negotiations. If so, you should have received paperwork that explains the obligations you are required to adhere to as part of the negotiation. Treatment is a very common condition in DV cases and should have been explained to you during the negotiations.
Sentencing issues are complex and this is not a good forum for that kind of discussion. You should sit down with a lawyer and review the obligations of your disposition to analyze your options. You may be able to change things or even undo the bargain under appropriate circumstances. Only a lawyer familiar with the case will be able to provide those answers.