SELECT SUM(rmb) FROM `t_charge` where DATE_FORMAT(time,'%Y%m%d') = '20190112'; 转载于:https://my.oschina.net/u/3011256/blog/3000818