Map中取值toString(),map中取值tostring
分享于 点击 28887 次 点评:43
Map中取值toString(),map中取值tostring
Map<String,Object> recMap = (Map<String, Object>) this.getBaseDao().queryForObject("NGAnswer.querySumRecCount",qmap);int sumRecCount = 0;
if (recMap!=null && recMap.size()>0) {
sumRecCount =Integer.parseInt(recMap.get("sumRecCount").toString());
}
recMap.get("sumRecCount").toString()如果用(String)强转就不行,一定要注意recMap中的类型
相关文章
- 暂无相关文章
用户点评