一、sum()求和问题
ifnull( SUM(CONVERT(t.amount,DECIMAL(10,2))), '0.00')
二、BigDecimal加减乘除计算 https://blog.csdn.net/haiyinshushe/article/details/82721234