Package org.jeecgframework.core.common.hibernate.qbc

Examples of org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery.like()


    String jString = request.getParameter("_dt_json");
    DataTables dataTables = new DataTables(request);
    CriteriaQuery cq = new CriteriaQuery(TSUser.class, dataTables);
    String username = request.getParameter("userName");
    if (username != null) {
      cq.like("userName", username);
      cq.add();
    }
    DataTableReturn dataTableReturn = systemService.getDataTableReturn(cq, true);
    TagUtil.datatable(response, dataTableReturn, "id,userName,mobilePhone,TSDepart_departname");
  }
View Full Code Here


   */
  @RequestMapping(params = "testSearch")
  public void testSearch(TSUser user, HttpServletRequest request,HttpServletResponse response,DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(TSUser.class, dataGrid);
    if(user.getUserName()!=null){
      cq.like("userName", user.getUserName());
    }
    if(user.getRealName()!=null){
      cq.like("realName", user.getRealName());
    }
    cq.add();
View Full Code Here

    CriteriaQuery cq = new CriteriaQuery(TSUser.class, dataGrid);
    if(user.getUserName()!=null){
      cq.like("userName", user.getUserName());
    }
    if(user.getRealName()!=null){
      cq.like("realName", user.getRealName());
    }
    cq.add();
    this.systemService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
  }
View Full Code Here

  public void typeGrid(HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
    String typegroupid = request.getParameter("typegroupid");
    String typename = request.getParameter("typename");
    CriteriaQuery cq = new CriteriaQuery(TSType.class, dataGrid);
    cq.eq("TSTypegroup.id", typegroupid);
    cq.like("typename", typename);
    cq.add();
    this.systemService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
  }
//  @RequestMapping(params = "typeGroupTree")
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.