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; }
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; }