|
本帖最后由 沈焕杰 于 2014-4-18 14:41 编辑
/**
* easyui AJAX请求表格数据
*
* @param notice
* @param request
* @param response
* @param dataGrid
*/
@SuppressWarnings("unchecked")
@RequestMapping(params = "datagrid")
public void datagrid(NoticeEntity notice, HttpServletRequest request,
HttpServletResponse response, DataGrid dataGrid) {
//------ 既然可以实现"*",那就直接判断非空后,默认添加"*"咯 - -!
String searchStr= request.getParameter("title");
if (searchStr!= null) {
notice.setTitle("*" + notice.getTitle() + "*");
}
-//-----------------------------------------------------------------------------------
CriteriaQuery cq = new CriteriaQuery(NoticeEntity.class, dataGrid);
// 查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq,
notice, request.getParameterMap());
this.systemService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
|
|