put(java.lang.Integer,java.util.HashMap<java.lang.String,java.lang.Object>)怎么解决
分类:编程开发 > 最后更新时间:【2016-12-18 01:27:07】
public void baiduNews(Integer os, String sn, String phone, String mac, HttpServletResponse response, HttpServletRequest request) {
List<HashMap<String,Object>> list =new ArrayList<HashMap<String, Object>>();
String hql = "from AppBaiduNews where platform_os=os and state=1";
List<AppBaiduNews> baiduNews =appBaiduNewsService.find(hql,os);
for(AppBaiduNews baidunew : baiduNews){
HashMap<String,Object> item = new HashMap<String,Object>();
item.put("channel", baidunew.getChannel());
item.put("channelId",baidunew.getChannelId());
list.put(os+"",item);
}
sendJSON(response, CommonMsg.serializeSuccess(list));
}
最佳答案
os+""是string类型 不是integer类型
其他回答
暂无其它回答!