jì​yào​dāng​biǎo​zi​yòu​yào​lì​pái​fāng

to want to have one's cake and eat it too

既要当婊子又要立牌坊 既要當婊子又要立牌坊 jì​yào​dāng​biǎo​zi​yòu​yào​lì​pái​fāng
to want to have one's cake and eat it too
Literally "to be a prostitute yet still want a monument erected to one's chastity"; describes someone who does bad things or has selfish intentions but still wants to maintain a good reputation.