diff --git a/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/result/ProjectDifficultRankResultDTO.java b/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/result/ProjectDifficultRankResultDTO.java index f3d1967599..0d6412a35d 100644 --- a/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/result/ProjectDifficultRankResultDTO.java +++ b/epmet-module/data-report/data-report-client/src/main/java/com/epmet/project/dto/result/ProjectDifficultRankResultDTO.java @@ -3,6 +3,7 @@ package com.epmet.project.dto.result; import lombok.Data; import java.io.Serializable; +import java.math.BigDecimal; import java.util.List; /** @@ -61,4 +62,10 @@ public class ProjectDifficultRankResultDTO implements Serializable { * */ private Integer handledCount; + /** + * 项目评价分数 + * 直接取整数位展示 + */ + private BigDecimal score; + } 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 fced0091a6..a968be215b 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 @@ -278,7 +278,8 @@ diff.EVENT_IMG_URL AS imgUrl, floor(diff.EVENT_COST_TIME/60) AS totalHours, diff.EVENT_RE_ORG AS reOrg, - diff.EVENT_HANDLED_COUNT AS handledCount + diff.EVENT_HANDLED_COUNT AS handledCount, + IFNULL(spd.SATISFACTION_SCORE,80) AS score FROM ( select scg.AREA_CODE,sdd1.* from screen_difficulty_data sdd1 @@ -333,6 +334,7 @@ AND sdd2.EVENT_STATUS_CODE in('closed','10','5') ) diff + LEFT JOIN screen_project_data spd ON (spd.PROJECT_ID = diff.EVENT_ID AND spd.DEL_FLAG = '0' AND spd.CLOSE_CASE_TIME IS NOT NULL and spd.SATISFACTION_SCORE is not null) ORDER BY CASE #{type} WHEN 'timelongest' THEN diff.EVENT_COST_TIME WHEN 'mosthandled' THEN diff.EVENT_HANDLED_COUNT