|
@@ -8,6 +8,7 @@ import com.hz.employmentsite.util.StringUtils;
|
|
|
import com.hz.employmentsite.vo.jobUserManager.JobUserServiceVo;
|
|
|
import com.hz.employmentsite.vo.statistics.HourNewAddCount;
|
|
|
import com.hz.employmentsite.vo.statistics.RegionSystemDataCount;
|
|
|
+import com.hz.employmentsite.vo.statistics.SiteServiceCount;
|
|
|
import com.hz.employmentsite.vo.statistics.SystemDataCount;
|
|
|
import com.hz.employmentsite.vo.statistics.company.ModelCompanyCount;
|
|
|
import com.hz.employmentsite.vo.statistics.jobUser.*;
|
|
@@ -585,4 +586,35 @@ public class StatisticsServiceImpl implements StatisticsService {
|
|
|
});
|
|
|
return new ArrayList<>(resultMap.values());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询各驿站的服务数量
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<SiteServiceCount> findSiteServiceCount(Date startDate, Date endDate) {
|
|
|
+ List<SiteServiceCount> companyServiceCount = statisticsCQuery.findSiteCompanyServiceCount(startDate, endDate);
|
|
|
+ List<SiteServiceCount> postServiceCount = statisticsCQuery.findSitePostServiceCount(startDate, endDate);
|
|
|
+ List<SiteServiceCount> jobUserServiceCount = statisticsCQuery.findSiteJobUserServiceCount(startDate, endDate);
|
|
|
+ List<SiteServiceCount> postRecruitServiceCount = statisticsCQuery.findSitePostRecruitServiceCount(startDate, endDate);
|
|
|
+ Map<String, SiteServiceCount> resultMap = new HashMap<>();
|
|
|
+
|
|
|
+ // 合并四个个结果
|
|
|
+ companyServiceCount.forEach(item -> {
|
|
|
+ resultMap.computeIfAbsent(item.getSiteName(), k -> new SiteServiceCount(item.getSiteID(), item.getSiteName()))
|
|
|
+ .setCompanyCount(item.getCompanyCount());
|
|
|
+ });
|
|
|
+ postServiceCount.forEach(item -> {
|
|
|
+ resultMap.computeIfAbsent(item.getSiteName(), k -> new SiteServiceCount(item.getSiteID(), item.getSiteName()))
|
|
|
+ .setPostCount(item.getPostCount());
|
|
|
+ });
|
|
|
+ jobUserServiceCount.forEach(item -> {
|
|
|
+ resultMap.computeIfAbsent(item.getSiteName(), k -> new SiteServiceCount(item.getSiteID(), item.getSiteName()))
|
|
|
+ .setJobUserCount(item.getJobUserCount());
|
|
|
+ });
|
|
|
+ postRecruitServiceCount.forEach(item -> {
|
|
|
+ resultMap.computeIfAbsent(item.getSiteName(), k -> new SiteServiceCount(item.getSiteID(), item.getSiteName()))
|
|
|
+ .setPostRecruitCount(item.getPostRecruitCount());
|
|
|
+ });
|
|
|
+ return new ArrayList<>(resultMap.values());
|
|
|
+ }
|
|
|
}
|