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

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


    String subclassname = oConvertUtils.getString(request.getParameter("subclassname"));// 子类类名
    String type = oConvertUtils.getString(request.getParameter("typename"));
    String code = oConvertUtils.getString(request.getParameter("typecode"));
    String filekey = oConvertUtils.getString(request.getParameter("filekey"));
    CriteriaQuery cq = new CriteriaQuery(MyClassLoader.getClassByScn(subclassname), dataGrid);
    cq.eq("businessKey", businessKey);
    if (StringUtil.isNotEmpty(type)) {
      cq.createAlias("TBInfotype", "TBInfotype");
      cq.eq("TBInfotype.typename", type);
    }
    if (StringUtil.isNotEmpty(filekey)) {
View Full Code Here


    String filekey = oConvertUtils.getString(request.getParameter("filekey"));
    CriteriaQuery cq = new CriteriaQuery(MyClassLoader.getClassByScn(subclassname), dataGrid);
    cq.eq("businessKey", businessKey);
    if (StringUtil.isNotEmpty(type)) {
      cq.createAlias("TBInfotype", "TBInfotype");
      cq.eq("TBInfotype.typename", type);
    }
    if (StringUtil.isNotEmpty(filekey)) {
      cq.eq("id", filekey);
    }
    if (StringUtil.isNotEmpty(code)) {
View Full Code Here

    if (StringUtil.isNotEmpty(type)) {
      cq.createAlias("TBInfotype", "TBInfotype");
      cq.eq("TBInfotype.typename", type);
    }
    if (StringUtil.isNotEmpty(filekey)) {
      cq.eq("id", filekey);
    }
    if (StringUtil.isNotEmpty(code)) {
      cq.createAlias("TBInfotype", "TBInfotype");
      cq.eq("TBInfotype.typecode", code);
    }
View Full Code Here

    if (StringUtil.isNotEmpty(filekey)) {
      cq.eq("id", filekey);
    }
    if (StringUtil.isNotEmpty(code)) {
      cq.createAlias("TBInfotype", "TBInfotype");
      cq.eq("TBInfotype.typecode", code);
    }
    cq.add();
    this.systemService.getDataGridReturn(cq, true);
    TagUtil.datagrid(response, dataGrid);
  }
View Full Code Here

      HttpServletRequest req) {
   
    List<CgFormFieldEntity> columnList = new ArrayList<CgFormFieldEntity>();
    if (StringUtil.isNotEmpty(cgFormHead.getId())) {
      CriteriaQuery cq = new CriteriaQuery(CgFormFieldEntity.class);
      cq.eq("table.id", cgFormHead.getId());
      cq.add();
      columnList = cgFormFieldService
          .getListByCriteriaQuery(cq, false);
      //对字段列按顺序排序
      Collections.sort(columnList,new FieldNumComparator());
View Full Code Here

    }
    if(null != entity.getCode()) {
      HqlGenerateUtil.installHql(cq, entity);
    }
    if (treegrid.getId() != null) {
      cq.eq("parent.id", treegrid.getId());
    } else {
      cq.isNull("parent");
    }
    cq.add();
    List<TreeGrid> list = jeecgMatterBomService.getListByCriteriaQuery(cq, false);
View Full Code Here

      HttpServletResponse response, DataGrid dataGrid) {
    CriteriaQuery cq = new CriteriaQuery(TSFunction.class, dataGrid);
    String id = oConvertUtils.getString(request.getParameter("id"));
    cq.isNull("TSFunction");
    if (id != null) {
      cq.eq("TSFunction.id", id);
    }
    cq.add();
    List<TSFunction> functionList = systemService.getListByCriteriaQuery(
        cq, false);
    List<TreeGrid> treeGrids = new ArrayList<TreeGrid>();
View Full Code Here

    CriteriaQuery cq = new CriteriaQuery(TSFunction.class);
    if(null != request.getParameter("selfId")){
      cq.notEq("id", request.getParameter("selfId"));
    }
    if (comboTree.getId() != null) {
      cq.eq("TSFunction.id", comboTree.getId());
    }
    if (comboTree.getId() == null) {
      cq.isNull("TSFunction");
    }
    cq.add();
View Full Code Here

  @RequestMapping(params = "territoryGrid")
  @ResponseBody
  public List<TreeGrid> territoryGrid(HttpServletRequest request, TreeGrid treegrid) {
    CriteriaQuery cq = new CriteriaQuery(TSTerritory.class);
      if (treegrid.getId() != null) {
        cq.eq("TSTerritory.id", treegrid.getId());
      }
      if (treegrid.getId() == null) {
        cq.eq("TSTerritory.id","1");//这个是全国最高级
      }
   
View Full Code Here

    CriteriaQuery cq = new CriteriaQuery(TSTerritory.class);
      if (treegrid.getId() != null) {
        cq.eq("TSTerritory.id", treegrid.getId());
      }
      if (treegrid.getId() == null) {
        cq.eq("TSTerritory.id","1");//这个是全国最高级
      }
   
    cq.addOrder("territorySort", SortDirection.asc);
    cq.add();
    List<TSTerritory> territoryList = systemService.getListByCriteriaQuery(cq, false);
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.