Commit 53b66d44 authored by Quxl's avatar Quxl

x

parent dc75f6f0
......@@ -188,17 +188,17 @@ public class FilmReportServiceImpl implements FilmReportService {
Map<String, Object> count_canzan_map = new HashMap<String, Object>();
count_canzan_map.put("title", "参展");
count_canzan_map.put("count", count_canzan);
count_canzan_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_canzan).divide(count).multiply(NUM_100).setScale(2)) + "%");
count_canzan_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_canzan).divide(count, 4).multiply(NUM_100).setScale(2)) + "%");
Map<String, Object> count_cansai_map = new HashMap<String, Object>();
count_cansai_map.put("title", "参赛");
count_cansai_map.put("count", count_cansai);
count_cansai_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_cansai).divide(count).multiply(NUM_100).setScale(2)) + "%");
count_cansai_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_cansai).divide(count, 4).multiply(NUM_100).setScale(2)) + "%");
Map<String, Object> count_foujue_map = new HashMap<String, Object>();
count_foujue_map.put("title", "否决");
count_foujue_map.put("count", count_foujue);
count_foujue_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_foujue).divide(count).multiply(NUM_100).setScale(2)) + "%");
count_foujue_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_foujue).divide(count, 4).multiply(NUM_100).setScale(2)) + "%");
return Rjx.jsonOk().set("count", count_quanbu).setData(new Object[] {count_canzan_map, count_cansai_map, count_foujue_map});
}
......
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