Commit 3818d335 by zhiwj

修改bug

parent 540b853a
......@@ -153,11 +153,11 @@ public class EvaluateOverviewApiServiceImpl implements EvaluateOverviewApiServic
e.put("evaluateRate", 0);
}
if (goodCount != null && goodCount != 0) {
e.put("goodRate", (double)Math.round(goodCount.doubleValue() / totalCount.doubleValue()*10000)/100 + "%");
} else {
e.put("goodRate", 0);
}
// if (goodCount != null && goodCount != 0) {
// e.put("goodRate", (double)Math.round(goodCount.doubleValue() / totalCount.doubleValue()*10000)/100 + "%");
// } else {
// e.put("goodRate", 0);
// }
} else {
e.put("evaluateRate", 0);
}
......
......@@ -825,7 +825,8 @@
area_name areaName,
count(*) totalCount,
count(good_evaluate_status = 1 or null) goodCount,
count(bad_evaluate_status =1 or null) badCount
count(bad_evaluate_status =1 or null) badCount,
count(good_evaluate_status = 1 or null) / count(*) goodsRate
from tab_evaluate
where enterprise_id = #{enterpriseId}
and status = 1
......@@ -838,13 +839,13 @@
group by store_id
<if test="sortColumn != null ">
<if test="sortColumn == 1">
order by goodsScore
order by totalCount
</if>
<if test="sortColumn == 2">
order by storeScore
order by goodsRate
</if>
<if test="sortColumn == 3">
order by serviceScore
order by badCount
</if>
<if test="sortType != null">
<if test="sortType == 1">
......
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