狩猎人员统计接口更新

develop
hanrenchun 10 months ago
parent bccfb1bf32
commit 2bdec541de

@ -72,11 +72,11 @@ public class PoachingController extends BaseController {
double ffslaPerce = (double) ffslaCount / count * 100; double ffslaPerce = (double) ffslaCount / count * 100;
ffslaPerce = Double.isNaN(ffslaPerce) ? 0 : ffslaPerce; ffslaPerce = Double.isNaN(ffslaPerce) ? 0 : ffslaPerce;
String ffslaPerceStr = String.format("%.0f%%", ffslaPerce);
double ffslbsPerce = (double) ffslbsCount / count * 100; double ffslbsPerce = (double) ffslbsCount / count * 100;
ffslbsPerce = Double.isNaN(ffslbsPerce) ? 0 : ffslbsPerce; ffslbsPerce = Double.isNaN(ffslbsPerce) ? 0 : ffslbsPerce;
String ffslbsPerceStr = String.format("%.0f%%", ffslbsPerce); ffslaPerce = ffslbsPerce + ffslaPerce;
// String ffslbsPerceStr = String.format("%.0f%%", ffslbsPerce);
String ffslaPerceStr = String.format("%.0f%%", ffslaPerce);
PersonStatissticsVo bean = new PersonStatissticsVo(); PersonStatissticsVo bean = new PersonStatissticsVo();
bean.setCount(count); bean.setCount(count);
@ -90,11 +90,11 @@ public class PoachingController extends BaseController {
ffslaMap.put("value", ffslaCount); ffslaMap.put("value", ffslaCount);
ffslaMap.put("percentage", ffslaPerceStr); ffslaMap.put("percentage", ffslaPerceStr);
bean.setFfsla(ffslaMap); bean.setFfsla(ffslaMap);
Map ffslbsMap = new HashMap(); // Map ffslbsMap = new HashMap();
ffslbsMap.put("name","非法猎捕杀害珍贵、濒危野生动物案"); // ffslbsMap.put("name", "非法猎捕杀害珍贵、濒危野生动物案");
ffslbsMap.put("value",ffslbsCount); // ffslbsMap.put("value", ffslbsCount);
ffslbsMap.put("percentage",ffslbsPerceStr); // ffslbsMap.put("percentage", ffslbsPerceStr);
bean.setFfslbs(ffslbsMap); // bean.setFfslbs(ffslbsMap);
return AjaxResult.success(bean); return AjaxResult.success(bean);
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save