class FrontServices {

    public ResponseMessage everyOneWeekly(WeeklyReportRequest weeklyReportRequest) {
        WeeklyReportResponse weeklyReportResponse = new WeeklyReportResponse();
        List<UserRecord> userRecords = Lists.newLinkedList();
        List<UserGroup> userGroups = userGroupMapper.selectByGroupId(weeklyReportRequest.getGroupId());
        ThisLocalizedWeek thisLocalizedWeek = new ThisLocalizedWeek(Locale.CHINA);
        Date start = thisLocalizedWeek.getFirstDay();
        Date end = thisLocalizedWeek.getLastDay();
        String rangeOfTime = parseForFrontEnd1(start) + " to " + parseForFrontEnd1(end);

        for (UserGroup userGroup : userGroups) {
            handleWeeklyUserInGroup(userRecords, start, end, userGroup);
        }
        weeklyReportResponse.setTimeRange(rangeOfTime);
        weeklyReportResponse.setAllWeeklyRecords(userRecords);
        return ResultUtils.success(weeklyReportResponse);
    }

    @Autowired public  FrontServices(UserInfoMapper userInfoMapper,
                         UserGroupMapper userGroupMapper,
                         TargetDistanceMapper targetDistanceMapper,
                         RunningRecordMapper runningRecordMapper,
                         VoteRecordMapper voteRecordMapper);

}