从数据库总查询出的count(*) 函数统计的值,类型转换方法:

     
     Map<String,Integer> map = new HashMap<String,Integer>();
     List<Object[]> list = query.list(); for(Object[] kv : list){ map.put(kv[0].toString(),Integer.parseInt(kv[1].toString())); }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2021-12-01
  • 2021-07-16
  • 2021-06-04
  • 2021-11-21
猜你喜欢
  • 2021-10-14
  • 2021-08-17
  • 2021-09-12
  • 2022-12-23
  • 2021-10-17
相关资源
相似解决方案