Exemplo n.º 1
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();
    }
  }