Commit 282aeb57 by zhiwj

修改bug

parent 8ec25924
......@@ -142,13 +142,13 @@ public class EvaluateOverviewApiServiceImpl implements EvaluateOverviewApiServic
Long orderCount = (Long) map.get("orderCount");
Long goodCount = (Long) e.get("goodCount");
if (orderCount != null && orderCount != 0) {
e.put("evaluateRate", totalCount.doubleValue() / orderCount.doubleValue());
e.put("evaluateRate", (double)Math.round(totalCount.doubleValue() / orderCount.doubleValue()*100)/100);
} else {
e.put("evaluateRate", 0);
}
if (goodCount != null && goodCount != 0) {
e.put("goodRate", goodCount.doubleValue() / totalCount.doubleValue());
e.put("goodRate", (double)Math.round(goodCount.doubleValue() / totalCount.doubleValue()*100)/100);
} else {
e.put("goodRate", 0);
}
......@@ -261,5 +261,4 @@ public class EvaluateOverviewApiServiceImpl implements EvaluateOverviewApiServic
dateList.add(dateSecond);
return dateList;
}
}
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