Esempio n. 1
0
  // 已经去面试的信息
  public String getAlreadyGoInterviewPerson() throws Exception {

    HashMap<String, Object> pMap = new HashMap<String, Object>();
    pMap.put("qtype", "two");
    pMap.put("hunterGotoInterviewStatus", RecommendFlowType.HUNTER_ALREAD_GOTO_INTERVIEW.getCode());
    pMap.put("endTime", new Date());
    pMap.put("startTime", DateUtil.addDays(new Date(), -1));
    List<HashMap<String, Object>> list = this.zpJlInfoDao.statisticsJlInfo(pMap);
    String emailContent = "";
    if (list != null && list.size() > 0) {
      List<ZpDictionaryInfo> dicList = zpDictionaryInfoDao.queryZpDictionaryInfoList();
      for (HashMap<String, Object> map : list) {
        String realName = String.valueOf(map.get("realName"));
        String jlName = String.valueOf(map.get("name"));
        Long jobPositionId = Long.parseLong(String.valueOf(map.get("jobPositionId")));
        if (emailContent.length() == 0) {
          emailContent =
              ApplicationConst.getMessage(
                  "10105", realName, jlName + " (" + getDicName(jobPositionId, dicList) + ")");
        } else {
          emailContent =
              emailContent
                  + " \n <br> "
                  + ApplicationConst.getMessage(
                      "10105", realName, jlName + " (" + getDicName(jobPositionId, dicList) + ")");
        }
      }
    }

    // System.out.println(emailContent);
    return emailContent;
  }
Esempio n. 2
0
  // 获得技术评审通过的信息
  public String getAuditPassPerson() throws Exception {

    HashMap<String, Object> pMap = new HashMap<String, Object>();
    pMap.put("auditTypeId", JlAuditType.AUDIT_OK.getCode());
    pMap.put("qtype", "one");
    pMap.put("endTime", new Date());
    pMap.put("startTime", DateUtil.addDays(new Date(), -1));

    List<HashMap<String, Object>> list = this.zpJlInfoDao.statisticsJlInfo(pMap);
    String emailContent = "";
    if (list != null && list.size() > 0) {

      List<ZpDictionaryInfo> dicList = zpDictionaryInfoDao.queryZpDictionaryInfoList();
      for (HashMap<String, Object> map : list) {

        String realName = String.valueOf(map.get("realName"));
        int jlcount = Integer.parseInt(String.valueOf(map.get("jlcount")));
        String names = String.valueOf(map.get("names"));
        String positions = String.valueOf(map.get("positions"));
        String name[] = names.split(",");
        String position[] = positions.split(",");
        String nameStr = "";
        for (int i = 0; i < name.length; i++) {
          if (i == 0) {
            nameStr = name[i] + " " + getDicName(Long.parseLong(position[i]), dicList);
          } else {
            nameStr =
                nameStr + " 、" + name[i] + " " + getDicName(Long.parseLong(position[i]), dicList);
          }
        }
        emailContent =
            emailContent
                + " \n <br> "
                + ApplicationConst.getMessage("10104", realName, String.valueOf(jlcount), nameStr);

        // emailContent=emailContent+emailContent;
      }
    }
    return emailContent;
  }