Commit 02c8ba94 by zhiwj

修改bug

parent 282aeb57
......@@ -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", (double)Math.round(totalCount.doubleValue() / orderCount.doubleValue()*100)/100);
e.put("evaluateRate", (double)Math.round(totalCount.doubleValue() / orderCount.doubleValue()*10000)/10000);
} else {
e.put("evaluateRate", 0);
}
if (goodCount != null && goodCount != 0) {
e.put("goodRate", (double)Math.round(goodCount.doubleValue() / totalCount.doubleValue()*100)/100);
e.put("goodRate", (double)Math.round(goodCount.doubleValue() / totalCount.doubleValue()*10000)/10000);
} else {
e.put("goodRate", 0);
}
......
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