diff --git a/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/form/DifficultyRankFormDTO.java b/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/form/DifficultyRankFormDTO.java
index d043180705..5a3936db6a 100644
--- a/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/form/DifficultyRankFormDTO.java
+++ b/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/form/DifficultyRankFormDTO.java
@@ -26,7 +26,7 @@ public class DifficultyRankFormDTO implements Serializable {
/**
* 排序类型 耗时最长:timelongest;涉及部门最多:mostdepts;处理次数:mosthandled
*/
- @NotBlank(message = "排序类型不能为空",groups = {DifficultyRankInternalGroup.class})
+ @NotBlank(message = "排序类型不能为空", groups = {DifficultyRankInternalGroup.class})
private String type;
/**
* 获取数据个数 默认前10
@@ -35,4 +35,9 @@ public class DifficultyRankFormDTO implements Serializable {
@Min(value = 1, groups = {DifficultyRankInternalGroup.class})
private Integer pageNo;
+
+ /**
+ * 组织类型: 网格:grid ; 组织:agency
+ */
+ private String orgType;
}
\ No newline at end of file
diff --git a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml
index 8e5bace8d8..6369d52db7 100644
--- a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml
+++ b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml
@@ -249,10 +249,17 @@
screen_difficulty_data diff
WHERE
diff.DEL_FLAG = '0'
- AND diff.ALL_PARENT_IDS LIKE CONCAT('%',#{agencyId},'%')
-
- AND diff.EVENT_STATUS_CODE = #{status}
-
+
+
+ AND diff.ORG_ID = #{agencyId,jdbcType=VARCHAR}
+
+
+ AND diff.ALL_PARENT_IDS LIKE CONCAT('%',#{agencyId},'%')
+
+
+
+ AND diff.EVENT_STATUS_CODE = #{status}
+
ORDER BY
CASE #{type} WHEN 'timelongest' THEN diff.EVENT_COST_TIME
WHEN 'mosthandled' THEN diff.EVENT_HANDLED_COUNT