Browse Source

报表增加统计数据

yanliming 1 year ago
parent
commit
03dd6432db

+ 1 - 1
common/src/main/java/com/jpsoft/employment/modules/base/dao/JobInformationInfoDAO.java

@@ -16,7 +16,7 @@ public interface JobInformationInfoDAO {
 	JobInformationInfo get(String id);
 	JobInformationInfo get(String id);
 	int delete(String id);
 	int delete(String id);
 	List<JobInformationInfo> list();
 	List<JobInformationInfo> list();
-	Integer countList(Map<String, Object> searchParams);
+	Integer countList(@Param("searchParams") Map<String, Object> searchParams);
 	List<JobInformationInfo> search(Map<String, Object> searchParams, List<Sort> sortList);
 	List<JobInformationInfo> search(Map<String, Object> searchParams, List<Sort> sortList);
 	List<JobInformationInfo> searchMobile(Map<String, Object> searchParams, List<Sort> sortList);
 	List<JobInformationInfo> searchMobile(Map<String, Object> searchParams, List<Sort> sortList);
 
 

+ 1 - 1
common/src/main/resources/mapper/base/JobInformationInfo.xml

@@ -128,7 +128,7 @@
 	<select id="list" resultMap="JobInformationInfoMap">
 	<select id="list" resultMap="JobInformationInfoMap">
 		select * from base_job_information_info
 		select * from base_job_information_info
 	</select>
 	</select>
-	<select id="countList" parameterType="hashmap" resultMap="JobInformationInfoMap">
+	<select id="countList" parameterType="hashmap" resultType="integer">
 		select count(*) from base_job_information_info
 		select count(*) from base_job_information_info
 		<where>
 		<where>
 			<if test="searchParams.startTime!= null">
 			<if test="searchParams.startTime!= null">

+ 0 - 1
common/src/main/resources/mapper/base/RecruitInformationInfo.xml

@@ -293,7 +293,6 @@
     <select id="sumJobRequirementNum" parameterType="hashmap" resultType="java.lang.Integer">
     <select id="sumJobRequirementNum" parameterType="hashmap" resultType="java.lang.Integer">
         SELECT sum(recruiting_numbers) FROM base_recruit_information_info
         SELECT sum(recruiting_numbers) FROM base_recruit_information_info
         <where>
         <where>
-            del_flag=FALSE and status_='1' and is_online=true
             <if test="searchParams.startTime!= null">
             <if test="searchParams.startTime!= null">
                 <![CDATA[
                 <![CDATA[
 					and create_time >= #{searchParams.startTime}
 					and create_time >= #{searchParams.startTime}

+ 12 - 5
web/src/main/java/com/jpsoft/employment/modules/base/controller/ReportController.java

@@ -120,9 +120,6 @@ public class ReportController {
             //累计岗位数量
             //累计岗位数量
             Integer totalRecruitStatusNum = recruitInformationInfoService.dailyReportList(searchParams1);
             Integer totalRecruitStatusNum = recruitInformationInfoService.dailyReportList(searchParams1);
 
 
-            //岗位需求人数
-            Integer jobRequirementNum = recruitInformationInfoService.sumJobRequirementNum(searchParams1);
-
             //累计岗位需求人数
             //累计岗位需求人数
             Integer totalJobRequirementNum = recruitInformationInfoService.sumJobRequirementNum(searchParams1);
             Integer totalJobRequirementNum = recruitInformationInfoService.sumJobRequirementNum(searchParams1);
 
 
@@ -136,6 +133,11 @@ public class ReportController {
             searchParams1.put("status", "1");
             searchParams1.put("status", "1");
             searchParams1.put("isOnline", true);
             searchParams1.put("isOnline", true);
             searchParams1.put("delFlag", false);
             searchParams1.put("delFlag", false);
+
+            //岗位需求人数
+            Integer jobRequirementNum = recruitInformationInfoService.sumJobRequirementNum(searchParams1);
+
+
             Integer totalRecruitNum = recruitInformationInfoService.dailyReportList(searchParams1);
             Integer totalRecruitNum = recruitInformationInfoService.dailyReportList(searchParams1);
 
 
             //今日报名人数
             //今日报名人数
@@ -171,6 +173,8 @@ public class ReportController {
 
 
             map.put("jobRequirementNum", jobRequirementNum);
             map.put("jobRequirementNum", jobRequirementNum);
 
 
+            map.put("totalJobRequirementNum", totalJobRequirementNum);
+
             mapList.add(map);
             mapList.add(map);
 
 
             if (exportFlag) {
             if (exportFlag) {
@@ -202,8 +206,8 @@ public class ReportController {
         //表头
         //表头
         Row rowTitle = sheet.createRow(0);
         Row rowTitle = sheet.createRow(0);
 
 
-        String[] titles = new String[]{"序号", "新增登录人数", "累计登录人数", "今日注册人数", "新增求职登记人数", "累计求职登记人数",
-                "新增线上认证企业数量", "累计认证企业数量","新增岗位发布数量","实时发布岗位数","累计发布岗位数","岗位需求人数","今日报名人数"};
+        String[] titles = new String[]{"序号", "新增登录人数", "累计登录人数", "今日注册人数","累计注册人数", "新增求职登记人数", "累计求职登记人数", "累计简历数",
+                "新增线上认证企业数量", "累计认证企业数量","新增岗位发布数量","实时发布岗位数","累计发布岗位数","岗位需求人数","累计岗位需求人数","今日报名人数"};
 
 
         for (int i = 0; i < titles.length; i++) {
         for (int i = 0; i < titles.length; i++) {
             Cell cell = rowTitle.createCell(i);
             Cell cell = rowTitle.createCell(i);
@@ -220,14 +224,17 @@ public class ReportController {
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("loginNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("loginNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalLoginNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalLoginNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("dailyPersonRegNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("dailyPersonRegNum"), ""));
+            row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalPersonRegNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("personNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("personNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalPersonNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalPersonNum"), ""));
+            row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalJobInformation"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("enterpriseNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("enterpriseNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalEnterpriseNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalEnterpriseNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("recruitNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("recruitNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalRecruitNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalRecruitNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalRecruitStatusNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalRecruitStatusNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("jobRequirementNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("jobRequirementNum"), ""));
+            row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("totalJobRequirementNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("jobInformationNum"), ""));
             row.createCell(colIndex++).setCellValue(com.jpsoft.employment.modules.common.utils.StringUtils.strValue(map.get("jobInformationNum"), ""));
         }
         }