Exemplo n.º 1
0
  /**
   * @Title: queryEnterpriseList @Description: 获取有效的企业列表
   *
   * @param @return 参数
   * @return List<Enterprise> 返回类型
   * @throws
   * @author taozhaoping 26078
   * @author mail [email protected]
   */
  public static List<Enterprise> queryEnterpriseList() {

    Enterprise enterprise = new Enterprise();
    enterprise.setEnabled("0");
    List<Enterprise> reult = enterpriseService.queryList(enterprise);

    return reult;
  }
Exemplo n.º 2
0
  /**
   * 获取企业名称 @Title: queryEnterprise @Description: TODO(这里用一句话描述这个方法的作用)
   *
   * @param @param id
   * @param @return 参数
   * @return String 返回类型
   * @throws
   * @author taozhaoping 26078
   * @author mail [email protected]
   */
  public static String queryEnterprise(String id) {
    if (null == id || "null".equals(id)) {
      return "";
    }

    Enterprise enterprise = new Enterprise();
    enterprise.setId(Long.valueOf(id));
    Enterprise reult = enterpriseService.query(enterprise);
    if (reult == null) {
      return "";
    } else {
      return reult.getName();
    }
  }