Commit f9786013 by zhengxj

finish 获取检修单统计数据 on 20190129 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17201 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3c9df471
......@@ -311,7 +311,7 @@ public class OrderServiceImpl implements IOrderService {
if (BigDecimal.ZERO.compareTo(lastMonthOrders) == 0 || BigDecimal.ZERO.compareTo(twoMonthAgoOrders) == 0) {
finishedOrders.setMonthGrowth(new BigDecimal(-10000));
} else {
finishedOrders.setMonthGrowth(lastWeekOrders.subtract(twoMonthAgoOrders).divide(twoMonthAgoOrders)
finishedOrders.setMonthGrowth(lastMonthOrders.subtract(twoMonthAgoOrders).divide(twoMonthAgoOrders)
.setScale(1, BigDecimal.ROUND_HALF_UP));
}
return finishedOrders;
......@@ -470,7 +470,7 @@ public class OrderServiceImpl implements IOrderService {
if (BigDecimal.ZERO.compareTo(lastMonthOrders) == 0 || BigDecimal.ZERO.compareTo(twoMonthAgoOrders) == 0) {
subOrders.setMonthGrowth(new BigDecimal(-10000));
} else {
subOrders.setMonthGrowth(lastWeekOrders.subtract(twoMonthAgoOrders).divide(twoMonthAgoOrders).setScale(1,
subOrders.setMonthGrowth(lastMonthOrders.subtract(twoMonthAgoOrders).divide(twoMonthAgoOrders).setScale(1,
BigDecimal.ROUND_HALF_UP));
}
return subOrders;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!