解决办法
原收款单money
字段 为 decimal(28,8)
经过层层计算用到了
@total := ( beginning + @total + gather - verification ) AS 'balance',
@num := ( @num + 1 ) AS 'num'
办法为最后取时字段加
cast(balance as DECIMAL(28, 2)) as balance,
标签:balance,sum,28,小数点,num,mysql,total
From: https://www.cnblogs.com/fuqian/p/17171878.html