初始化map Map map=new HashMap();
String sql="from Tab0 t0 where t0.keytypeid='"+keytypeid+"' and "+
"t0.tabKeys.adddate
"-01-01 00:00:00' and t0.tabKeys.adddate>'"+
(years1-1)+"-12-31 23:59:59' and t0.cgName like '%" + keyword + "%' ";
List tab0s=tab0Sercive.getTab0ListByHql(sql);
List> tab0lList=new ArrayList>();
for(Tab0 tab0 :tab0s){
Map map=new HashMap();
map.put("randomid", tab0.getRandomid());
map.put("cgName", tab0.getCgName());
//项目类别
map.put("keytypeid",tab0.getKeytypeid().toString());
tab0lList.add(map);
}