| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?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="cn.com.goldenwater.dcproj.dao.TacEvaluationGroupLeaderDao">
-
- <resultMap type="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader" id="tacEvaluationGroupLeaderResultMap">
- <result property="id" column="ID" />
- <result property="orgId" column="ORG_ID" />
- <result property="adCode" column="AD_CODE" />
- <result property="batchYear" column="BATCH_YEAR" />
- <result property="batchNum" column="BATCH_NUM" />
- <result property="groupId" column="GROUP_ID" />
- <result property="projId" column="PROJ_ID" />
- <result property="groupLeaderId" column="GROUP_LEADER_ID" />
- <result property="groupLeaderName" column="GROUP_LEADER_NAME" />
- <result property="orgLeader" column="ORG_LEADER" />
- <result property="businessLevel" column="BUSINESS_LEVEL" />
- <result property="cphsManage" column="CPHS_MANAGE" />
- <result property="workStyle" column="WORK_STYLE" />
- <result property="oneVeto" column="ONE_VETO" />
- <result property="score" column="SCORE" />
- <result property="evalLevel" column="EVAL_LEVEL" />
- <result property="note" column="NOTE" />
- <result property="backUp" column="BACKUP" />
- <result property="persId" column="PERS_ID" />
- <result property="intm" column="INTM" />
- <result property="uptm" column="UPTM" />
- </resultMap>
- <!-- 数据库表字段列表 table_columns -->
- <sql id="table_columns">
- ID,
- ORG_ID,
- AD_CODE,
- GROUP_ID,
- PROJ_ID,
- GROUP_LEADER_ID,
- GROUP_LEADER_NAME,
- ORG_LEADER,
- BUSINESS_LEVEL,
- CPHS_MANAGE,
- WORK_STYLE,
- ONE_VETO,
- SCORE,
- EVAL_LEVEL,
- NOTE,
- PERS_ID,
- INTM,
- UPTM
- </sql>
- <!-- 实体类属性 列表 entity_properties -->
- <sql id="entity_properties">
- #{id},
- #{orgId},
- #{adCode},
- #{groupId},
- #{projId},
- #{groupLeaderId},
- #{groupLeaderName},
- #{orgLeader},
- #{businessLevel},
- #{cphsManage},
- #{workStyle},
- #{oneVeto},
- #{score},
- #{evalLevel},
- #{note},
- #{persId},
- #{intm},
- #{uptm}
- </sql>
- <!-- 实体类属性 列表 entity_properties_item for循环使用 -->
- <sql id="entity_properties_item">
- #{item.id} as ID ,
- #{item.orgId} as ORG_ID ,
- #{item.adCode} as AD_CODE ,
- #{item.groupId} as GROUP_ID ,
- #{item.projId} as PROJ_ID ,
- #{item.groupLeaderId} as GROUP_LEADER_ID ,
- #{item.groupLeaderName} as GROUP_LEADER_NAME ,
- #{item.orgLeader} as ORG_LEADER ,
- #{item.businessLevel} as BUSINESS_LEVEL ,
- #{item.cphsManage} as CPHS_MANAGE ,
- #{item.workStyle} as WORK_STYLE ,
- #{item.oneVeto} as ONE_VETO ,
- #{item.score} as SCORE ,
- #{item.evalLevel} as EVAL_LEVEL ,
- #{item.note} as NOTE ,
- #{item.persId} as PERS_ID ,
- #{item.intm} as INTM ,
- #{item.uptm} as UPTM
- </sql>
- <!-- 查询条件 -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test='orgId != null and orgId != ""'> and ORG_ID = #{orgId}</if>
- <if test='adCode != null and adCode != ""'> and AD_CODE like '${adCode}%'</if>
- <if test='groupId != null and groupId != ""'> and GROUP_ID = #{groupId}</if>
- <if test='projId != null and projId != ""'> and PROJ_ID = #{projId}</if>
- <if test='groupLeaderId != null and groupLeaderId != ""'> and GROUP_LEADER_ID = #{groupLeaderId}</if>
- <if test='groupLeaderName != null and groupLeaderName != ""'> and GROUP_LEADER_NAME like '%${groupLeaderName}%'</if>
- <if test='orgLeader != null '> and ORG_LEADER = #{orgLeader}</if>
- <if test='businessLevel != null '> and BUSINESS_LEVEL = #{businessLevel}</if>
- <if test='cphsManage != null '> and CPHS_MANAGE = #{cphsManage}</if>
- <if test='workStyle != null '> and WORK_STYLE = #{workStyle}</if>
- <if test='oneVeto != null and oneVeto != ""'> and ONE_VETO = #{oneVeto}</if>
- <if test='score != null '> and SCORE = #{score}</if>
- <if test='evalLevel != null and evalLevel != ""'> and EVAL_LEVEL = #{evalLevel}</if>
- <if test='note != null and note != ""'> and NOTE = #{note}</if>
- <if test='persId != null and persId != ""'> and PERS_ID = #{persId}</if>
- <if test='intm != null '> and DATE_FORMAT(INTM,'%Y-%m-%d') = DATE_FORMAT(#{intm},'%Y-%m-%d')</if>
- <if test='uptm != null '> and UPTM = #{uptm}</if>
- <if test='null != batchYear and "" != batchYear '>
- and GROUP_ID in ( select GROUP_ID from TAC_INSP_YEAR_BATCH_GROUP_PERS where YEAR = #{batchYear} and GROUP_ID is not null )
- </if>
- </trim>
- </sql>
- <!-- 根据Id查询 -->
- <select id="get" resultMap="tacEvaluationGroupLeaderResultMap" parameterType="String">
- select
- <include refid="table_columns"/>,BACKUP
- from TAC_EVALUATION_GROUP_LEADER where ID = #{id}
- </select>
- <!-- 根据条件筛选查询 -->
- <select id="getBy" resultMap="tacEvaluationGroupLeaderResultMap" parameterType="cn.com.goldenwater.dcproj.param.TacEvaluationGroupLeaderParam">
- select
- <include refid="table_columns"/>
- from TAC_EVALUATION_GROUP_LEADER
- <include refid="page_where"/>
- </select>
- <!-- 查询所有 -->
- <select id="findAll" resultMap="tacEvaluationGroupLeaderResultMap">
- select
- <include refid="table_columns"/>
- from TAC_EVALUATION_GROUP_LEADER
- </select>
- <!-- 根据条件筛选 查询所有 -->
- <select id="findList" resultMap="tacEvaluationGroupLeaderResultMap" parameterType="cn.com.goldenwater.dcproj.param.TacEvaluationGroupLeaderParam">
- select
- <include refid="table_columns"/>
- from TAC_EVALUATION_GROUP_LEADER
- <include refid="page_where"/>
- </select>
- <!-- 根据条件筛选 统计记录数 -->
- <select id="selectCount" resultType="int" parameterType="cn.com.goldenwater.dcproj.param.TacEvaluationGroupLeaderParam">
- select count( ID ) from TAC_EVALUATION_GROUP_LEADER
- <include refid="page_where"/>
- </select>
- <!-- 添加 -->
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader" >
- insert into TAC_EVALUATION_GROUP_LEADER(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <!-- 批量添加 -->
- <insert id="insertBatchFile" parameterType="java.util.List" useGeneratedKeys="false">
- insert into TAC_EVALUATION_GROUP_LEADER
- (<include refid="table_columns"/>)
- select t.* from (
- <foreach item="item" index="index" collection="list" separator="union all">
- select <include refid="entity_properties_item"/> from dual
- </foreach>
- ) t
- </insert>
- <!-- 主键删除 -->
- <delete id="delete" parameterType="java.lang.String">
- update TAC_EVALUATION_GROUP_LEADER set DATA_STAT='9' where ID = #{id}
- </delete>
- <!-- 条件删除 -->
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader">
- update TAC_EVALUATION_GROUP_LEADER set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <!-- 逻辑删除 -->
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_EVALUATION_GROUP_LEADER set DATA_STAT = '9' where ID = #{id}
- </update>
- <!-- 主键更新 -->
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader">
- update TAC_EVALUATION_GROUP_LEADER
- <trim prefix="SET" suffixOverrides=",">
- <if test='orgId != null'>ORG_ID = #{orgId},</if>
- <if test='adCode != null'>AD_CODE = #{adCode},</if>
- <if test='groupId != null'>GROUP_ID = #{groupId},</if>
- <if test='projId != null'>PROJ_ID = #{projId},</if>
- <if test='groupLeaderId != null'>GROUP_LEADER_ID = #{groupLeaderId},</if>
- <if test='groupLeaderName != null'>GROUP_LEADER_NAME = #{groupLeaderName},</if>
- <if test='orgLeader != null'>ORG_LEADER = #{orgLeader},</if>
- <if test='businessLevel != null'>BUSINESS_LEVEL = #{businessLevel},</if>
- <if test='cphsManage != null'>CPHS_MANAGE = #{cphsManage},</if>
- <if test='workStyle != null'>WORK_STYLE = #{workStyle},</if>
- <if test='oneVeto != null'>ONE_VETO = #{oneVeto},</if>
- <if test='score != null'>SCORE = #{score}, BACKUP = null,</if>
- <if test='evalLevel != null'>EVAL_LEVEL = #{evalLevel},</if>
- <if test='note != null'>NOTE = #{note},</if>
- <if test='uptm != null'>UPTM = #{uptm},</if>
- </trim>
- where ID = #{id}
- </update>
- <!-- 条件更新 -->
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader">
- update TAC_EVALUATION_GROUP_LEADER
- <trim prefix="SET" suffixOverrides=",">
- <if test='orgId != null'>ORG_ID = #{orgId},</if>
- <if test='adCode != null'>AD_CODE = #{adCode},</if>
- <if test='groupId != null'>GROUP_ID = #{groupId},</if>
- <if test='projId != null'>PROJ_ID = #{projId},</if>
- <if test='groupLeaderId != null'>GROUP_LEADER_ID = #{groupLeaderId},</if>
- <if test='groupLeaderName != null'>GROUP_LEADER_NAME = #{groupLeaderName},</if>
- <if test='orgLeader != null'>ORG_LEADER = #{orgLeader}, </if>
- <if test='businessLevel != null'>BUSINESS_LEVEL = #{businessLevel},</if>
- <if test='cphsManage != null'>CPHS_MANAGE = #{cphsManage},</if>
- <if test='workStyle != null'>WORK_STYLE = #{workStyle},</if>
- <if test='oneVeto != null'>ONE_VETO = #{oneVeto},</if>
- <if test='score != null'>SCORE = #{score},BACKUP = null,</if>
- <if test='evalLevel != null'>EVAL_LEVEL = #{evalLevel},</if>
- <if test='note != null'>NOTE = #{note},</if>
- <if test='uptm != null'>UPTM = #{uptm},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- <resultMap type="cn.com.goldenwater.dcproj.vo.TacEvaluationGroupLeaderVo" id="tacEvaluationGroupLeaderResultVoMap">
- <result property="id" column="ID" />
- <result property="groupId" column="GROUP_ID" />
- <result property="projId" column="PROJ_ID" />
- <result property="projName" column="PROJ_NM" />
- <result property="groupLeaderId" column="GROUP_LEADER_ID" />
- <result property="groupLeaderName" column="GROUP_LEADER_NAME" />
- <result property="mobilenumb" column="MOBILENUMB" />
- <result property="freq" column="FREQ" />
- <result property="orgLeader" column="ORG_LEADER" />
- <result property="businessLevel" column="BUSINESS_LEVEL" />
- <result property="cphsManage" column="CPHS_MANAGE" />
- <result property="workStyle" column="WORK_STYLE" />
- <result property="oneVeto" column="ONE_VETO" />
- <result property="score" column="SCORE" />
- <result property="evalLevel" column="EVAL_LEVEL" />
- <result property="note" column="NOTE" />
- <result property="backUp" column="BACKUP" />
- <result property="persId" column="PERS_ID" />
- <result property="grader" column="GRADER" />
- <result property="intm" column="INTM" />
- <result property="jctm" column="JCTM" />
- <result property="modifyFlag" column="MODIFYFLAG" />
- </resultMap>
- <!-- 查询小组里的人员列表 筛选出角色为 稽查专家、稽查助理、稽查组长、稽查特派员 -->
- <select id="selectEavlPersListByGroupId" parameterType="cn.com.goldenwater.dcproj.param.TacEvaluationGroupLeaderParam" resultMap="tacEvaluationGroupLeaderResultVoMap">
- select eee.ID as ID, r.GROUP_ID, r.PERS_ID as GROUP_LEADER_ID, r.PERS_NM as GROUP_LEADER_NAME,
- eee.ORG_LEADER, eee.BUSINESS_LEVEL, eee.CPHS_MANAGE, eee.WORK_STYLE, eee.ONE_VETO, eee.SCORE , eee.EVAL_LEVEL , eee.NOTE
- from (
- select
- iybgp.GROUP_ID,
- wb.LOGIN_ID as PERS_ID,
- wb.NAME as PERS_NM
- from TAC_INSP_YEAR_BATCH_GROUP_PERS iybgp
- ,TAC_WORKER_B wb
- where iybgp.DATA_STAT = '0'
- and wb.ID = iybgp.PERS_ID
- and iybgp.GROUP_ID = #{groupId}
- <!-- 专家组长 -->
- and iybgp.ROLE_TYPE = '20'
- ) r
- left join TAC_EVALUATION_GROUP_LEADER eee on eee.GROUP_ID = r.GROUP_ID and eee.GROUP_LEADER_ID = r.PERS_ID and eee.PERS_ID = #{persId}
- <if test='null != projId and "" != projId'>
- and eee.PROJ_ID = #{projId}
- </if>
- </select>
- <!-- 查询外聘专家的测评结果 -->
- <select id="findEvaluationResult" parameterType="cn.com.goldenwater.dcproj.param.TacEvaluationGroupLeaderParam" resultMap="tacEvaluationGroupLeaderResultVoMap">
- select t.* , wb.MOBILENUMB
- from (select count(ID) as FREQ , round(avg(SCORE),2) as SCORE ,GROUP_LEADER_ID ,GROUP_LEADER_NAME
- from TAC_EVALUATION_GROUP_LEADER
- <include refid="page_where"/>
- group by GROUP_LEADER_ID ,GROUP_LEADER_NAME)t
- left join tac_worker_b wb on wb.ID = t.GROUP_LEADER_ID
- <trim prefix="where" prefixOverrides="and | or ">
- <if test='null !=mobilenumb and ""!= mobilenumb '>
- and wb.MOBILENUMB like '%${mobilenumb}%'
- </if>
- </trim>
- order by t.SCORE desc
- </select>
- <select id="findEvaluationResult2" parameterType="cn.com.goldenwater.dcproj.param.TacEvaluationGroupLeaderParam" resultMap="tacEvaluationGroupLeaderResultVoMap">
- select t.* from (
- select a.GROUP_LEADER_ID,b.NAME as GROUP_LEADER_NAME,b.MOBILENUMB,a.SCORE as SCORE,c.YEAR,
- (select count(ID) as FREQ from TAC_EVALUATION_GROUP_LEADER where PERS_ID is null and GROUP_LEADER_ID=a.GROUP_LEADER_ID) as FREQ
- from (
- select round(avg(SCORE),2) as SCORE, GROUP_LEADER_ID from TAC_EVALUATION_GROUP_LEADER where PERS_ID is null
- group by GROUP_LEADER_ID
- ) a left join TAC_WORKER_B b on a.GROUP_LEADER_ID=b.LOGIN_ID
- left join (
- select distinct a.GROUP_LEADER_ID,c.YEAR from TAC_EVALUATION_GROUP_LEADER a
- left join TAC_PAWP_RGSTR b on a.PROJ_ID=b.OBJ_ID
- left join TAC_INSP_YEAR_BATCH_GROUP_PERS c on b.GROUP_ID=c.GROUP_ID
- where a.PERS_ID is null
- ) c on a.GROUP_LEADER_ID=c.GROUP_LEADER_ID
- ) t
- where 1=1
- <if test='groupLeaderName != null and groupLeaderName != ""'> and t.GROUP_LEADER_NAME like '%${groupLeaderName}%'</if>
- <if test='null !=mobilenumb and ""!= mobilenumb '> and t.MOBILENUMB like '%${mobilenumb}%'</if>
- <if test='null != batchYear and "" != batchYear '> and t.YEAR = #{batchYear}</if>
- order by t.SCORE desc
- </select>
- <!-- 查询外聘专家的测评记录 -->
- <select id="findEvaluationResultDetails" parameterType="cn.com.goldenwater.dcproj.param.TacEvaluationGroupLeaderParam" resultMap="tacEvaluationGroupLeaderResultVoMap">
- select
- egl.ID,
- egl.ORG_ID,
- egl.AD_CODE,
- egl.GROUP_ID,
- egl.PROJ_ID,
- egl.GROUP_LEADER_ID,
- egl.GROUP_LEADER_NAME,
- egl.ORG_LEADER,
- egl.BUSINESS_LEVEL,
- egl.CPHS_MANAGE,
- egl.WORK_STYLE,
- egl.ONE_VETO,
- egl.SCORE,
- egl.EVAL_LEVEL,
- egl.NOTE,
- egl.PERS_ID,
- egl.INTM,
- egl.BACKUP,
- iybo.OJB_NM as PROJ_NM
- <if test='null == projId or "" == projId'>
- ,CONCAT(DATE_FORMAT(iybg.ST_TM,'%Y-%m-%d'),'至',DATE_FORMAT(iybg.EN_TM ,'%Y-%m-%d') )as JCTM
- ,(CASE WHEN egl.BACKUP is null THEN '0' ELSE '1' END) AS "MODIFYFLAG"
- </if>
- <if test='projId != null and projId != ""'>
- ,twb.NAME as GRADER
- </if>
- from TAC_EVALUATION_GROUP_LEADER egl
- left join tac_insp_year_batch_obj iybo on iybo.ID = egl.PROJ_ID and iybo.DATA_STAT='0'
- <if test=' null == projId or "" == projId'>
- left join TAC_INSP_YEAR_BATCH_GROUP iybg on iybg.ID = egl.GROUP_ID
- </if>
- <if test='projId != null and projId != ""'>
- left join TAC_WORKER_B twb on twb.LOGIN_ID = egl.PERS_ID
- </if>
- <trim prefix="where" prefixOverrides="and | or ">
- <if test='orgId != null and orgId != ""'> and egl.ORG_ID = #{orgId}</if>
- <if test='adCode != null and adCode != ""'> and egl.AD_CODE like '${adCode}%'</if>
- <if test='groupId != null and groupId != ""'> and egl.GROUP_ID = #{groupId}</if>
- <if test='projId != null and projId != ""'> and egl.PROJ_ID = #{projId}</if>
- <if test='groupLeaderId != null and groupLeaderId != ""'> and egl.GROUP_LEADER_ID = #{groupLeaderId}</if>
- <if test='groupLeaderName != null and groupLeaderName != ""'> and egl.GROUP_LEADER_NAME like '%${groupLeaderName}%'</if>
- <if test='orgLeader != null '> and egl.ORG_LEADER = #{orgLeader}</if>
- <if test='businessLevel != null '> and egl.BUSINESS_LEVEL = #{businessLevel}</if>
- <if test='cphsManage != null '> and egl.CPHS_MANAGE = #{cphsManage}</if>
- <if test='workStyle != null '> and egl.WORK_STYLE = #{workStyle}</if>
- <if test='oneVeto != null and oneVeto != ""'> and egl.ONE_VETO = #{oneVeto}</if>
- <if test='score != null '> and egl.SCORE = #{score}</if>
- <if test='evalLevel != null and evalLevel != ""'> and egl.EVAL_LEVEL = #{evalLevel}</if>
- <if test='persId != null and persId != ""'> and egl.PERS_ID = #{persId}</if>
- <if test='intm != null '> and DATE_FORMAT(egl.INTM,'%Y-%m-%d') = DATE_FORMAT(#{intm},'%Y-%m-%d')</if>
- </trim>
- </select>
- <select id="findEvaluationResultDetails2" parameterType="java.lang.String" resultMap="tacEvaluationGroupLeaderResultVoMap">
- select
- egl.ID,egl.PROJ_ID,egl.PERS_ID,egl.ONE_VETO,egl.GROUP_LEADER_ID,egl.GROUP_LEADER_NAME,egl.ORG_LEADER,egl.BUSINESS_LEVEL,egl.CPHS_MANAGE,egl.WORK_STYLE,egl.SCORE,egl.EVAL_LEVEL,egl.NOTE,egl.BACKUP,
- ccc.NAME as PROJ_NM,
- CONCAT( DATE_FORMAT(iybg.ST_TM,'%Y-%m-%d'),'至',DATE_FORMAT(iybg.EN_TM ,'%Y-%m-%d') ) as JCTM
- <if test='projId != null and projId != ""'>
- ,twb.NAME as GRADER
- </if>
- from TAC_EVALUATION_GROUP_LEADER egl
- left join TAC_PAWP_RGSTR ccc on ccc.OBJ_ID=egl.PROJ_ID
- left join TAC_INSP_YEAR_BATCH_GROUP iybg on iybg.ID = ccc.GROUP_ID
- <if test='projId != null and projId != ""'>
- left join TAC_WORKER_B twb on twb.LOGIN_ID = egl.PERS_ID
- </if>
- where egl.GROUP_LEADER_ID=#{groupLeaderId}
- <if test=' projId!=null and projId!="" '>
- and egl.PROJ_ID = #{projId} and egl.PERS_ID is not null
- </if>
- <if test=' projId==null or projId=="" '>
- and egl.PERS_ID is null
- </if>
- </select>
- <!-- 修改 可恢复 -->
- <update id="updateScoreById" parameterType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader">
- update TAC_EVALUATION_GROUP_LEADER
- <trim prefix="SET" suffixOverrides=",">
- <if test='orgLeader != null'>ORG_LEADER = #{orgLeader},</if>
- <if test='businessLevel != null'>BUSINESS_LEVEL = #{businessLevel},</if>
- <if test='cphsManage != null'>CPHS_MANAGE = #{cphsManage},</if>
- <if test='workStyle != null'>WORK_STYLE = #{workStyle},</if>
- <if test='score != null'>SCORE = #{score},</if>
- <if test='evalLevel != null'>EVAL_LEVEL = #{evalLevel},</if>
- <if test='note != null'>NOTE = #{note},</if>
- BACKUP = CONCAT(ORG_LEADER,',',BUSINESS_LEVE,',',CPHS_MANAGE,',',WORK_STYLE,',',SCORE,',',EVAL_LEVEL,',',NOTE ),
- UPTM = sysdate()
- </trim>
- where ID = #{id}
- </update>
- <!-- 恢复修改内容 并清空备份 -->
- <update id="revertScoreById" parameterType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader">
- update TAC_EVALUATION_GROUP_LEADER
- set ORG_LEADER = #{orgLeader},
- BUSINESS_LEVEL = #{businessLevel},
- CPHS_MANAGE = #{cphsManage},
- WORK_STYLE = #{workStyle},
- SCORE = #{score},
- EVAL_LEVEL = #{evalLevel},
- NOTE = #{note},
- BACKUP = null,
- UPTM = sysdate()
- where ID = #{id}
- </update>
- <select id="selectOneDetailByProjIdAndGroupLeaderId" parameterType="java.lang.String" resultType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader">
- select * from TAC_EVALUATION_GROUP_LEADER
- where PROJ_ID=#{projId} and GROUP_LEADER_ID=#{groupLeaderId} and PERS_ID is null
- </select>
- <select id="selectHjScoreByProjIdAndGroupLeaderId" parameterType="java.lang.String" resultType="cn.com.goldenwater.dcproj.model.TacEvaluationGroupLeader">
- select
- round(avg(ORG_LEADER),2)ORG_LEADER,
- round(avg(BUSINESS_LEVEL),2)BUSINESS_LEVEL,
- round(avg(CPHS_MANAGE),2)CPHS_MANAGE,
- round(avg(WORK_STYLE),2)WORK_STYLE,
- round(avg(SCORE),2)SCORE
- from TAC_EVALUATION_GROUP_LEADER
- where PROJ_ID=#{projId} and GROUP_LEADER_ID=#{groupLeaderId} and PERS_ID is not null
- </select>
- </mapper>
|