Partner not caring about having an equal sex life

So before we met my partner had difficulty finishing during sex, sometimes he couldn’t stay hard. Up until about a month ago we never had this issue. He’d finish quite quickly if anything.

But now he’s not staying hard once he goes to put it inside my vagina.

But will stay hard and finish during blowjobs. We talked about it and he got upset about not being able to have sex because he was leaving for two weeks the next morning. I was super horny as he hadn’t touched me in a while and it’d mostly been blowjobs the past week.

But when he couldn’t get his penis in me he asked me to suck it and he came quickly from it. We showered and he went to sleep without even considering touching me.

The next morning we tried to have sex and it lasted about 30 seconds and he said it’s not working and he wouldnt be able to cum. So he got dressed and left me naked on the bed untouched again.

I feel ugly and unwanted by him. It seems he can get hard just not while touching/looking at me. I don’t know what to do, I don’t want him feeling badly about it but it’s really bothering me feeling so undesirable to him