Browse Source

Merge remote-tracking branch 'origin/dev_screen_data' into dev_screen_data

master
yinzuomei 5 years ago
parent
commit
2ad0a3479d
  1. 42
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcActSummaryFormDTO.java
  2. 22
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcActTrendFormDTO.java
  3. 52
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcCategorySummaryFormDTO.java
  4. 67
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcGroupDetailFormDTO.java
  5. 62
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcGroupSummaryFormDTO.java
  6. 42
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcGroupTopicTrendFormDTO.java
  7. 77
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcHomePageFormDTO.java
  8. 92
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcIssueSummaryFormDTO.java
  9. 42
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcIssueTrendFormDTO.java
  10. 47
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsCategoryAnalysisFormDTO.java
  11. 32
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsHotRankFormDTO.java
  12. 37
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsSummaryFormDTO.java
  13. 27
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsTrendFormDTO.java
  14. 52
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcProjectSatisanalysisFormDTO.java
  15. 77
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcProjectSummaryFormDTO.java
  16. 47
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcUserHeartRankFormDTO.java
  17. 93
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcUserSummaryFormDTO.java
  18. 52
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcVolunteerHeartRankFormDTO.java
  19. 77
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcVolunteerSummaryFormDTO.java
  20. 373
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/KcScreenCollController.java
  21. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcActSummaryDailyDao.java
  22. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcActTrendMonthlyDao.java
  23. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcGroupDetailGridDailyDao.java
  24. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcGroupSummaryGridDailyDao.java
  25. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcIssueSummaryGridDailyDao.java
  26. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcIssueTrendGridMonthlyDao.java
  27. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsCategoryAnalysisDao.java
  28. 59
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsRankDao.java
  29. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsSummaryDailyDao.java
  30. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsTrendMonthlyDao.java
  31. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcPlatformSummaryDailyDao.java
  32. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcProjectCategoryGridDailyDao.java
  33. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcProjectSatisGridMonthlyDao.java
  34. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcProjectSummaryGridDailyDao.java
  35. 62
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcTopicTrendGridMonthlyDao.java
  36. 33
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcUserHeatRankGridDailyDao.java
  37. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcUserSummaryDailyDao.java
  38. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcUserTrendGridMonthlyDao.java
  39. 59
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcVolunteerHeatRankGridDailyDao.java
  40. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcVolunteerSummaryDailyDao.java
  41. 76
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcActSummaryDailyEntity.java
  42. 56
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcActTrendMonthlyEntity.java
  43. 101
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcGroupDetailGridDailyEntity.java
  44. 96
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcGroupSummaryGridDailyEntity.java
  45. 126
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcIssueSummaryGridDailyEntity.java
  46. 76
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcIssueTrendGridMonthlyEntity.java
  47. 81
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsCategoryAnalysisEntity.java
  48. 66
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsRankEntity.java
  49. 71
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsSummaryDailyEntity.java
  50. 61
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsTrendMonthlyEntity.java
  51. 111
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcPlatformSummaryDailyEntity.java
  52. 86
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcProjectCategoryGridDailyEntity.java
  53. 86
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcProjectSatisGridMonthlyEntity.java
  54. 111
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcProjectSummaryGridDailyEntity.java
  55. 76
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcTopicTrendGridMonthlyEntity.java
  56. 96
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcUserHeatRankGridDailyEntity.java
  57. 126
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcUserSummaryDailyEntity.java
  58. 81
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcUserTrendGridMonthlyEntity.java
  59. 86
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcVolunteerHeatRankGridDailyEntity.java
  60. 111
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcVolunteerSummaryDailyEntity.java
  61. 260
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/KcScreenCollService.java
  62. 367
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/KcScreenCollServiceImpl.java
  63. 68
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcActSummaryDailyDao.xml
  64. 54
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcActTrendMonthlyDao.xml
  65. 83
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcGroupDetailGridDailyDao.xml
  66. 80
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcGroupSummaryGridDailyDao.xml
  67. 97
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcIssueSummaryGridDailyDao.xml
  68. 70
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcIssueTrendGridMonthlyDao.xml
  69. 72
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsCategoryAnalysisDao.xml
  70. 62
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsRankDao.xml
  71. 65
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsSummaryDailyDao.xml
  72. 57
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsTrendMonthlyDao.xml
  73. 87
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcPlatformSummaryDailyDao.xml
  74. 74
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcProjectCategoryGridDailyDao.xml
  75. 75
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcProjectSatisGridMonthlyDao.xml
  76. 91
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcProjectSummaryGridDailyDao.xml
  77. 69
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcTopicTrendGridMonthlyDao.xml
  78. 28
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcUserHeatRankGridDailyDao.xml
  79. 99
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcUserSummaryDailyDao.xml
  80. 72
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcUserTrendGridMonthlyDao.xml
  81. 75
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcVolunteerHeatRankGridDailyDao.xml
  82. 91
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcVolunteerSummaryDailyDao.xml

42
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcActSummaryFormDTO.java

@ -0,0 +1,42 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 7公益互助-活动各类总数
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcActSummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 活动总数
*/
private Integer actCount;
/**
* 志愿者总数
*/
private Integer volunteerCount;
/**
* 参与人次
*/
private Integer partiUserCount;
/**
* 发放积分
*/
private Integer rewardPointCount;
/**
* 公益时长单位分钟
*/
private Integer heartTime;
}

22
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcActTrendFormDTO.java

@ -0,0 +1,22 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 8公益互助-活动次数趋势
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcActTrendFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 活动数量本月举行的活动
*/
private Integer actCount;
}

52
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcCategorySummaryFormDTO.java

@ -0,0 +1,52 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 11项目分析-按分类统计
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcCategorySummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 类别id
*/
private String categoryId;
/**
* 分类名称
*/
private String categoryName;
/**
* 项目数量
*/
private Integer projectCount;
}

67
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcGroupDetailFormDTO.java

@ -0,0 +1,67 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 18邻里党群-小组详情
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcGroupDetailFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 小组id
*/
private String groupId;
/**
* 群名称
*/
private String groupName;
/**
* 群主名称
*/
private String groupLeader;
/**
* 群成员数
*/
private Integer memberCount;
/**
* 话题总数
*/
private Integer topicCount;
/**
* 转为议题的话题数
*/
private Integer shifitIssueCount;
}

62
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcGroupSummaryFormDTO.java

@ -0,0 +1,62 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 17邻里党群-各类总数汇总
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcGroupSummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 社群总数
*/
private Integer groupCount;
/**
* 群成员总数
*/
private Integer memberCount;
/**
* 话题数量
*/
private Integer topicCount;
/**
* 话题参与量
*/
private Integer partiCount;
/**
* 话题转议题总数
*/
private Integer shiftIssueCount;
}

42
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcGroupTopicTrendFormDTO.java

@ -0,0 +1,42 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 19邻里党群-话题参与趋势
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcGroupTopicTrendFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 话题数量(所在月新增话题数)
*/
private Integer topicCount;
}

77
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcHomePageFormDTO.java

@ -0,0 +1,77 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 1首页-平台各类总数上报 入参
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcHomePageFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格总数
*/
private Integer gridCount;
/**
* 已开通网格总数
*/
private Integer openedGridCount;
/**
* 议题总数
*/
private Integer issueCount;
/**
* 项目总数
*/
private Integer projectCount;
/**
* 用户总数
*/
private Integer userCount;
/**
* 党员用户
*/
private Integer partyUserCount;
/**
* 社群总数
*/
private Integer groupCount;
/**
* 话题总数
*/
private Integer topicCount;
/**
* 新闻数量
*/
private Integer newsCount;
/**
* 阅读数量
*/
private Integer readCount;
/**
* 公益活动数量
*/
private Integer actCount;
/**
* 志愿者总数
*/
private Integer vounteerCount;
}

92
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcIssueSummaryFormDTO.java

@ -0,0 +1,92 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 2议题分析-各类总数
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcIssueSummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 上报总数
*/
private Integer reportCount;
/**
* 议题总数
*/
private Integer issueCount;
/**
* 待审核数
*/
private Integer pendingCount;
/**
* 已驳回数
*/
private Integer rejectedCount;
/**
* 处理中数
*/
private Integer processingCount;
/**
* 已关闭数
*/
private Integer closedCount;
/**
* 议题浏览数
*/
private Integer issueViewCount;
/**
* 表态数
*/
private Integer voteCount;
/**
* 审核通过数 为了算议题效率
*/
private Integer passedCount;
/**
* 转化成项目数 为了算议题效率
*/
private Integer shiftToProjectCount;
/**
* 平均审核时间单位分钟
*/
private Integer avgAuditTime;
}

42
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcIssueTrendFormDTO.java

@ -0,0 +1,42 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 3议题分析-参与趋势
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcIssueTrendFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 议题上报数本月内上报的议题数量
*/
private Integer reportCount;
}

47
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsCategoryAnalysisFormDTO.java

