Authored by qinchao

更名接口

@@ -157,11 +157,11 @@ public class AssetsService { @@ -157,11 +157,11 @@ public class AssetsService {
157 157
158 //TODO 内存中计算total 158 //TODO 内存中计算total
159 summary.setGoods_income(sum_goods_income); 159 summary.setGoods_income(sum_goods_income);
160 - summary.setGoodsIncome(String.valueOf(sum_goods_income)); 160 + summary.setGoodsIncome(sum_goods_income.setScale(2,BigDecimal.ROUND_HALF_UP).toPlainString());
161 summary.setCompensate_income(compensate_income); 161 summary.setCompensate_income(compensate_income);
162 - summary.setCompensateIncome(String.valueOf(compensate_income)); 162 + summary.setCompensateIncome(compensate_income.setScale(2,BigDecimal.ROUND_HALF_UP).toPlainString());
163 summary.setTotal_income(sum_goods_income.add(compensate_income)); 163 summary.setTotal_income(sum_goods_income.add(compensate_income));
164 - summary.setTotalIncome(String.valueOf(compensate_income)); 164 + summary.setTotalIncome(compensate_income.setScale(2,BigDecimal.ROUND_HALF_UP).toPlainString());
165 return summary; 165 return summary;
166 } 166 }
167 }); 167 });