| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?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="examineStaffValueV1ServiceDaoImpl">
- <!-- 保存考核评分信息 add by wuxw 2018-07-03 -->
- <insert id="saveExamineStaffValueInfo" parameterType="Map">
- insert into examine_staff_value(
- owner_name,esv_id,es_id,staff_name,owner_id,community_id,project_id,examine_value,staff_id,room_id,room_name
- ) values (
- #{ownerName},#{esvId},#{esId},#{staffName},#{ownerId},#{communityId},#{projectId},#{examineValue},#{staffId},#{roomId},#{roomName}
- )
- </insert>
- <!-- 查询考核评分信息 add by wuxw 2018-07-03 -->
- <select id="getExamineStaffValueInfo" parameterType="Map" resultType="Map">
- select t.owner_name,t.owner_name ownerName,t.esv_id,t.esv_id esvId,t.es_id,t.es_id
- esId,t.staff_name,t.staff_name staffName,t.status_cd,t.status_cd statusCd,t.owner_id,t.owner_id
- ownerId,t.community_id,t.community_id communityId,t.project_id,t.project_id
- projectId,t.examine_value,t.examine_value examineValue,t.staff_id,t.staff_id staffId,t.room_id,t.room_id
- roomId,t.room_name,t.room_name roomName,t.es_year esYear
- from examine_staff_value t
- where 1 =1
- <if test="ownerName !=null and ownerName != ''">
- and t.owner_name= #{ownerName}
- </if>
- <if test="esvId !=null and esvId != ''">
- and t.esv_id= #{esvId}
- </if>
- <if test="esId !=null and esId != ''">
- and t.es_id= #{esId}
- </if>
- <if test="staffName !=null and staffName != ''">
- and t.staff_name= #{staffName}
- </if>
- <if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
- </if>
- <if test="ownerId !=null and ownerId != ''">
- and t.owner_id= #{ownerId}
- </if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
- <if test="projectId !=null and projectId != ''">
- and t.project_id= #{projectId}
- </if>
- <if test="examineValue !=null and examineValue != ''">
- and t.examine_value= #{examineValue}
- </if>
- <if test="staffId !=null and staffId != ''">
- and t.staff_id= #{staffId}
- </if>
- <if test="roomId !=null and roomId != ''">
- and t.room_id= #{roomId}
- </if>
- <if test="roomName !=null and roomName != ''">
- and t.room_name= #{roomName}
- </if>
- <if test="esYear !=null and esYear != ''">
- and t.es_year= #{esYear}
- </if>
- order by t.create_time desc
- <if test="page != -1 and page != null ">
- limit #{page}, #{row}
- </if>
- </select>
- <!-- 修改考核评分信息 add by wuxw 2018-07-03 -->
- <update id="updateExamineStaffValueInfo" parameterType="Map">
- update examine_staff_value t set t.status_cd = #{statusCd}
- <if test="newBId != null and newBId != ''">
- ,t.b_id = #{newBId}
- </if>
- <if test="ownerName !=null and ownerName != ''">
- , t.owner_name= #{ownerName}
- </if>
- <if test="esId !=null and esId != ''">
- , t.es_id= #{esId}
- </if>
- <if test="staffName !=null and staffName != ''">
- , t.staff_name= #{staffName}
- </if>
- <if test="ownerId !=null and ownerId != ''">
- , t.owner_id= #{ownerId}
- </if>
- <if test="examineValue !=null and examineValue != ''">
- , t.examine_value= #{examineValue}
- </if>
- <if test="roomId !=null and roomId != ''">
- , t.room_id= #{roomId}
- </if>
- <if test="roomName !=null and roomName != ''">
- , t.room_name= #{roomName}
- </if>
- where 1=1
- <if test="esvId !=null and esvId != ''">
- and t.esv_id= #{esvId}
- </if>
- <if test="projectId !=null and projectId != ''">
- and t.project_id= #{projectId}
- </if>
- <if test="staffId !=null and staffId != ''">
- and t.staff_id= #{staffId}
- </if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
- <if test="esYear !=null and esYear != ''">
- and t.es_year= #{esYear}
- </if>
- </update>
- <!-- 查询考核评分数量 add by wuxw 2018-07-03 -->
- <select id="queryExamineStaffValuesCount" parameterType="Map" resultType="Map">
- select count(1) count
- from examine_staff_value t
- where 1 =1
- <if test="ownerName !=null and ownerName != ''">
- and t.owner_name= #{ownerName}
- </if>
- <if test="esvId !=null and esvId != ''">
- and t.esv_id= #{esvId}
- </if>
- <if test="esId !=null and esId != ''">
- and t.es_id= #{esId}
- </if>
- <if test="staffName !=null and staffName != ''">
- and t.staff_name= #{staffName}
- </if>
- <if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
- </if>
- <if test="ownerId !=null and ownerId != ''">
- and t.owner_id= #{ownerId}
- </if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
- <if test="projectId !=null and projectId != ''">
- and t.project_id= #{projectId}
- </if>
- <if test="examineValue !=null and examineValue != ''">
- and t.examine_value= #{examineValue}
- </if>
- <if test="staffId !=null and staffId != ''">
- and t.staff_id= #{staffId}
- </if>
- <if test="roomId !=null and roomId != ''">
- and t.room_id= #{roomId}
- </if>
- <if test="roomName !=null and roomName != ''">
- and t.room_name= #{roomName}
- </if>
- <if test="esYear !=null and esYear != ''">
- and t.es_year= #{esYear}
- </if>
- </select>
- </mapper>
|