Commit 1bdb4396 by zhiwj

修复bug

parent 02ba426f
......@@ -135,11 +135,18 @@ public class EvaluateOverviewApiServiceImpl implements EvaluateOverviewApiServic
if (map != null) {
Long totalCount = (Long) e.get("totalCount");
Long orderCount = (Long) map.get("orderCount");
Long goodCount = (Long) map.get("goodCount");
if (orderCount != null && orderCount != 0) {
e.put("evaluateRate", totalCount.doubleValue() / orderCount.doubleValue());
} else {
e.put("evaluateRate", 0);
}
if (goodCount != null && goodCount != 0) {
e.put("goodRate", goodCount.doubleValue() / totalCount.doubleValue());
} else {
e.put("goodRate", 0);
}
} else {
e.put("evaluateRate", 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