|
@@ -0,0 +1,108 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.ims.eval.dao.OrganizationEvaluationCommonInfoMapper">
|
|
|
+
|
|
|
+<!--
|
|
|
+
|
|
|
+ <select id="selectEvaluationInfoList" resultType="com.ims.eval.entity.dto.response.OrganizationEvaluationInfoResDTO">
|
|
|
+
|
|
|
+ select
|
|
|
+ ei.id,
|
|
|
+ oe.id organizationEvaluationId,
|
|
|
+ ei.indicator_id,
|
|
|
+ ei.is_quantified,
|
|
|
+ id.is_quantified isQuantified2,
|
|
|
+ be.stage_name,
|
|
|
+ be.id binStage,
|
|
|
+ bn.id binSection,
|
|
|
+ bn.section_name,
|
|
|
+ oer.id organizationEvaluationRuleId,
|
|
|
+ oer.organization_name,
|
|
|
+ oer.organization_id,
|
|
|
+ oer.organization_short_name,
|
|
|
+ dd.key_name deptName,
|
|
|
+ it.type_name,
|
|
|
+ i.indicator_name,
|
|
|
+ id.child_name,
|
|
|
+ id.child_code,
|
|
|
+ id.option_name,
|
|
|
+ id.option_code,
|
|
|
+ ei.quantified_value,
|
|
|
+ ei.non_quantified_value,
|
|
|
+ i.unit,
|
|
|
+ ei.state,
|
|
|
+ ri.min_score,
|
|
|
+ ri.max_score
|
|
|
+ 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_id
|
|
|
+ <where>
|
|
|
+
|
|
|
+ <if test="organizationEvaluationId !=null and organizationEvaluationId !=''">
|
|
|
+ and ei.organization_evaluation_id = #{organizationEvaluationId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+ <if test="indicatorId !=null and indicatorId !=''">
|
|
|
+ and ei.indicator_id = #{indicatorId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+ <if test="binSection !=null and binSection !=''">
|
|
|
+ and bn.id = #{binSection}
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+ <if test="binStage !=null and binStage !=''">
|
|
|
+ and be.id = #{binStage}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="organizationId !=null and organizationId !=''">
|
|
|
+ and oer.organization_id = #{organizationId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+ <if test="organizationShortName !=null and organizationShortName !=''">
|
|
|
+ and oer.organization_short_name like CONCAT('%',#{organizationShortName},'%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ and id.option_code not in ('CZMAX','CZMIN','LRGXKLMAX','LRGXKLMIN','DWQWLRMAX','DWQWLRMIN','LRGXKHMAX','LRGXKHMIN')
|
|
|
+ </where>
|
|
|
+
|
|
|
+ order by oer.order_num asc
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+-->
|
|
|
+
|
|
|
+ <select id="selectListAll" resultType="com.ims.eval.entity.OrganizationEvaluationCommonInfo">
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM organization_evaluation_common_info ci
|
|
|
+ <where>
|
|
|
+ <if test="organizationEvaluationId !=null and organizationEvaluationId !=''">
|
|
|
+ and ci.organization_evaluation_id = #{organizationEvaluationId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="indicatorId !=null and indicatorId !=''">
|
|
|
+ and ci.indicator_id = #{indicatorId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="organizationId !=null and organizationId !=''">
|
|
|
+ and ci.organization_id = #{organizationId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+</mapper>
|