@ -0,0 +1,47 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 16党建声音-新闻按类别统计
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcNewsCategoryAnalysisFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 类别id
*/
private String categoryId;
/**
* 分类名称
*/
private String categoryName;
/**
* 新闻的数量
*/
private Integer newsCount;
/**
* 阅读的数量
*/
private Integer readCount;
/**
* 点赞的数量
*/
private Integer likeCount;
/**
* 点踩的数量
*/
private Integer disLikeCount;
}

32
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsHotRankFormDTO.java

@ -0,0 +1,32 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 15党建声音-热度新闻排行
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcNewsHotRankFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 新闻id
*/
private String newsId;
/**
* 新闻标题
*/
private String newsTitle;
/**
* 新闻热点值
*/
private Integer hotCount;
}

37
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsSummaryFormDTO.java

@ -0,0 +1,37 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 13党建声音-新闻各类总数汇总
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcNewsSummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 文章总数
*/
private Integer newsCount;
/**
* 阅读量
*/
private Integer readCount;
/**
* 点赞量
*/
private Integer likeCount;
/**
* 评论量
*/
private Integer commentCount;
}

27
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcNewsTrendFormDTO.java

@ -0,0 +1,27 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 14党建声音-新闻阅读参与趋势
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcNewsTrendFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 阅读数量
*/
private Integer readCount;
/**
* 参与数量
*/
private Integer partiCount;
}

52
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcProjectSatisanalysisFormDTO.java

@ -0,0 +1,52 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 12项目分析-满意度分析
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcProjectSatisanalysisFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 非常满意项目总数
*/
private Integer greatSatis;
/**
* 满意项目总数
*/
private Integer goodSatis;
/**
* 不满意的项目总数
*/
private Integer disSatis;
}

77
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcProjectSummaryFormDTO.java

@ -0,0 +1,77 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 10项目分析-各类总数
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcProjectSummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 项目总数
*/
private Integer projectCount;
/**
* 处理中数
*/
private Integer processingCount;
/**
* 已关闭数
*/
private Integer closedCount;
/**
* 流转次数
*/
private Integer moveCount;
/**
* 已结案数量
*/
private Integer closedCaseCount;
/**
* 项目浏览数
*/
private Integer projectViewCount;
/**
* 表态数
*/
private Integer voteCount;
/**
* 平均结案时间 单位分钟
*/
private Integer avgClosedCaseTime;
}

47
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcUserHeartRankFormDTO.java

@ -0,0 +1,47 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 6用户分析-用户趋势
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcUserHeartRankFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 本月内新增用户数量
*/
private Integer regUserCount;
/**
* 本月内新增党员数量
*/
private Integer partyUserCount;
}

93
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcUserSummaryFormDTO.java

@ -0,0 +1,93 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 4用户分析-各类总数
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcUserSummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 浏览用户首页的用户总数原型上首页是叫注册用户
*/
private Integer visitorCount;
/**
* 注册用户=居民数量
*/
private Integer regUserCount;
/**
* 党员用户
*/
private Integer partyUserCount;
/**
* 小于20岁的党员总人数
*/
private Integer ageLevel1;
/**
* 20-30岁的党员总人数
*/
private Integer ageLevel2;
/**
* 31-40岁的党员总人数
*/
private Integer ageLevel3;
/**
* 41-50岁的党员总人数
*/
private Integer ageLevel4;
/**
* 51-60岁的党员总人数
*/
private Integer ageLevel5;
/**
* 60+岁的党员总人数
*/
private Integer ageLevel6;
/**
* 党员中男性总人数
*/
private Integer malePartyUserCount;
/**
* 党员中女性总人数
*/
private Integer femalePartyUserCount;
}

52
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcVolunteerHeartRankFormDTO.java

@ -0,0 +1,52 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 5公益互助-志愿者公益时长排名
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcVolunteerHeartRankFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 用户id
*/
private String userId;
/**
* 用户姓名
*/
private String userName;
/**
* 爱心时长 单位分钟
*/
private Integer heartTime;
}

77
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/KcVolunteerSummaryFormDTO.java

@ -0,0 +1,77 @@
package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
/**
* 孔村
* 9公益互助-志愿者画像
* @Auther: zhangyong
* @Date: 2020-08-18 09:59
*/
@Data
public class KcVolunteerSummaryFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 小于20岁的志愿者总人数
*/
private Integer ageLevel1;
/**
* 20-30岁的志愿者总人数
*/
private Integer ageLevel2;
/**
* 31-40岁的志愿者总人数
*/
private Integer ageLevel3;
/**
* 41-50岁的志愿者总人数
*/
private Integer ageLevel4;
/**
* 51-60岁的志愿者总人数
*/
private Integer ageLevel5;
/**
* 60+岁的志愿者总人数
*/
private Integer ageLevel6;
/**
* 志愿者中男性总人数
*/
private Integer maleCount;
/**
* 志愿者中女性总人数
*/
private Integer femaleCount;
}

373
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/KcScreenCollController.java

