select SUM(ISNULL(ABS(ShopCouponAmount),0)) from OrderDetail
ABS函数 去掉金额字段值为负数问题
原文:https://www.cnblogs.com/Warmsunshine/p/11121290.html