记得上下班打卡 | git大法好,push需谨慎

Commit ffc6b787 authored by 胡佳晨's avatar 胡佳晨

优惠金额四舍五入

parent 8fb39ecd
...@@ -227,7 +227,7 @@ public class OrderUtils { ...@@ -227,7 +227,7 @@ public class OrderUtils {
} }
HashMap<String, Object> hashMap = CollectionUtil.mapStringObject(); HashMap<String, Object> hashMap = CollectionUtil.mapStringObject();
hashMap.put("type", type); hashMap.put("type", type);
hashMap.put("voucher", voucher); hashMap.put("voucher", voucher.setScale(2,BigDecimal.ROUND_HALF_UP));
return hashMap; return hashMap;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment