Package com.lgx8.common.dao

Examples of com.lgx8.common.dao.IConfigDao


  public PageList findSupplierPage(int pageno, int pagesize) {
    String hql = "";
    hql = "from Supplier s where s.isdelete=0 order by s.id desc";
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here


  }

  public PageList findBrandPage(int pageno, int pagesize) {
    String hql = "from Brand b where b.isdelete=0 order by b.id desc";
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
      hql += ") "+" order by p.createdate desc";
     
    }
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
    }
    hql += "order by s.id desc";
   
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      }
    }
    hql += "order by b.id desc";
   
    Object[] values = new Object[]{};
    PageList page = findByPage4Report(hql, values, pageno, pagesize);
    return page;
  }
View Full Code Here

      hql += conditions ;
    }
   
    hql += " order by orderTime desc";
   
    PageList page = this.findByPage4Report(hql, new Object[]{}, pageNum, pageSize);
   
    return page;
  }
View Full Code Here

      if(sb.toString()!=null&&!sb.toString().equals("")){
        hql = " from Rechargehistory t1 where "+sb.toString().substring(4)+" order by t1.CZSJ desc";
      }else{
        hql = " from Rechargehistory t1 order by t1.CZSJ desc";
      }
      PageList list = rechargehistoryDao.listRechargehistoryByConditions(hql, new Object[]{}, pr);
      printJSON(response, list.toJSON());
    }
    return null;
  }
View Full Code Here

   
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG){
      String hql = "";
        hql = "from Rechargehistory where ifnull(deleteflag,'0')='0' "+sb.toString()+" order by czsj desc";
      PageList list = rechargehistoryDao.listRechargehistoryByConditions(hql, new Object[]{}, pr);
      printJSON(response, list.toJSON());
    }
    return null;
  }
View Full Code Here

        }
      }
     
      hql += " order by o.id desc";
     
      PageList list = orderDao.findByPage4Report(hql, new Object[]{}, Integer.parseInt(page), Integer.parseInt(maxResult));
      //当前页数设置
      pageInfo.put("page", page);
      //当前页数设置
      pageInfo.put("size", maxResult);
      //总搜索数据量设置
      pageInfo.put("total", list.getTotalRecordNum());
     
      String jsonStr = creMessageJSON(list.getDataList(), pageInfo);
      //response相关处理
      response.setContentType("html/txt");
      response.setCharacterEncoding("utf-8");  
          response.setHeader("Pragma", "no-cache");  
          response.setHeader("Cache-Control", "no-cache, must-revalidate");  
View Full Code Here

     * @see ServletContextListener#contextInitialized(ServletContextEvent)
     */
    public void contextInitialized(ServletContextEvent arg0) {
      ServletContext servletContext = arg0.getServletContext();
      ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);
      IConfigDao configDao = (IConfigDao) appContext.getBean("configDao");
      GatewayConfig gatewayConfig = configDao.findGatewayConfig();
      servletContext.setAttribute("gatewayConfig", gatewayConfig);
     
//      gatewayConfig.setUrl("http://localhost:8080/yikatao");
     
      Constants.gatewayConfig = gatewayConfig;
View Full Code Here

TOP

Related Classes of com.lgx8.common.dao.IConfigDao

Copyright © 2018 www.massapicom. 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.