Esempio n. 1
0
 public static List<ResumeVO2> toVOs(List<PositionSubscribeUser> positionSubscribeUsers) {
   List<ResumeVO2> vos = new ArrayList<ResumeVO2>();
   if (positionSubscribeUsers == null) {
     return vos;
   }
   for (PositionSubscribeUser positionSubscribeUser : positionSubscribeUsers) {
     vos.add(ResumeVO2.toVO(positionSubscribeUser));
   }
   return vos;
 }
Esempio n. 2
0
  public static ResumeVO2 toVO(PositionSubscribeUser positionSubscribeUser) {
    if (positionSubscribeUser == null) {
      return null;
    }
    ResumeVO2 vo = new ResumeVO2();
    vo.setId(positionSubscribeUser.getId());

    ResumeUser resumeUser = positionSubscribeUser.getResumeUser();
    vo.setName(resumeUser.getName());
    vo.setGender(resumeUser.getGender());
    vo.setTelephone(resumeUser.getTelephone());

    vo.setUpdateTime(DateTimeUtility.formatYYYYMMDD(positionSubscribeUser.getUpdateTime()));
    vo.setCompanyName(positionSubscribeUser.getPosition().getCompany().getName());
    vo.setWechatAccount(positionSubscribeUser.getUser().getWechatAccount());

    vo.setPositionName(positionSubscribeUser.getPosition().getTitle());

    List<ResumeSubscribeStatus> statuses = positionSubscribeUser.getStatuses();
    List<String> allStatus = new ArrayList<String>();
    List<String> replies = new ArrayList<String>();
    List<String> statusTime = new ArrayList<String>();
    if (statuses != null) {
      for (ResumeSubscribeStatus status : statuses) {
        allStatus.add(status.getStatus());
        if (status.getReply() == null) {
          replies.add("");
        } else {
          replies.add(status.getReply());
        }

        statusTime.add(DateTimeUtility.formatYYYYMMDD(status.getCreateTime()));
      }
    }
    vo.setAllStatus(allStatus);
    vo.setReplies(replies);
    vo.setStatusTime(statusTime);

    return vo;
  }