Hi welcome to Healthcaremagic
Hi...., the inguinal hernia surgery
is not related to the erection of the penis...
may be due to pain, and decreased desire would have made you like that..
do not worry, you will get erection, try to do with confidence..
Hope I have answered your question..