|
|
@ -21,12 +21,12 @@ |
|
|
|
fact.month_id ASC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectCommunityScoreList" resultType="com.epmet.evaluationindex.screen.dto.result.ScoreListResultDTO"> |
|
|
|
<select id="selectCommunityWeightScoreList" resultType="com.epmet.evaluationindex.screen.dto.result.ScoreListResultDTO"> |
|
|
|
SELECT |
|
|
|
fact.index_code AS "indexCode", |
|
|
|
ROUND(fact.score, 1) AS "indexTotal", |
|
|
|
ROUND(self.self_score, 1) AS "agencyScore", |
|
|
|
ROUND(self.sub_score, 1) AS "subAgencyScore" |
|
|
|
ROUND(fact.score*fact.WEIGHT, 1) AS "indexTotal", |
|
|
|
ROUND(self.self_score*fact.WEIGHT, 1) AS "agencyScore", |
|
|
|
ROUND(self.sub_score*fact.WEIGHT, 1) AS "subAgencyScore" |
|
|
|
FROM |
|
|
|
fact_index_community_score fact |
|
|
|
INNER JOIN fact_index_community_self_sub_score self ON fact.agency_id = self.agency_id |
|
|
@ -45,8 +45,8 @@ |
|
|
|
SELECT |
|
|
|
fact.month_id AS "monthId", |
|
|
|
ROUND(fact.score*fact.WEIGHT, 1) AS "indexTotal", |
|
|
|
ROUND(self.self_score*self.SELF_WEIGHT, 1) AS "agencyScore", |
|
|
|
ROUND(self.sub_score*self.SUB_WEIGHT, 1) AS "subAgencyScore", |
|
|
|
ROUND(self.self_score*fact.WEIGHT, 1) AS "agencyScore", |
|
|
|
ROUND(self.sub_score*fact.WEIGHT, 1) AS "subAgencyScore", |
|
|
|
fact.index_code AS "indexCode" |
|
|
|
FROM |
|
|
|
fact_index_community_score fact |
|
|
|