예제 #1
0
 private void buildResumeStatisticBean(
     List<OverviewStatisticBean> statisticBeans,
     Date toDate,
     Date fromLast7Days,
     Date fromLast30Days) {
   int total = ((Long) resumeRepo.count()).intValue();
   int last7Days = resumeRepo.countInDateRange(fromLast7Days, toDate, Resume.class.getName());
   int last30Days = resumeRepo.countInDateRange(fromLast30Days, toDate, Resume.class.getName());
   OverviewStatisticBean statisticBean =
       new OverviewStatisticBean(
           "Ask For Resume", total, last7Days, last30Days, WebConstants.FixValue.RESUME_REPORT);
   statisticBeans.add(statisticBean);
 }
예제 #2
0
 public List<StatisticDetailsBean> getResumeStatisticData(Date from, Date to) {
   List<StatisticDetailsBean> results = new ArrayList<StatisticDetailsBean>();
   List<Resume> resumes = resumeRepo.findInDateRange(from, to);
   StatisticDetailsBean resumeDetailsBean = null;
   for (Resume r : resumes) {
     User user = userRepo.findOne(r.getUserId());
     resumeDetailsBean =
         new StatisticDetailsBean(
             r.getResumeId(), r.getName(), user.getUserEmail(), r.getCreatedDate());
     results.add(resumeDetailsBean);
   }
   return results;
 }