@ -1,5 +1,14 @@
package com.epmet.controller;
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
import com.epmet.commons.extappauth.bean.ExternalAppRequestParam;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.screencoll.ScreenCollFormDTO;
import com.epmet.dto.screencoll.form.*;
import com.epmet.service.evaluationindex.screen.KcScreenCollService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -12,4 +21,368 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("kcscreencoll")
public class KcScreenCollController {
@Autowired
private KcScreenCollService kcScreenCollService;
/**
* 1首页-平台各类总数上报
* 当isFirst为true时后台先按照customerId+dateId清空数据再插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_platform_summary_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("homepage/platformsummary")
public Result platFormSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcHomePageFormDTO> formDTO) {
kcScreenCollService.insertPlatFormSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 2议题分析-各类总数
* 当isFirst为true时后台先按照customerId+dateId清空数据再插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_issue_summary_grid_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("issue/summary")
public Result issueSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcIssueSummaryFormDTO> formDTO) {
kcScreenCollService.insertIssueSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 3议题分析-参与趋势
* 当isFirst为true时customerId+monthId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table: screen_kc_issue_trend_grid_monthly
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("issue/trend")
public Result issueTrend(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcIssueTrendFormDTO> formDTO) {
kcScreenCollService.insertIssueTrend(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 4用户分析-各类总数
* 当isFirst为true时根据customerId+dateId删除后插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_user_summary_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("user/summary")
public Result userSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcUserSummaryFormDTO> formDTO) {
kcScreenCollService.insertUserSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 5公益互助-志愿者公益时长排名
* 当isFirst为true时, 根据customerId清空当前客户下所有用户的信息再插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_volunteer_heat_rank_grid_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("volunteer/heartrank")
public Result volunteerHeartRank(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcVolunteerHeartRankFormDTO> formDTO) {
kcScreenCollService.insertVolunteerHeartRank(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 6用户分析-用户趋势
* 当isFirst为true时,根据monthId+customerId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_user_trend_grid_monthly
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("user/userheartrank")
public Result userHeartRank(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcUserHeartRankFormDTO> formDTO) {
kcScreenCollService.insertUserHeartRank(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 7公益互助-活动各类总数
* 当isFirst为true时,根据customerId+dateId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_act_summary_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("act/summary")
public Result actSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcActSummaryFormDTO> formDTO) {
kcScreenCollService.insertActSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 8公益互助-活动次数趋势
* 当isFirst为true时,根据customerId+monthId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_act_trend_monthly
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("act/trend")
public Result actTrend(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcActTrendFormDTO> formDTO) {
kcScreenCollService.insertActTrend(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 9公益互助-志愿者画像
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_volunteer_summary_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("act/volunteersummary")
public Result volunteerSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcVolunteerSummaryFormDTO> formDTO) {
kcScreenCollService.insertVolunteerSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 10项目分析-各类总数
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_project_summary_grid_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("project/summary")
public Result projectSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcProjectSummaryFormDTO> formDTO) {
kcScreenCollService.insertProjectSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 11项目分析-按分类统计
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_project_category_grid_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("project/categorysummary")
public Result categorySummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcCategorySummaryFormDTO> formDTO) {
kcScreenCollService.insertCategorySummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 12项目分析-满意度分析
* 当isFirst为true时,根据 customerId+monthId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_project_satis_grid_monthly
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("project/satisanalysis")
public Result projectSatisanalysis(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcProjectSatisanalysisFormDTO> formDTO) {
kcScreenCollService.insertProjectSatisanalysis(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 13党建声音-新闻各类总数汇总
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_news_summary_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("news/summary")
public Result newsSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcNewsSummaryFormDTO> formDTO) {
kcScreenCollService.insertNewsSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 14党建声音-新闻阅读参与趋势
* 当isFirst为true时,根据 customerId+monthId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_news_trend_monthly
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("news/trend")
public Result newsTrend(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcNewsTrendFormDTO> formDTO) {
kcScreenCollService.insertNewsTrend(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 15党建声音-热度新闻排行
* 当isFirst为true时,根据 customerId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_news_rank
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("news/hotrank")
public Result newsHotRank(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcNewsHotRankFormDTO> formDTO) {
kcScreenCollService.insertNewsHotRank(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 16党建声音-新闻按类别统计
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_news_category_analysis
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("news/categoryanalysis")
public Result newsCategoryAnalysis(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcNewsCategoryAnalysisFormDTO> formDTO) {
kcScreenCollService.insertNewsCategoryAnalysis(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 17邻里党群-各类总数汇总
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_group_summary_grid_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("group/summary")
public Result groupSummary(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcGroupSummaryFormDTO> formDTO) {
kcScreenCollService.insertGroupSummary(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 18邻里党群-小组详情
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_group_detail_grid_daily
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("group/detail")
public Result groupDetail(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcGroupDetailFormDTO> formDTO) {
kcScreenCollService.insertGroupDetail(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
/**
* 19邻里党群-话题参与趋势
* 当isFirst为true时,根据 customerId+monthId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
* table:screen_kc_topic_trend_grid_monthly
*
* @param externalAppRequestParam
* @param formDTO
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
@ExternalAppRequestAuth
@PostMapping("group/topictrend")
public Result groupTopicTrend(ExternalAppRequestParam externalAppRequestParam, @RequestBody ScreenCollFormDTO<KcGroupTopicTrendFormDTO> formDTO) {
kcScreenCollService.insertGroupTopicTrend(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcActSummaryDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcActSummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcActSummaryDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-活动各类总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcActSummaryDailyDao extends BaseDao<ScreenKcActSummaryDailyEntity> {
/**
* 根据customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteActSummary(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertActSummary(@Param("list") List<KcActSummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcActTrendMonthlyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcActTrendFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcActTrendMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-活动(次数+时长)趋势(先根据customerId+monthId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcActTrendMonthlyDao extends BaseDao<ScreenKcActTrendMonthlyEntity> {
/**
* 按照customerId+monthId清空数据
*
* @param customerId
* @param monthId :202008
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteActTrend(@Param("customerId") String customerId,
@Param("monthId") String monthId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param monthId :202008
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertActTrend (@Param("list") List<KcActTrendFormDTO> list, @Param("customerId")String customerId,
@Param("monthId")String monthId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcGroupDetailGridDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcGroupDetailFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcGroupDetailGridDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-小组详情(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcGroupDetailGridDailyDao extends BaseDao<ScreenKcGroupDetailGridDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteGroupDetailGrid(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertGroupDetailGrid(@Param("list") List<KcGroupDetailFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcGroupSummaryGridDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcGroupSummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcGroupSummaryGridDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-小组分析各类总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcGroupSummaryGridDailyDao extends BaseDao<ScreenKcGroupSummaryGridDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteGroupSummaryGrid(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertGroupSummaryGrid(@Param("list") List<KcGroupSummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcIssueSummaryGridDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcIssueSummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcIssueSummaryGridDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-议题分析(各类总数)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcIssueSummaryGridDailyDao extends BaseDao<ScreenKcIssueSummaryGridDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.util.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteIssueSummaryGrid(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertIssueSummaryGrid(@Param("list") List<KcIssueSummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcIssueTrendGridMonthlyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcIssueTrendFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcIssueTrendGridMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-议题参与趋势(每天上报当前月)customerId+monthId先删后增
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcIssueTrendGridMonthlyDao extends BaseDao<ScreenKcIssueTrendGridMonthlyEntity> {
/**
* 按照customerId+monthId清空数据
*
* @param customerId
* @param monthId 202008
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteIssueTrendGrid(@Param("customerId") String customerId,
@Param("monthId") String monthId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param monthId 202008
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertIssueTrendGrid(@Param("list") List<KcIssueTrendFormDTO> list, @Param("customerId")String customerId,
@Param("monthId")String monthId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsCategoryAnalysisDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcNewsCategoryAnalysisFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcNewsCategoryAnalysisEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-新闻-按类别统计(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcNewsCategoryAnalysisDao extends BaseDao<ScreenKcNewsCategoryAnalysisEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteNewsCategoryAnalysis(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertNewsCategoryAnalysis(@Param("list") List<KcNewsCategoryAnalysisFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

59
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsRankDao.java

@ -0,0 +1,59 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcNewsHotRankFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcNewsRankEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-热点新闻排行-(先根据customerId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcNewsRankDao extends BaseDao<ScreenKcNewsRankEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteNewsRank(@Param("customerId") String customerId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertNewsRank(@Param("list") List<KcNewsHotRankFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsSummaryDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcNewsSummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcNewsSummaryDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-新闻-各类总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcNewsSummaryDailyDao extends BaseDao<ScreenKcNewsSummaryDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteNewsSummary(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertNewsSummary(@Param("list") List<KcNewsSummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcNewsTrendMonthlyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcNewsTrendFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcNewsTrendMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-新闻参与趋势-(先根据customerId+monthId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcNewsTrendMonthlyDao extends BaseDao<ScreenKcNewsTrendMonthlyEntity> {
/**
* 按照customerId+monthId清空数据
*
* @param customerId
* @param monthId :202008
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteNewsTrend(@Param("customerId") String customerId,
@Param("monthId") String monthId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param monthId :202008
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertNewsTrend(@Param("list") List<KcNewsTrendFormDTO> list, @Param("customerId")String customerId,
@Param("monthId")String monthId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcPlatformSummaryDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcHomePageFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcPlatformSummaryDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-平台各汇总值(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcPlatformSummaryDailyDao extends BaseDao<ScreenKcPlatformSummaryDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.util.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deletePlatFormSummary(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertPlatFormSummary(@Param("list") List<KcHomePageFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcProjectCategoryGridDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcCategorySummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcProjectCategoryGridDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-项目按分类统计上报总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcProjectCategoryGridDailyDao extends BaseDao<ScreenKcProjectCategoryGridDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteCategoryGrid(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertCategoryGrid(@Param("list") List<KcCategorySummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcProjectSatisGridMonthlyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcProjectSatisanalysisFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcProjectSatisGridMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-项目满意度分析(customerId+monthId先删除记录再插入)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcProjectSatisGridMonthlyDao extends BaseDao<ScreenKcProjectSatisGridMonthlyEntity> {
/**
* 按照customerId+monthId清空数据
*
* @param customerId
* @param monthId : 202008
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteProjectSatisGrid(@Param("customerId") String customerId,
@Param("monthId") String monthId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param monthId : 202008
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertProjectSatisGrid(@Param("list") List<KcProjectSatisanalysisFormDTO> list, @Param("customerId")String customerId,
@Param("monthId")String monthId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcProjectSummaryGridDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcProjectSummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcProjectSummaryGridDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-项目分析(各类总数先根据customerId+dateId删除后插入)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcProjectSummaryGridDailyDao extends BaseDao<ScreenKcProjectSummaryGridDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteProjectSummary(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertProjectSummary(@Param("list") List<KcProjectSummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

62
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcTopicTrendGridMonthlyDao.java

@ -0,0 +1,62 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcGroupTopicTrendFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcTopicTrendGridMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-话题参与趋势(先根据customerId+monthId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcTopicTrendGridMonthlyDao extends BaseDao<ScreenKcTopicTrendGridMonthlyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param monthId 202008
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteTopicTrendGrid(@Param("customerId") String customerId,
@Param("monthId") String monthId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param monthId 202008
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertTopicTrendGrid(@Param("list") List<KcGroupTopicTrendFormDTO> list, @Param("customerId")String customerId,
@Param("monthId")String monthId);
}

33
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcUserHeatRankGridDailyDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.evaluationindex.screen.ScreenKcUserHeatRankGridDailyEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* KC-用户公益时长排名(先根据customerId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcUserHeatRankGridDailyDao extends BaseDao<ScreenKcUserHeatRankGridDailyEntity> {
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcUserSummaryDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcUserSummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcUserSummaryDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-用户分析(先根据customerId+dateId删除后插入)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcUserSummaryDailyDao extends BaseDao<ScreenKcUserSummaryDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteUserSummary(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertUserSummary(@Param("list") List<KcUserSummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcUserTrendGridMonthlyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcUserHeartRankFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcUserTrendGridMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-用户趋势分析(根据monthId+customerId先删后增)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcUserTrendGridMonthlyDao extends BaseDao<ScreenKcUserTrendGridMonthlyEntity> {
/**
* 根据monthId+customerId先删后增
*
* @param customerId
* @param monthId :202008
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteUserTrendGrid(@Param("customerId") String customerId,
@Param("monthId") String monthId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param monthId :202008
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertUserTrendGrid(@Param("list") List<KcUserHeartRankFormDTO> list, @Param("customerId")String customerId,
@Param("monthId")String monthId);
}

59
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcVolunteerHeatRankGridDailyDao.java

@ -0,0 +1,59 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcVolunteerHeartRankFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcVolunteerHeatRankGridDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-志愿者公益时长排名(先根据customerId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcVolunteerHeatRankGridDailyDao extends BaseDao<ScreenKcVolunteerHeatRankGridDailyEntity> {
/**
* 按照customerId清空数据
*
* @param customerId
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteVolunteerHeatRankGrid(@Param("customerId") String customerId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertVolunteerHeatRankGrid(@Param("list") List<KcVolunteerHeartRankFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/screen/ScreenKcVolunteerSummaryDailyDao.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao.evaluationindex.screen;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.screencoll.form.KcVolunteerSummaryFormDTO;
import com.epmet.entity.evaluationindex.screen.ScreenKcVolunteerSummaryDailyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* KC-志愿者汇总(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Mapper
public interface ScreenKcVolunteerSummaryDailyDao extends BaseDao<ScreenKcVolunteerSummaryDailyEntity> {
/**
* 按照customerId+dateId清空数据
*
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return java.lang.Integer
* @Author zhangyong
* @Date 16:14 2020-09-09
**/
Integer deleteVolunteerSummary(@Param("customerId") String customerId,
@Param("dateId") String dateId);
/**
* 批量插入
*
* @param list
* @param customerId
* @param dateId 日期Id, 数据更新至yyyyMMdd
* @return void
* @Author zhangyong
* @Date 16:17 2020-09-09
**/
void batchInsertVolunteerSummary(@Param("list") List<KcVolunteerSummaryFormDTO> list, @Param("customerId")String customerId,
@Param("dateId")String dateId);
}

