关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 7487|回复: 0

请高手帮助解决datagrid出错的问题

[复制链接]
发表于 2014-4-28 14:34:30 | 显示全部楼层 |阅读模式
t:datagrid已有的查询功能无法满足需求,我另加一按钮,调用后台classify_datagrid(),总是出错,请高人帮忙。
代码:
public void classify_datagrid(UYearScoreEntity uYearScore,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid,String classify) {
                classify = classify==null?"":classify;
                System.out.println("aaaaa="+classify);
                CriteriaQuery cq = new CriteriaQuery(UYearScoreEntity.class, dataGrid);
                //查询条件组装器
                org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, uYearScore, request.getParameterMap());
                try{
                }catch (Exception e) {
                        throw new BusinessException(e.getMessage());
                }
                cq.add();
                this.uYearScoreService.getDataGridReturn(cq, true);
                TagUtil.datagrid(response, dataGrid);
        }
在TagUtil.datagrid(response, dataGrid);这一行出java.lang.NullPointerException错误。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表