自定义追加查询条件 java代码里面如何追加自定义条件?
java代码:@RequestMapping(params = "datagrid")
public void datagrid(FAirpriceEntity fAirprice,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(FAirpriceEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, fAirprice, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.fAirpriceService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
我希望datagrid里面显示的范围是create_by字段是sys_user_code
java代码里面如何实现?
cq.eq("实体类字段名","你要等于的值"); 是的
页:
[1]