|
@@ -16,7 +16,7 @@
|
|
|
id, organization_evaluation_id, indicator_id, score, organization_evaluation_rule_id
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selelctListByEvaluationRuleId" resultType="com.ims.eval.entity.dto.response.EvaluationScoreCountDTO">
|
|
|
+ <select id="selelctListByEvaluationRuleId" resultType="com.ims.eval.entity.EvaluationScoreCount">
|
|
|
select c.*,i.indicator_name,o.organization_name,b.section_name,s.stage_name,d.key_name
|
|
|
from evaluation_score_count c
|
|
|
LEFT JOIN indicator i on c.indicator_id = i.id
|
|
@@ -39,4 +39,48 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectEvaluationList" resultType="java.util.Map">
|
|
|
+ SELECT
|
|
|
+ oer.organization_name,
|
|
|
+ es.score,
|
|
|
+ es.obversion_score,
|
|
|
+ i.indicator_name,
|
|
|
+ i.unit
|
|
|
+ FROM
|
|
|
+ evaluation_score_count es
|
|
|
+ LEFT JOIN indicator i ON es.indicator_id = i.id
|
|
|
+ LEFT JOIN indicator_type t ON i.indicator_type_id = t.id
|
|
|
+ LEFT JOIN bin_stage b ON i.bin_stage = b.id
|
|
|
+ LEFT JOIN bin_section bs ON i.bin_section = bs.id
|
|
|
+ LEFT JOIN organization_evaluation oe ON oe.id = es.organization_evaluation_id
|
|
|
+ LEFT JOIN organization_evaluation_rule oer ON oer.id = es.organization_evaluation_rule_id
|
|
|
+ <where>
|
|
|
+
|
|
|
+ <if test="binSection !=null and binSection !=''">
|
|
|
+ AND bs.id = #{binSection}
|
|
|
+ </if>
|
|
|
+ <if test="binStage !=null and binStage !=''">
|
|
|
+ AND b.id = #{binStage}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="type !=null and type !=''">
|
|
|
+ AND i.type = #{type}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="year !=null and year !=''">
|
|
|
+ AND oe.year = #{year}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="season !=null and season !=''">
|
|
|
+ AND oe.season = #{season}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="month !=null and month !=''">
|
|
|
+ AND oe.month = #{month}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|