You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
3.3 KiB
95 lines
3.3 KiB
<?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.elink.esua.epdc.dao.KpiMassEvaluationDao">
|
|
|
|
<resultMap type="com.elink.esua.epdc.entity.KpiMassEvaluationEntity" id="kpiMassEvaluationMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="deptId" column="DEPT_ID"/>
|
|
<result property="deptName" column="DEPT_NAME"/>
|
|
<result property="deptTypeKey" column="DEPT_TYPE_KEY"/>
|
|
<result property="year" column="YEAR"/>
|
|
<result property="satisfied" column="SATISFIED"/>
|
|
<result property="basicSatisfaction" column="BASIC_SATISFACTION"/>
|
|
<result property="dissatisfied" column="DISSATISFIED"/>
|
|
<result property="parentDeptIds" column="PARENT_DEPT_IDS"/>
|
|
<result property="parentDeptNames" column="PARENT_DEPT_NAMES"/>
|
|
<result property="allDeptIds" column="ALL_DEPT_IDS"/>
|
|
<result property="allDeptNames" column="ALL_DEPT_NAMES"/>
|
|
<result property="revision" column="REVISION"/>
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
</resultMap>
|
|
|
|
<select id="getInfoPage" resultType="com.elink.esua.epdc.dto.KpiMassEvaluationDTO">
|
|
select
|
|
ID,
|
|
DEPT_ID,
|
|
DEPT_NAME,
|
|
DEPT_TYPE_KEY,
|
|
YEAR,
|
|
SATISFIED,
|
|
BASIC_SATISFACTION,
|
|
DISSATISFIED,
|
|
PARENT_DEPT_IDS,
|
|
PARENT_DEPT_NAMES,
|
|
ALL_DEPT_IDS,
|
|
ALL_DEPT_NAMES,
|
|
REVISION,
|
|
CREATED_BY,
|
|
CREATED_TIME,
|
|
UPDATED_BY,
|
|
UPDATED_TIME,
|
|
DEL_FLAG
|
|
from epdc_kpi_mass_evaluation
|
|
where DEL_FLAG = '0'
|
|
<if test="deptId != null and deptId != ''">
|
|
and FIND_IN_SET(#{deptId},ALL_DEPT_IDS)
|
|
</if>
|
|
<if test="year != null and year != ''">
|
|
and YEAR = #{year}
|
|
</if>
|
|
<if test="deptTypeKey != null and deptTypeKey != ''">
|
|
and DEPT_TYPE_KEY = #{deptTypeKey}
|
|
</if>
|
|
order by UPDATED_TIME desc
|
|
</select>
|
|
|
|
<select id="getDuplicateData" resultType="com.elink.esua.epdc.dto.KpiMassEvaluationDTO" parameterType="com.elink.esua.epdc.dto.form.CheckIsScoredByYearFormDTO">
|
|
select
|
|
ID,
|
|
DEPT_ID,
|
|
DEPT_NAME,
|
|
DEPT_TYPE_KEY,
|
|
YEAR,
|
|
SATISFIED,
|
|
BASIC_SATISFACTION,
|
|
DISSATISFIED,
|
|
PARENT_DEPT_IDS,
|
|
PARENT_DEPT_NAMES,
|
|
ALL_DEPT_IDS,
|
|
ALL_DEPT_NAMES,
|
|
REVISION,
|
|
CREATED_BY,
|
|
CREATED_TIME,
|
|
UPDATED_BY,
|
|
UPDATED_TIME,
|
|
DEL_FLAG
|
|
from epdc_kpi_mass_evaluation
|
|
where DEL_FLAG = '0'
|
|
<if test="checkList != null and checkList.size() > 0">
|
|
AND DEPT_ID IN
|
|
<foreach collection="checkList" item="deptId" index="index" open="(" close=")" separator=",">
|
|
#{deptId}
|
|
</foreach>
|
|
</if>
|
|
<if test="year != null and year != ''">
|
|
and YEAR = #{year}
|
|
</if>
|
|
</select>
|
|
|
|
|
|
</mapper>
|