Commit 78453b93 authored by Quxl's avatar Quxl

x

parent 68c6c798
......@@ -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, 4).multiply(NUM_100).setScale(2)) + "%");
count_canzan_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_canzan).multiply(NUM_100).divide(count, 2, BigDecimal.ROUND_HALF_UP)) + "%");
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, 4).multiply(NUM_100).setScale(2)) + "%");
count_cansai_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_cansai).multiply(NUM_100).divide(count, 2, BigDecimal.ROUND_HALF_UP)) + "%");
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, 4).multiply(NUM_100).setScale(2)) + "%");
count_foujue_map.put("rate", (count.compareTo(BigDecimal.ZERO) == 0 ? "0.00" : new BigDecimal(count_foujue).multiply(NUM_100).divide(count, 2, BigDecimal.ROUND_HALF_UP)) + "%");
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