76
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcActSummaryDailyEntity.java

@ -0,0 +1,76 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-活动各类总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_act_summary_daily")
public class ScreenKcActSummaryDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 活动总数
*/
private Integer actCount;
/**
* 志愿者总数
*/
private Integer volunteerCount;
/**
* 参与人次
*/
private Integer partiUserCount;
/**
* 发放积分
*/
private Integer rewardPointCount;
/**
* 公益时长单位分钟
*/
private Integer heartTime;
}

56
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcActTrendMonthlyEntity.java

@ -0,0 +1,56 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-活动(次数+时长)趋势(先根据customerId+monthId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_act_trend_monthly")
public class ScreenKcActTrendMonthlyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 月id :yyyyMM
*/
private String monthId;
/**
* 活动数量本月举行的活动
*/
private Integer actCount;
}

101
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcGroupDetailGridDailyEntity.java

@ -0,0 +1,101 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-小组详情(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_group_detail_grid_daily")
public class ScreenKcGroupDetailGridDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 小组id
*/
private String groupId;
/**
* 群名称
*/
private String groupName;
/**
* 群主名称
*/
private String groupLeader;
/**
* 群成员数
*/
private Integer memberCount;
/**
* 话题总数
*/
private Integer topicCount;
/**
* 转为议题的话题数
*/
private Integer shifitIssueCount;
}

96
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcGroupSummaryGridDailyEntity.java

@ -0,0 +1,96 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-小组分析各类总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_group_summary_grid_daily")
public class ScreenKcGroupSummaryGridDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 社群总数
*/
private Integer groupCount;
/**
* 群成员总数
*/
private Integer memberCount;
/**
* 话题数量
*/
private Integer topicCount;
/**
* 话题参与量
*/
private Integer partiCount;
/**
* 话题转议题总数
*/
private Integer shiftIssueCount;
}

126
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcIssueSummaryGridDailyEntity.java

@ -0,0 +1,126 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-议题分析(各类总数)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_issue_summary_grid_daily")
public class ScreenKcIssueSummaryGridDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 上报总数
*/
private Integer reportCount;
/**
* 议题总数
*/
private Integer issueCount;
/**
* 待审核数
*/
private Integer pendingCount;
/**
* 已驳回数
*/
private Integer rejectedCount;
/**
* 处理中数
*/
private Integer processingCount;
/**
* 已关闭数
*/
private Integer closedCount;
/**
* 议题浏览数
*/
private Integer issueViewCount;
/**
* 表态数
*/
private Integer voteCount;
/**
* 审核通过数 为了算议题效率
*/
private Integer passedCount;
/**
* 转化成项目数 为了算议题效率
*/
private Integer shiftToProjectCount;
/**
* 平均审核时间单位分钟
*/
private Integer avgAuditTime;
}

76
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcIssueTrendGridMonthlyEntity.java

@ -0,0 +1,76 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-议题参与趋势(每天上报当前月)customerId+monthId先删后增
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_issue_trend_grid_monthly")
public class ScreenKcIssueTrendGridMonthlyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 月id :yyyyMM
*/
private String monthId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 议题上报数本月内上报的议题数量
*/
private Integer reportCount;
}

81
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsCategoryAnalysisEntity.java

@ -0,0 +1,81 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-新闻-按类别统计(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_news_category_analysis")
public class ScreenKcNewsCategoryAnalysisEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 类别id
*/
private String categoryId;
/**
* 分类名称
*/
private String categoryName;
/**
* 新闻的数量
*/
private Integer newsCount;
/**
* 阅读的数量
*/
private Integer readCount;
/**
* 点赞的数量
*/
private Integer likeCount;
/**
* 点踩的数量
*/
private Integer disLikeCount;
}

66
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsRankEntity.java

@ -0,0 +1,66 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-热点新闻排行-(先根据customerId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_news_rank")
public class ScreenKcNewsRankEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 新闻id
*/
private String newsId;
/**
* 新闻标题
*/
private String newsTitle;
/**
* 新闻热点值
*/
private Integer hotCount;
}

71
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsSummaryDailyEntity.java

@ -0,0 +1,71 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-新闻-各类总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_news_summary_daily")
public class ScreenKcNewsSummaryDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 文章总数
*/
private Integer newsCount;
/**
* 阅读量
*/
private Integer readCount;
/**
* 点赞量
*/
private Integer likeCount;
/**
* 评论量
*/
private Integer commentCount;
}

61
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcNewsTrendMonthlyEntity.java

@ -0,0 +1,61 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-新闻参与趋势-(先根据customerId+monthId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_news_trend_monthly")
public class ScreenKcNewsTrendMonthlyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 月id :yyyyMM
*/
private String monthId;
/**
* 阅读数量
*/
private Integer readCount;
/**
* 参与数量
*/
private Integer partiCount;
}

111
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcPlatformSummaryDailyEntity.java

@ -0,0 +1,111 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-平台各汇总值(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_platform_summary_daily")
public class ScreenKcPlatformSummaryDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格总数
*/
private Integer gridCount;
/**
* 已开通网格数
*/
private Integer openedGridCount;
/**
* 议题总数
*/
private Integer issueCount;
/**
* 项目总数
*/
private Integer projectCount;
/**
* 用户总数
*/
private Integer userCount;
/**
* 党员用户
*/
private Integer partyUserCount;
/**
* 社群总数
*/
private Integer groupCount;
/**
* 话题总数
*/
private Integer topicCount;
/**
* 新闻数量
*/
private Integer newsCount;
/**
* 阅读数量
*/
private Integer readCount;
/**
* 公益活动总数
*/
private Integer actCount;
/**
* 志愿者总数
*/
private Integer volunteerCount;
}

86
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcProjectCategoryGridDailyEntity.java

@ -0,0 +1,86 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-项目按分类统计上报总数(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_project_category_grid_daily")
public class ScreenKcProjectCategoryGridDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 类别id
*/
private String categoryId;
/**
* 分类名称
*/
private String categoryName;
/**
* 项目数量
*/
private Integer projectCount;
}

86
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcProjectSatisGridMonthlyEntity.java

@ -0,0 +1,86 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-项目满意度分析(customerId+monthId先删除记录再插入)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_project_satis_grid_monthly")
public class ScreenKcProjectSatisGridMonthlyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 月id :yyyyMM
*/
private String monthId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 非常满意项目总数
*/
private Integer greatSatis;
/**
* 满意项目总数
*/
private Integer goodSatis;
/**
* 不满意的项目总数
*/
private Integer disSatis;
}

111
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcProjectSummaryGridDailyEntity.java

@ -0,0 +1,111 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-项目分析(各类总数先根据customerId+dateId删除后插入)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_project_summary_grid_daily")
public class ScreenKcProjectSummaryGridDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 项目总数
*/
private Integer projectCount;
/**
* 处理中数
*/
private Integer processingCount;
/**
* 已关闭数
*/
private Integer closedCount;
/**
* 流转次数
*/
private Integer moveCount;
/**
* 已结案数量
*/
private Integer closedCaseCount;
/**
* 项目浏览数
*/
private Integer projectViewCount;
/**
* 表态数
*/
private Integer voteCount;
/**
* 平均结案时间 单位分钟
*/
private Integer avgClosedCaseTime;
}

76
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcTopicTrendGridMonthlyEntity.java

@ -0,0 +1,76 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-话题参与趋势(先根据customerId+monthId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_topic_trend_grid_monthly")
public class ScreenKcTopicTrendGridMonthlyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 月id :yyyyMM
*/
private String monthId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 话题数量(所在月新增话题数)
*/
private Integer topicCount;
}

96
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcUserHeatRankGridDailyEntity.java

@ -0,0 +1,96 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-用户公益时长排名(先根据customerId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_user_heat_rank_grid_daily")
public class ScreenKcUserHeatRankGridDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 用户id
*/
private String userId;
/**
* 用户姓名
*/
private String userName;
/**
* 1志愿者 0不是志愿者
*/
private Integer volunteerFlag;
/**
* 爱心时长 单位分钟
*/
private Integer heartTime;
/**
* 积分
*/
private Integer points;
}

