欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > > 文章正文

Map中取值toString(),map中取值tostring

来源: javaer 分享于  点击 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中的类型

相关文章

    暂无相关文章

用户点评