コード例 #1
0
ファイル: ReportService.java プロジェクト: minhnhat2006/java
 private void buildRegisterStatisticBean(
     List<OverviewStatisticBean> statisticBeans,
     Date toDate,
     Date fromLast7Days,
     Date fromLast30Days) {
   int total = ((Long) userRepo.count()).intValue();
   int last7Days = userRepo.countInDateRange(fromLast7Days, toDate);
   int last30Days = userRepo.countInDateRange(fromLast30Days, toDate);
   OverviewStatisticBean statisticBean =
       new OverviewStatisticBean(
           "Register", total, last7Days, last30Days, WebConstants.FixValue.REGISTER_REPORT);
   statisticBeans.add(statisticBean);
 }
コード例 #2
0
ファイル: ReportService.java プロジェクト: minhnhat2006/java
 public List<StatisticDetailsBean> getRegisterStatisticData(Date from, Date to) {
   List<StatisticDetailsBean> results = new ArrayList<StatisticDetailsBean>();
   List<User> users = userRepo.findInDateRange(from, to);
   StatisticDetailsBean registerDetailsBean = null;
   for (User u : users) {
     registerDetailsBean =
         new StatisticDetailsBean(
             u.getUserId(), u.getUserName(), u.getUserEmail(), u.getDateCreated());
     results.add(registerDetailsBean);
   }
   return results;
 }
コード例 #3
0
ファイル: ReportService.java プロジェクト: minhnhat2006/java
 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;
 }