126
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcUserSummaryDailyEntity.java

@ -0,0 +1,126 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-用户分析(先根据customerId+dateId删除后插入)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_user_summary_daily")
public class ScreenKcUserSummaryDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 浏览用户首页的用户总数原型上首页是叫注册用户
*/
private Integer visitorCount;
/**
* 注册用户=居民数量
*/
private Integer regUserCount;
/**
* 党员用户
*/
private Integer partyUserCount;
/**
* 小于20岁的党员总人数
*/
private Integer ageLevel1;
/**
* 20-30岁的党员总人数
*/
private Integer ageLevel2;
/**
* 31-40岁的党员总人数
*/
private Integer ageLevel3;
/**
* 41-50岁的党员总人数
*/
private Integer ageLevel4;
/**
* 51-60岁的党员总人数
*/
private Integer ageLevel5;
/**
* 60+岁的党员总人数
*/
private Integer ageLevel6;
/**
* 党员中男性总人数
*/
private Integer malePartyUserCount;
/**
* 党员中女性总人数
*/
private Integer femalePartyUserCount;
}

81
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcUserTrendGridMonthlyEntity.java

@ -0,0 +1,81 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-用户趋势分析(根据monthId+customerId先删后增)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_user_trend_grid_monthly")
public class ScreenKcUserTrendGridMonthlyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 月id :yyyyMM
*/
private String monthId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属的组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 本月内新增用户数量
*/
private Integer regUserCount;
/**
* 本月内新增党员数量
*/
private Integer partyUserCount;
}

86
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcVolunteerHeatRankGridDailyEntity.java

@ -0,0 +1,86 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-志愿者公益时长排名(先根据customerId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_volunteer_heat_rank_grid_daily")
public class ScreenKcVolunteerHeatRankGridDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 用户id
*/
private String userId;
/**
* 用户姓名
*/
private String userName;
/**
* 爱心时长 单位分钟
*/
private Integer heartTime;
}

111
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/evaluationindex/screen/ScreenKcVolunteerSummaryDailyEntity.java

@ -0,0 +1,111 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.entity.evaluationindex.screen;
import com.baomidou.mybatisplus.annotation.TableName;
import com.epmet.commons.mybatis.entity.BaseEpmetEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* KC-志愿者汇总(先根据customerId+dateId删除)
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-09
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("screen_kc_volunteer_summary_daily")
public class ScreenKcVolunteerSummaryDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户Id
*/
private String customerId;
/**
* 数据更新至yyyyMMdd
*/
private String dateId;
/**
* 网格id
*/
private String gridId;
/**
* 网格名称
*/
private String gridName;
/**
* 网格所属组织id
*/
private String parentAgencyId;
/**
* 所有上级ID用英文逗号分开
*/
private String allParentIds;
/**
* 小于20岁的志愿者总人数
*/
private Integer ageLevel1;
/**
* 20-30岁的志愿者总人数
*/
private Integer ageLevel2;
/**
* 31-40岁的志愿者总人数
*/
private Integer ageLevel3;
/**
* 41-50岁的志愿者总人数
*/
private Integer ageLevel4;
/**
* 51-60岁的志愿者总人数
*/
private Integer ageLevel5;
/**
* 60+岁的志愿者总人数
*/
private Integer ageLevel6;
/**
* 志愿者中男性总人数
*/
private Integer maleCount;
/**
* 志愿者中女性总人数
*/
private Integer femaleCount;
}

260
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/KcScreenCollService.java

@ -0,0 +1,260 @@
package com.epmet.service.evaluationindex.screen;
import com.epmet.dto.screencoll.ScreenCollFormDTO;
import com.epmet.dto.screencoll.form.*;
/**
* 大屏数据采集api - kc
*
* @author yinzuomei@elink-cn.com
* @date 2020/8/18 10:25
*/
public interface KcScreenCollService {
/**
* 1首页-平台各类总数上报
* 当isFirst为true时后台先按照customerId+dateId清空数据再插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertPlatFormSummary(ScreenCollFormDTO<KcHomePageFormDTO> formDTO, String customerId);
/**
* 2议题分析-各类总数
* 当isFirst为true时后台先按照customerId+dateId清空数据再插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertIssueSummary(ScreenCollFormDTO<KcIssueSummaryFormDTO> formDTO, String customerId);
/**
* 3议题分析-参与趋势
* 当isFirst为true时customerId+monthId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertIssueTrend(ScreenCollFormDTO<KcIssueTrendFormDTO> formDTO, String customerId);
/**
* 4用户分析-各类总数
* 当isFirst为true时根据customerId+dateId删除后插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertUserSummary(ScreenCollFormDTO<KcUserSummaryFormDTO> formDTO, String customerId);
/**
* 5公益互助-志愿者公益时长排名
* 当isFirst为true时根据customerId删除后插入
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertVolunteerHeartRank(ScreenCollFormDTO<KcVolunteerHeartRankFormDTO> formDTO, String customerId);
/**
* 6用户分析-用户趋势
* 当isFirst为true时,根据monthId+customerId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertUserHeartRank(ScreenCollFormDTO<KcUserHeartRankFormDTO> formDTO, String customerId);
/**
* 7公益互助-活动各类总数
* 当isFirst为true时,根据customerId+dateId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertActSummary(ScreenCollFormDTO<KcActSummaryFormDTO> formDTO, String customerId);
/**
* 8公益互助-活动次数趋势
* 当isFirst为true时,根据customerId+monthId先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertActTrend(ScreenCollFormDTO<KcActTrendFormDTO> formDTO, String customerId);
/**
* 9公益互助-志愿者画像
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertVolunteerSummary(ScreenCollFormDTO<KcVolunteerSummaryFormDTO> formDTO, String customerId);
/**
* 10项目分析-各类总数
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertProjectSummary(ScreenCollFormDTO<KcProjectSummaryFormDTO> formDTO, String customerId);
/**
* 11项目分析-按分类统计
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertCategorySummary(ScreenCollFormDTO<KcCategorySummaryFormDTO> formDTO, String customerId);
/**
* 12项目分析-满意度分析
* 当isFirst为true时,根据 customerId+monthId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertProjectSatisanalysis(ScreenCollFormDTO<KcProjectSatisanalysisFormDTO> formDTO, String customerId);
/**
* 13党建声音-新闻各类总数汇总
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertNewsSummary(ScreenCollFormDTO<KcNewsSummaryFormDTO> formDTO, String customerId);
/**
* 14党建声音-新闻阅读参与趋势
* 当isFirst为true时,根据 customerId+monthId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertNewsTrend(ScreenCollFormDTO<KcNewsTrendFormDTO> formDTO, String customerId);
/**
* 15党建声音-热度新闻排行
* 当isFirst为true时,根据 customerId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertNewsHotRank(ScreenCollFormDTO<KcNewsHotRankFormDTO> formDTO, String customerId);
/**
* 16党建声音-新闻按类别统计
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertNewsCategoryAnalysis(ScreenCollFormDTO<KcNewsCategoryAnalysisFormDTO> formDTO, String customerId);
/**
* 17邻里党群-各类总数汇总
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertGroupSummary(ScreenCollFormDTO<KcGroupSummaryFormDTO> formDTO, String customerId);
/**
* 18邻里党群-小组详情
* 当isFirst为true时,根据 customerId+dateId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertGroupDetail(ScreenCollFormDTO<KcGroupDetailFormDTO> formDTO, String customerId);
/**
* 19邻里党群-话题参与趋势
* 当isFirst为true时,根据 customerId+monthId 先删后增
* 所以如果项目上是分批上传第一次为isFirst=true,后面isFirst应为false
*
* @param formDTO
* @param customerId
* @return void
* @Author zhangyong
* @Date 15:57 2020-09-09
**/
void insertGroupTopicTrend(ScreenCollFormDTO<KcGroupTopicTrendFormDTO> formDTO, String customerId);
}

367
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/KcScreenCollServiceImpl.java

