|
楼主 |
发表于 2013-11-22 15:00:14
|
显示全部楼层
好了,搞定了,非常感谢绝月 --下面是我代码:
/**部门名称*/
private java.lang.String dertName;
@Transient
public java.lang.String getDertName() {
return dertName;
}
public void setDertName(java.lang.String dertName) {
this.dertName = dertName;
}
Controller:
@RequestMapping(params = "datagrid")
public void datagrid(OrgPermitEntity orgPermit,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(OrgPermitEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, orgPermit, request.getParameterMap());
this.orgPermitService.getDataGridReturn(cq, true);
List<OrgPermitEntity>list= dataGrid.getReaults();
for(OrgPermitEntity e:list){
e.setDertName(this.getDertName(e.getDertCode()));
}
TagUtil.datagrid(response, dataGrid);
} |
|