You need to be honest with your attorney and with the courts about your willing participation in sexual relations. This fact will come out, so you need to prepare your attorney for this. Your attorney will then be able to craft a theory or argument to protect you.
The reality is that this may hurt your case, but only if it could be perceived that filing this complaint was done as a way to get back at someone who no longer wanted to have a relationship with you.
You will need to testify that you wanted to stop the sexual relations but felt pressured for sex from a person who had the power over your livelihood. This is especially true if the boss threatened to fire you or give you a poor performance rating or do anything that would hurt your job unless you let him have his way.