@ -0,0 +1,367 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.service.evaluationindex.screen.impl;
import com.epmet.commons.dynamic.datasource.annotation.DataSource;
import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.constant.DataSourceConstant;
import com.epmet.dao.evaluationindex.screen.*;
import com.epmet.dto.screencoll.ScreenCollFormDTO;
import com.epmet.dto.screencoll.form.*;
import com.epmet.service.evaluationindex.screen.KcScreenCollService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
/**
* 大屏数据采集
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
@DataSource(DataSourceConstant.EVALUATION_INDEX)
public class KcScreenCollServiceImpl implements KcScreenCollService {
@Autowired
private ScreenKcPlatformSummaryDailyDao screenKcPlatformSummaryDailyDao;
@Autowired
private ScreenKcIssueSummaryGridDailyDao screenKcIssueSummaryGridDailyDao;
@Autowired
private ScreenKcIssueTrendGridMonthlyDao screenKcIssueTrendGridMonthlyDao;
@Autowired
private ScreenKcUserSummaryDailyDao screenKcUserSummaryDailyDao;
@Autowired
private ScreenKcVolunteerHeatRankGridDailyDao screenKcVolunteerHeatRankGridDailyDao;
@Autowired
private ScreenKcUserTrendGridMonthlyDao screenKcUserTrendGridMonthlyDao;
@Autowired
private ScreenKcActSummaryDailyDao screenKcActSummaryDailyDao;
@Autowired
private ScreenKcActTrendMonthlyDao screenKcActTrendMonthlyDao;
@Autowired
private ScreenKcVolunteerSummaryDailyDao screenKcVolunteerSummaryDailyDao;
@Autowired
private ScreenKcProjectSummaryGridDailyDao screenKcProjectSummaryGridDailyDao;
@Autowired
private ScreenKcProjectCategoryGridDailyDao screenKcProjectCategoryGridDailyDao;
@Autowired
private ScreenKcProjectSatisGridMonthlyDao screenKcProjectSatisGridMonthlyDao;
@Autowired
private ScreenKcNewsSummaryDailyDao screenKcNewsSummaryDailyDao;
@Autowired
private ScreenKcNewsTrendMonthlyDao screenKcNewsTrendMonthlyDao;
@Autowired
private ScreenKcNewsRankDao screenKcNewsRankDao;
@Autowired
private ScreenKcNewsCategoryAnalysisDao screenKcNewsCategoryAnalysisDao;
@Autowired
private ScreenKcGroupSummaryGridDailyDao screenKcGroupSummaryGridDailyDao;
@Autowired
private ScreenKcGroupDetailGridDailyDao screenKcGroupDetailGridDailyDao;
@Autowired
private ScreenKcTopicTrendGridMonthlyDao screenKcTopicTrendGridMonthlyDao;
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertPlatFormSummary(ScreenCollFormDTO<KcHomePageFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcPlatformSummaryDailyDao.deletePlatFormSummary(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcPlatformSummaryDailyDao.batchInsertPlatFormSummary(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertIssueSummary(ScreenCollFormDTO<KcIssueSummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcIssueSummaryGridDailyDao.deleteIssueSummaryGrid(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcIssueSummaryGridDailyDao.batchInsertIssueSummaryGrid(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertIssueTrend(ScreenCollFormDTO<KcIssueTrendFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcIssueTrendGridMonthlyDao.deleteIssueTrendGrid(customerId, formDTO.getMonthId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcIssueTrendGridMonthlyDao.batchInsertIssueTrendGrid(formDTO.getDataList(), customerId, formDTO.getMonthId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertUserSummary(ScreenCollFormDTO<KcUserSummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcUserSummaryDailyDao.deleteUserSummary(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcUserSummaryDailyDao.batchInsertUserSummary(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertVolunteerHeartRank(ScreenCollFormDTO<KcVolunteerHeartRankFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcVolunteerHeatRankGridDailyDao.deleteVolunteerHeatRankGrid(customerId);
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcVolunteerHeatRankGridDailyDao.batchInsertVolunteerHeatRankGrid(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertUserHeartRank(ScreenCollFormDTO<KcUserHeartRankFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcUserTrendGridMonthlyDao.deleteUserTrendGrid(customerId, formDTO.getMonthId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcUserTrendGridMonthlyDao.batchInsertUserTrendGrid(formDTO.getDataList(), customerId, formDTO.getMonthId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertActSummary(ScreenCollFormDTO<KcActSummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcActSummaryDailyDao.deleteActSummary(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcActSummaryDailyDao.batchInsertActSummary(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertActTrend(ScreenCollFormDTO<KcActTrendFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcActTrendMonthlyDao.deleteActTrend(customerId, formDTO.getMonthId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcActTrendMonthlyDao.batchInsertActTrend(formDTO.getDataList(), customerId, formDTO.getMonthId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertVolunteerSummary(ScreenCollFormDTO<KcVolunteerSummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcVolunteerSummaryDailyDao.deleteVolunteerSummary(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcVolunteerSummaryDailyDao.batchInsertVolunteerSummary(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertProjectSummary(ScreenCollFormDTO<KcProjectSummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcProjectSummaryGridDailyDao.deleteProjectSummary(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcProjectSummaryGridDailyDao.batchInsertProjectSummary(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertCategorySummary(ScreenCollFormDTO<KcCategorySummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcProjectCategoryGridDailyDao.deleteCategoryGrid(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcProjectCategoryGridDailyDao.batchInsertCategoryGrid(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertProjectSatisanalysis(ScreenCollFormDTO<KcProjectSatisanalysisFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcProjectSatisGridMonthlyDao.deleteProjectSatisGrid(customerId, formDTO.getMonthId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcProjectSatisGridMonthlyDao.batchInsertProjectSatisGrid(formDTO.getDataList(), customerId, formDTO.getMonthId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertNewsSummary(ScreenCollFormDTO<KcNewsSummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcNewsSummaryDailyDao.deleteNewsSummary(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcNewsSummaryDailyDao.batchInsertNewsSummary(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertNewsTrend(ScreenCollFormDTO<KcNewsTrendFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcNewsTrendMonthlyDao.deleteNewsTrend(customerId, formDTO.getMonthId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcNewsTrendMonthlyDao.batchInsertNewsTrend(formDTO.getDataList(), customerId, formDTO.getMonthId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertNewsHotRank(ScreenCollFormDTO<KcNewsHotRankFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcNewsRankDao.deleteNewsRank(customerId);
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcNewsRankDao.batchInsertNewsRank(formDTO.getDataList(), customerId, formDTO.getMonthId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertNewsCategoryAnalysis(ScreenCollFormDTO<KcNewsCategoryAnalysisFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcNewsCategoryAnalysisDao.deleteNewsCategoryAnalysis(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcNewsCategoryAnalysisDao.batchInsertNewsCategoryAnalysis(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertGroupSummary(ScreenCollFormDTO<KcGroupSummaryFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcGroupSummaryGridDailyDao.deleteGroupSummaryGrid(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcGroupSummaryGridDailyDao.batchInsertGroupSummaryGrid(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertGroupDetail(ScreenCollFormDTO<KcGroupDetailFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcGroupDetailGridDailyDao.deleteGroupDetailGrid(customerId, formDTO.getDateId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcGroupDetailGridDailyDao.batchInsertGroupDetailGrid(formDTO.getDataList(), customerId, formDTO.getDateId());
}
}
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true)
@Override
@Transactional(rollbackFor = Exception.class)
public void insertGroupTopicTrend(ScreenCollFormDTO<KcGroupTopicTrendFormDTO> formDTO, String customerId) {
if (formDTO.getIsFirst()) {
int deleteNum;
do {
deleteNum = screenKcTopicTrendGridMonthlyDao.deleteTopicTrendGrid(customerId, formDTO.getMonthId());
} while (deleteNum != NumConstant.ZERO);
}
if (!CollectionUtils.isEmpty(formDTO.getDataList())) {
screenKcTopicTrendGridMonthlyDao.batchInsertTopicTrendGrid(formDTO.getDataList(), customerId, formDTO.getMonthId());
}
}
}

68
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcActSummaryDailyDao.xml

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcActSummaryDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcActSummaryDailyEntity" id="screenKcActSummaryDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="actCount" column="ACT_COUNT"/>
<result property="volunteerCount" column="VOLUNTEER_COUNT"/>
<result property="partiUserCount" column="PARTI_USER_COUNT"/>
<result property="rewardPointCount" column="REWARD_POINT_COUNT"/>
<result property="heartTime" column="HEART_TIME"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteActSummary">
delete from screen_kc_act_summary_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertActSummary" parameterType="map">
insert into screen_kc_act_summary_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
ACT_COUNT,
VOLUNTEER_COUNT,
PARTI_USER_COUNT,
REWARD_POINT_COUNT,
HEART_TIME,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.actCount},
#{item.volunteerCount},
#{item.partiUserCount},
#{item.rewardPointCount},
#{item.heartTime},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

54
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcActTrendMonthlyDao.xml

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcActTrendMonthlyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcActTrendMonthlyEntity" id="screenKcActTrendMonthlyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="monthId" column="MONTH_ID"/>
<result property="actCount" column="ACT_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteActTrend">
delete from screen_kc_act_trend_monthly
where CUSTOMER_ID = #{customerId} AND MONTH_ID = #{monthId}
limit 1000;
</delete>
<insert id="batchInsertActTrend" parameterType="map">
insert into screen_kc_act_trend_monthly
(
ID,
CUSTOMER_ID,
MONTH_ID,
ACT_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{monthId},
#{item.actCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

83
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcGroupDetailGridDailyDao.xml

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcGroupDetailGridDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcGroupDetailGridDailyEntity" id="screenKcGroupDetailGridDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="groupId" column="GROUP_ID"/>
<result property="groupName" column="GROUP_NAME"/>
<result property="groupLeader" column="GROUP_LEADER"/>
<result property="memberCount" column="MEMBER_COUNT"/>
<result property="topicCount" column="TOPIC_COUNT"/>
<result property="shifitIssueCount" column="SHIFIT_ISSUE_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteGroupDetailGrid">
delete from screen_kc_group_detail_grid_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertGroupDetailGrid" parameterType="map">
insert into screen_kc_group_detail_grid_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
GROUP_ID,
GROUP_NAME,
GROUP_LEADER,
MEMBER_COUNT,
TOPIC_COUNT,
SHIFIT_ISSUE_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.groupId},
#{item.groupName},
#{item.groupLeader},
#{item.memberCount},
#{item.topicCount},
#{item.shifitIssueCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

80
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcGroupSummaryGridDailyDao.xml

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcGroupSummaryGridDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcGroupSummaryGridDailyEntity" id="screenKcGroupSummaryGridDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="groupCount" column="GROUP_COUNT"/>
<result property="memberCount" column="MEMBER_COUNT"/>
<result property="topicCount" column="TOPIC_COUNT"/>
<result property="partiCount" column="PARTI_COUNT"/>
<result property="shiftIssueCount" column="SHIFT_ISSUE_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteGroupSummaryGrid">
delete from screen_kc_group_summary_grid_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertGroupSummaryGrid" parameterType="map">
insert into screen_kc_group_summary_grid_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
GROUP_COUNT,
MEMBER_COUNT,
TOPIC_COUNT,
PARTI_COUNT,
SHIFT_ISSUE_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.groupCount},
#{item.memberCount},
#{item.topicCount},
#{item.partiCount},
#{item.shiftIssueCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

97
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcIssueSummaryGridDailyDao.xml

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcIssueSummaryGridDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcIssueSummaryGridDailyEntity" id="screenKcIssueSummaryGridDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="reportCount" column="REPORT_COUNT"/>
<result property="issueCount" column="ISSUE_COUNT"/>
<result property="pendingCount" column="PENDING_COUNT"/>
<result property="rejectedCount" column="REJECTED_COUNT"/>
<result property="processingCount" column="PROCESSING_COUNT"/>
<result property="closedCount" column="CLOSED_COUNT"/>
<result property="issueViewCount" column="ISSUE_VIEW_COUNT"/>
<result property="voteCount" column="VOTE_COUNT"/>
<result property="passedCount" column="PASSED_COUNT"/>
<result property="shiftToProjectCount" column="SHIFT_TO_PROJECT_COUNT"/>
<result property="avgAuditTime" column="AVG_AUDIT_TIME"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteIssueSummaryGrid">
delete from screen_kc_issue_summary_grid_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertIssueSummaryGrid" parameterType="map">
insert into screen_kc_issue_summary_grid_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
REPORT_COUNT,
ISSUE_COUNT,
PENDING_COUNT,
REJECTED_COUNT,
PROCESSING_COUNT,
CLOSED_COUNT,
ISSUE_VIEW_COUNT,
VOTE_COUNT,
PASSED_COUNT,
SHIFT_TO_PROJECT_COUNT,
AVG_AUDIT_TIME,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.reportCount},
#{item.issueCount},
#{item.pendingCount},
#{item.rejectedCount},
#{item.processingCount},
#{item.closedCount},
#{item.issueViewCount},
#{item.voteCount},
#{item.passedCount},
#{item.shiftToProjectCount},
#{item.avgAuditTime},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

70
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcIssueTrendGridMonthlyDao.xml

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcIssueTrendGridMonthlyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcIssueTrendGridMonthlyEntity" id="screenKcIssueTrendGridMonthlyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="monthId" column="MONTH_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="reportCount" column="REPORT_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteIssueTrendGrid">
delete from screen_kc_issue_trend_grid_monthly
where CUSTOMER_ID = #{customerId} AND MONTH_ID = #{monthId}
limit 1000;
</delete>
<insert id="batchInsertIssueTrendGrid" parameterType="map">
insert into screen_kc_issue_trend_grid_monthly
(
ID,
CUSTOMER_ID,
MONTH_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
REPORT_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{monthId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.reportCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

72
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsCategoryAnalysisDao.xml

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcNewsCategoryAnalysisDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcNewsCategoryAnalysisEntity" id="screenKcNewsCategoryAnalysisMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="categoryId" column="CATEGORY_ID"/>
<result property="categoryName" column="CATEGORY_NAME"/>
<result property="newsCount" column="NEWS_COUNT"/>
<result property="readCount" column="READ_COUNT"/>
<result property="likeCount" column="LIKE_COUNT"/>
<result property="disLikeCount" column="DIS_LIKE_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteNewsCategoryAnalysis">
delete from screen_kc_news_category_analysis
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertNewsCategoryAnalysis" parameterType="map">
insert into screen_kc_news_category_analysis
(
ID,
CUSTOMER_ID,
DATE_ID,
CATEGORY_ID,
CATEGORY_NAME,
NEWS_COUNT,
READ_COUNT,
LIKE_COUNT,
DIS_LIKE_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.categoryId},
#{item.categoryName},
#{item.newsCount},
#{item.readCount},
#{item.likeCount},
#{item.disLikeCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

62
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsRankDao.xml

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcNewsRankDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcNewsRankEntity" id="screenKcNewsRankMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="newsId" column="NEWS_ID"/>
<result property="newsTitle" column="NEWS_TITLE"/>
<result property="hotCount" column="HOT_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteNewsRank">
delete from screen_kc_news_rank
where CUSTOMER_ID = #{customerId}
limit 1000;
</delete>
<insert id="batchInsertNewsRank" parameterType="map">
insert into screen_kc_news_rank
(
ID,
CUSTOMER_ID,
DATE_ID,
NEWS_ID,
NEWS_TITLE,
HOT_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.newsId},
#{item.newsTitle},
#{item.hotCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

65
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsSummaryDailyDao.xml

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcNewsSummaryDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcNewsSummaryDailyEntity" id="screenKcNewsSummaryDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="newsCount" column="NEWS_COUNT"/>
<result property="readCount" column="READ_COUNT"/>
<result property="likeCount" column="LIKE_COUNT"/>
<result property="commentCount" column="COMMENT_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteNewsSummary">
delete from screen_kc_news_summary_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertNewsSummary" parameterType="map">
insert into screen_kc_news_summary_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
NEWS_COUNT,
READ_COUNT,
LIKE_COUNT,
COMMENT_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.newsCount},
#{item.readCount},
#{item.likeCount},
#{item.commentCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

57
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcNewsTrendMonthlyDao.xml

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcNewsTrendMonthlyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcNewsTrendMonthlyEntity" id="screenKcNewsTrendMonthlyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="monthId" column="MONTH_ID"/>
<result property="readCount" column="READ_COUNT"/>
<result property="partiCount" column="PARTI_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteNewsTrend">
delete from screen_kc_news_trend_monthly
where CUSTOMER_ID = #{customerId} AND DATE_ID = #{monthId}
limit 1000;
</delete>
<insert id="batchInsertNewsTrend" parameterType="map">
insert into screen_kc_news_trend_monthly
(
ID,
CUSTOMER_ID,
MONTH_ID,
READ_COUNT,
PARTI_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{monthId},
#{item.readCount},
#{item.partiCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

87
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcPlatformSummaryDailyDao.xml

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcPlatformSummaryDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcPlatformSummaryDailyEntity" id="screenKcPlatformSummaryDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridCount" column="GRID_COUNT"/>
<result property="openedGridCount" column="OPENED_GRID_COUNT"/>
<result property="issueCount" column="ISSUE_COUNT"/>
<result property="projectCount" column="PROJECT_COUNT"/>
<result property="userCount" column="USER_COUNT"/>
<result property="partyUserCount" column="PARTY_USER_COUNT"/>
<result property="groupCount" column="GROUP_COUNT"/>
<result property="topicCount" column="TOPIC_COUNT"/>
<result property="newsCount" column="NEWS_COUNT"/>
<result property="readCount" column="READ_COUNT"/>
<result property="actCount" column="ACT_COUNT"/>
<result property="volunteerCount" column="VOLUNTEER_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deletePlatFormSummary">
delete from screen_kc_platform_summary_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertPlatFormSummary" parameterType="map">
insert into screen_kc_platform_summary_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_COUNT,
OPENED_GRID_COUNT,
ISSUE_COUNT,
PROJECT_COUNT,
USER_COUNT,
PARTY_USER_COUNT,
GROUP_COUNT,
TOPIC_COUNT,
NEWS_COUNT,
READ_COUNT,
ACT_COUNT,
VOLUNTEER_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridCount},
#{item.openedGridCount},
#{item.issueCount},
#{item.projectCount},
#{item.userCount},
#{item.partyUserCount},
#{item.groupCount},
#{item.topicCount},
#{item.newsCount},
#{item.readCount},
#{item.actCount},
#{item.vounteerCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

74
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcProjectCategoryGridDailyDao.xml

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcProjectCategoryGridDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcProjectCategoryGridDailyEntity" id="screenKcProjectCategoryGridDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="categoryId" column="CATEGORY_ID"/>
<result property="categoryName" column="CATEGORY_NAME"/>
<result property="projectCount" column="PROJECT_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteCategoryGrid">
delete from screen_kc_project_category_grid_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertCategoryGrid" parameterType="map">
insert into screen_kc_project_category_grid_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
CATEGORY_ID,
CATEGORY_NAME,
PROJECT_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.categoryId},
#{item.categoryName},
#{item.projectCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

75
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcProjectSatisGridMonthlyDao.xml

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcProjectSatisGridMonthlyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcProjectSatisGridMonthlyEntity" id="screenKcProjectSatisGridMonthlyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="monthId" column="MONTH_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="greatSatis" column="GREAT_SATIS"/>
<result property="goodSatis" column="GOOD_SATIS"/>
<result property="disSatis" column="DIS_SATIS"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteProjectSatisGrid">
delete from screen_kc_project_satis_grid_monthly
where CUSTOMER_ID = #{customerId} AND MONTH_ID = #{monthId}
limit 1000;
</delete>
<insert id="batchInsertProjectSatisGrid" parameterType="map">
insert into screen_kc_project_satis_grid_monthly
(
ID,
CUSTOMER_ID,
MONTH_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
GREAT_SATIS,
GOOD_SATIS,
DIS_SATIS,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{monthId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.greatSatis},
#{item.goodSatis},
#{item.disSatis},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

91
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcProjectSummaryGridDailyDao.xml

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcProjectSummaryGridDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcProjectSummaryGridDailyEntity" id="screenKcProjectSummaryGridDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="projectCount" column="PROJECT_COUNT"/>
<result property="processingCount" column="PROCESSING_COUNT"/>
<result property="closedCount" column="CLOSED_COUNT"/>
<result property="moveCount" column="MOVE_COUNT"/>
<result property="closedCaseCount" column="CLOSED_CASE_COUNT"/>
<result property="projectViewCount" column="PROJECT_VIEW_COUNT"/>
<result property="voteCount" column="VOTE_COUNT"/>
<result property="avgClosedCaseTime" column="AVG_CLOSED_CASE_TIME"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteProjectSummary">
delete from screen_kc_project_summary_grid_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertProjectSummary" parameterType="map">
insert into screen_kc_project_summary_grid_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
PROJECT_COUNT,
PROCESSING_COUNT,
CLOSED_COUNT,
MOVE_COUNT,
CLOSED_CASE_COUNT,
PROJECT_VIEW_COUNT,
VOTE_COUNT,
AVG_CLOSED_CASE_TIME,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.projectCount},
#{item.processingCount},
#{item.closedCount},
#{item.moveCount},
#{item.closedCaseCount},
#{item.projectViewCount},
#{item.voteCount},
#{item.avgClosedCaseTime},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

69
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcTopicTrendGridMonthlyDao.xml

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcTopicTrendGridMonthlyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcTopicTrendGridMonthlyEntity" id="screenKcTopicTrendGridMonthlyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="monthId" column="MONTH_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="topicCount" column="TOPIC_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteTopicTrendGrid">
delete from screen_kc_topic_trend_grid_monthly
where CUSTOMER_ID = #{customerId} AND MONTH_ID = #{monthId}
limit 1000;
</delete>
<insert id="batchInsertTopicTrendGrid" parameterType="map">
insert into screen_kc_topic_trend_grid_monthly
(
ID,
CUSTOMER_ID,
MONTH_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
TOPIC_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{monthId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.topicCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

28
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcUserHeatRankGridDailyDao.xml

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcUserHeatRankGridDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcUserHeatRankGridDailyEntity" id="screenKcUserHeatRankGridDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="userId" column="USER_ID"/>
<result property="userName" column="USER_NAME"/>
<result property="volunteerFlag" column="VOLUNTEER_FLAG"/>
<result property="heartTime" column="HEART_TIME"/>
<result property="points" column="POINTS"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

99
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcUserSummaryDailyDao.xml

@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcUserSummaryDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcUserSummaryDailyEntity" id="screenKcUserSummaryDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="visitorCount" column="VISITOR_COUNT"/>
<result property="regUserCount" column="REG_USER_COUNT"/>
<result property="partyUserCount" column="PARTY_USER_COUNT"/>
<result property="ageLevel1" column="AGE_LEVEL_1"/>
<result property="ageLevel2" column="AGE_LEVEL_2"/>
<result property="ageLevel3" column="AGE_LEVEL_3"/>
<result property="ageLevel4" column="AGE_LEVEL_4"/>
<result property="ageLevel5" column="AGE_LEVEL_5"/>
<result property="ageLevel6" column="AGE_LEVEL_6"/>
<result property="malePartyUserCount" column="MALE_PARTY_USER_COUNT"/>
<result property="femalePartyUserCount" column="FEMALE_PARTY_USER_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteUserSummary">
delete from screen_kc_user_summary_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertUserSummary" parameterType="map">
insert into screen_kc_user_summary_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
VISITOR_COUNT,
REG_USER_COUNT,
PARTY_USER_COUNT,
AGE_LEVEL_1,
AGE_LEVEL_2,
AGE_LEVEL_3,
AGE_LEVEL_4,
AGE_LEVEL_5,
AGE_LEVEL_6,
MALE_PARTY_USER_COUNT,
FEMALE_PARTY_USER_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.visitorCount},
#{item.regUserCount},
#{item.partyUserCount},
#{item.ageLevel1},
#{item.ageLevel2},
#{item.ageLevel3},
#{item.ageLevel4},
#{item.ageLevel5},
#{item.ageLevel6},
#{item.malePartyUserCount},
#{item.femalePartyUserCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

72
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcUserTrendGridMonthlyDao.xml

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcUserTrendGridMonthlyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcUserTrendGridMonthlyEntity" id="screenKcUserTrendGridMonthlyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="monthId" column="MONTH_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="regUserCount" column="REG_USER_COUNT"/>
<result property="partyUserCount" column="PARTY_USER_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteUserTrendGrid">
delete from screen_kc_user_trend_grid_monthly
where CUSTOMER_ID = #{customerId} AND MONTH_ID = #{monthId}
limit 1000;
</delete>
<insert id="batchInsertUserTrendGrid" parameterType="map">
insert into screen_kc_user_trend_grid_monthly
(
ID,
CUSTOMER_ID,
MONTH_ID
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
REG_USER_COUNT,
PARTY_USER_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{monthId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.regUserCount},
#{item.partyUserCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

75
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcVolunteerHeatRankGridDailyDao.xml

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcVolunteerHeatRankGridDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcVolunteerHeatRankGridDailyEntity" id="screenKcVolunteerHeatRankGridDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="userId" column="USER_ID"/>
<result property="userName" column="USER_NAME"/>
<result property="heartTime" column="HEART_TIME"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteVolunteerHeatRankGrid">
delete from screen_kc_volunteer_heat_rank_grid_daily
where CUSTOMER_ID = #{customerId}
limit 1000;
</delete>
<insert id="batchInsertVolunteerHeatRankGrid" parameterType="map">
insert into screen_kc_volunteer_heat_rank_grid_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
USER_ID,
USER_NAME,
HEART_TIME,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.userId},
#{item.userName},
#{item.heartTime},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>

91
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/screen/ScreenKcVolunteerSummaryDailyDao.xml

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.evaluationindex.screen.ScreenKcVolunteerSummaryDailyDao">
<resultMap type="com.epmet.entity.evaluationindex.screen.ScreenKcVolunteerSummaryDailyEntity" id="screenKcVolunteerSummaryDailyMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="dateId" column="DATE_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="gridName" column="GRID_NAME"/>
<result property="parentAgencyId" column="PARENT_AGENCY_ID"/>
<result property="allParentIds" column="ALL_PARENT_IDS"/>
<result property="ageLevel1" column="AGE_LEVEL_1"/>
<result property="ageLevel2" column="AGE_LEVEL_2"/>
<result property="ageLevel3" column="AGE_LEVEL_3"/>
<result property="ageLevel4" column="AGE_LEVEL_4"/>
<result property="ageLevel5" column="AGE_LEVEL_5"/>
<result property="ageLevel6" column="AGE_LEVEL_6"/>
<result property="maleCount" column="MALE_COUNT"/>
<result property="femaleCount" column="FEMALE_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<delete id="deleteVolunteerSummary">
delete from screen_kc_volunteer_summary_daily
where CUSTOMER_ID = #{customerId} AND DATE_ID != #{dateId}
limit 1000;
</delete>
<insert id="batchInsertVolunteerSummary" parameterType="map">
insert into screen_kc_volunteer_summary_daily
(
ID,
CUSTOMER_ID,
DATE_ID,
GRID_ID,
GRID_NAME,
PARENT_AGENCY_ID,
ALL_PARENT_IDS,
AGE_LEVEL_1,
AGE_LEVEL_2,
AGE_LEVEL_3,
AGE_LEVEL_4,
AGE_LEVEL_5,
AGE_LEVEL_6,
MALE_COUNT,
FEMALE_COUNT,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{dateId},
#{item.gridId},
#{item.gridName},
#{item.parentAgencyId},
#{item.allParentIds},
#{item.ageLevel1},
#{item.ageLevel2},
#{item.ageLevel3},
#{item.ageLevel4},
#{item.ageLevel5},
#{item.ageLevel6},
#{item.maleCount},
#{item.femaleCount},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>
Loading…
Cancel
Save