Ver Fonte

web-数据大屏今日服务监测调整

liao-sea há 3 meses atrás
pai
commit
a8aaa6e511

+ 3 - 3
src/main/java/com/hz/employmentsite/services/impl/statistics/StatisticsServiceImpl.java

@@ -567,7 +567,7 @@ public class StatisticsServiceImpl implements StatisticsService {
     public List<HourNewAddCount> findOneDaySystemDataCount(Date day) {
         List<HourNewAddCount> jobUserCount = statisticsCQuery.findJobUserHourNewAddCount(day);
         List<HourNewAddCount> companyCount = statisticsCQuery.findCompanyHourNewAddCount(day);
-        List<HourNewAddCount> postCount = statisticsCQuery.findPostHourNewAddCount(day);
+        List<HourNewAddCount> postRecruitCount = statisticsCQuery.findPostHourNewAddCount(day);
         Map<Integer, HourNewAddCount> resultMap = new HashMap<>();
 
         // 合并三个结果
@@ -579,9 +579,9 @@ public class StatisticsServiceImpl implements StatisticsService {
             resultMap.computeIfAbsent(item.getHour(), k -> new HourNewAddCount(item.getHour()))
                     .setCompanyCount(item.getCompanyCount());
         });
-        postCount.forEach(item -> {
+        postRecruitCount.forEach(item -> {
             resultMap.computeIfAbsent(item.getHour(), k -> new HourNewAddCount(item.getHour()))
-                    .setPostCount(item.getPostCount());
+                    .setPostRecruitCount(item.getPostRecruitCount());
         });
         return new ArrayList<>(resultMap.values());
     }

+ 1 - 1
src/main/java/com/hz/employmentsite/vo/statistics/HourNewAddCount.java

@@ -14,7 +14,7 @@ public class HourNewAddCount {
 
     private int companyCount;
 
-    private int postCount;
+    private int postRecruitCount;
 
     public HourNewAddCount(int hour) {
         this.hour = hour;

+ 1 - 1
src/main/resources/mapping/cquery/StatisticsCQuery.xml

@@ -766,7 +766,7 @@
     <select id="findPostHourNewAddCount" resultType="com.hz.employmentsite.vo.statistics.HourNewAddCount">
         SELECT
             HOUR( CreateTime ) AS `Hour`,
-            COUNT( 1 ) AS postCount
+            SUM( post.RecruitCount ) AS postRecruitCount
         FROM
             pc_post
         WHERE

+ 3 - 3
vue/src/views/dataScreen/html/sysService.vue

@@ -331,7 +331,7 @@ function loadOneDaySystemDataCount() {
     // 初始化三种数据的数组
     const jobUserArr = new Array(xTitleArr.length).fill(0);
     const companyArr = new Array(xTitleArr.length).fill(0);
-    const postArr = new Array(xTitleArr.length).fill(0);
+    const postRecruitArr = new Array(xTitleArr.length).fill(0);
     // 填充查询数据
     result.forEach((item: any) => {
       if (item.hour >= 0) {
@@ -339,7 +339,7 @@ function loadOneDaySystemDataCount() {
         const index = xTitleArr.findIndex(hour => hour == item.hour);
         jobUserArr[index] = item.jobUserCount;
         companyArr[index] = item.companyCount;
-        postArr[index] = item.postCount;
+        postRecruitArr[index] = item.postRecruitCount;
       }
     });
     // 初始化折线图数据
@@ -356,7 +356,7 @@ function loadOneDaySystemDataCount() {
       {
         name: '岗位个数',
         type: 'line',
-        data: postArr,
+        data: postRecruitArr,
         symbol: 'circle',
         itemStyle: {
           color: "#6cd300"