This remind me a little of Yongzheng Emperor, or Emperor Shizong of Qing. His rule was also unpopular, mostly because he was harsh even with his supporter; his reign was much shorter compared to his father and his son, and less remembered - the Harmony Era of the time was named after the latter two and not him. However, it is undeniable that he was also the Emperor who consolidate the Qing Empire after Kangxi, and build the foundation upon with Qianlong would raise the nation to its highest point.
Well, the marked difference is that nowadays the opinion about him is unquestionably good though; it is quite widely accepted that without him there may not even be a High Qing era.