|
@@ -110,6 +110,82 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+ <select id="selectListEvaluationInfoId2"
|
|
|
+ resultType="com.ims.eval.entity.dto.response.OrganizationEvaluationInfoResDTO">
|
|
|
+
|
|
|
+ select
|
|
|
+ ei.id,
|
|
|
+ oe.id organizationEvaluationId,
|
|
|
+ ei.indicator_id,
|
|
|
+ ei.is_quantified,
|
|
|
+ be.stage_name,
|
|
|
+ be.id binStage,
|
|
|
+ bn.id binSection,
|
|
|
+ bn.section_name,
|
|
|
+ oer.id organizationEvaluationRuleId,
|
|
|
+ oer.organization_name,
|
|
|
+ oer.organization_short_name,
|
|
|
+ dd.key_name deptName,
|
|
|
+ it.type_name,
|
|
|
+ i.indicator_name,
|
|
|
+ id.child_name,
|
|
|
+ id.option_name,
|
|
|
+ id.option_code,
|
|
|
+ ei.quantified_value,
|
|
|
+ ei.non_quantified_value,
|
|
|
+ i.unit,
|
|
|
+ ei.state
|
|
|
+ from
|
|
|
+ organization_evaluation_info ei
|
|
|
+ inner join organization_evaluation_rule oer on oer.id = ei.organization_evaluation_rule_id
|
|
|
+ inner join organization_evaluation oe on oe.id = ei.organization_evaluation_id
|
|
|
+ left join indicator i on ei.indicator_id = i.id
|
|
|
+ left join evaluate_rule_info ri on ri.indicator_id = i.id and ei.evaluate_rule_info_id = ri.id
|
|
|
+ left join bin_stage be on i.bin_stage = be.id
|
|
|
+ left join bin_section bn on i.bin_section = bn.id
|
|
|
+ left join indicator_type it on i.indicator_type_id = it.id
|
|
|
+ left join indicator_dictionary id on ei.indicator_dictionary_id = id.id
|
|
|
+ inner join data_dictionary dd on dd.data_key = i.dept
|
|
|
+ <where>
|
|
|
+
|
|
|
+ <if test="organizationEvaluationId !=null and organizationEvaluationId !=''">
|
|
|
+ and ei.organization_evaluation_id = #{organizationEvaluationId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="optionCode !=null and optionCode !=''">
|
|
|
+ and ei.option_code = #{optionCode}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="dept !=null and dept !=''">
|
|
|
+ and dd.key_name like CONCAT('%',#{dept},'%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="organizationShortName !=null and organizationShortName !=''">
|
|
|
+ and oer.organization_short_name like CONCAT('%',#{organizationShortName},'%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="indicatorName !=null and indicatorName !=''">
|
|
|
+ and i.indicator_name like CONCAT('%',#{indicatorName},'%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="binSection !=null and binSection !=''">
|
|
|
+ and bn.id = #{binSection}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="isQuantified !=null and isQuantified !=''">
|
|
|
+ and ei.is_quantified = #{isQuantified}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="organizationId !=null and organizationId !=''">
|
|
|
+ and oer.organization_id = #{organizationId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ and id.option_code not in ('CZ','CZMAX','CZMIN','LRGXKLMAX','LRGXKLMIN','DWQWLRMAX','DWQWLRMIN','WCLDF','LRGXKHMAX','LRGXKHMIN')
|
|
|
+ </where>
|
|
|
+
|
|
|
+ order by be.order_num,oer.organization_short_name,bn.order_num,ri.order_num,id.child_code,id.option_code,id.option_order asc
|
|
|
+
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
</mapper>
|