Sodium-Glucose Cotransporter 2 Inhibitor(SGLT2i) including dapagliflozin are widely used in the clinical treatment of type 2 diabetes mellitus(T2DM). In recent studies, SGLT2i were found to not only reduce blood glucose but also protect the heart and kidney, which can significantly reduce cardiovascular events, delay the progression of renal failure, greatly improve the quality of life of patients. Patients with T2DM have poorer cardiac surgery outcomes compared with non-diabetics. Based on the promising pharmacological profile of dapagliflozin, we hypothesize that perioperative dapagliflozin therapy would improve postoperative outcomes among patients undergoing cardiac surgery with T2DM. This randomized controlled trial is to assess the effects of perioperative dapagliflozin on type 2 diabetic patients undergoing cardiac surgery