<?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.ruoyi.buss.mapper.DsEffectAssessHisMapper">
|
|
<resultMap type="DsEffectAssessHis" id="DsEffectAssessHisResult">
|
<result property="PKID" column="PKID" />
|
<result property="taskId" column="TASK_ID" />
|
<result property="TYPE" column="TYPE" />
|
<result property="delFlag" column="DEL_FLAG" />
|
<result property="createBy" column="CREATE_BY" />
|
<result property="createTime" column="CREATE_TIME" />
|
<result property="updateBy" column="UPDATE_BY" />
|
<result property="updateTime" column="UPDATE_TIME" />
|
<result property="remark" column="REMARK" />
|
<result property="PLAN" column="PLAN" />
|
<result property="ITEM" column="ITEM" />
|
<result property="itemDetail" column="ITEM_DETAIL" />
|
<result property="UNIT" column="UNIT" />
|
<result property="CODE" column="CODE" />
|
<result property="NORMAL" column="NORMAL" />
|
<result property="WEIGHT" column="WEIGHT" />
|
<result property="classifyIndex" column="CLASSIFY_INDEX" />
|
<result property="classifyWeight" column="CLASSIFY_WEIGHT" />
|
<result property="val" column="VAL" />
|
<result property="deptId" column="DEPT_ID" />
|
</resultMap>
|
|
<sql id="selectDsEffectAssessHisVo">
|
select PKID, TASK_ID, TYPE, DEL_FLAG, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, REMARK, PLAN, ITEM, ITEM_DETAIL, UNIT, CODE, NORMAL, WEIGHT, CLASSIFY_INDEX, CLASSIFY_WEIGHT, VAL, DEPT_ID from ds_effect_assess_his
|
</sql>
|
|
<select id="selectDsEffectAssessHisList" parameterType="DsEffectAssessHis" resultMap="DsEffectAssessHisResult">
|
<include refid="selectDsEffectAssessHisVo"/>
|
<where>
|
<if test="PKID != null and PKID != ''"> and PKID = #{PKID}</if>
|
<if test="taskId != null and taskId != ''"> and TASK_ID = #{taskId}</if>
|
<if test="TYPE != null and TYPE != ''"> and TYPE = #{TYPE}</if>
|
<if test="delFlag != null and delFlag != ''"> and DEL_FLAG = #{delFlag}</if>
|
<if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
|
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
|
<if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
|
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
<if test="remark != null and REMARK != ''"> and REMARK = #{REMARK}</if>
|
<if test="PLAN != null and PLAN != ''"> and PLAN = #{PLAN}</if>
|
<if test="ITEM != null and ITEM != ''"> and ITEM = #{ITEM}</if>
|
<if test="itemDetail != null and itemDetail != ''"> and ITEM_DETAIL = #{itemDetail}</if>
|
<if test="UNIT != null and UNIT != ''"> and UNIT = #{UNIT}</if>
|
<if test="CODE != null and CODE != ''"> and CODE = #{CODE}</if>
|
<if test="NORMAL != null and NORMAL != ''"> and NORMAL = #{NORMAL}</if>
|
<if test="WEIGHT != null "> and WEIGHT = #{WEIGHT}</if>
|
<if test="classifyIndex != null and classifyIndex != ''"> and CLASSIFY_INDEX = #{classifyIndex}</if>
|
<if test="classifyWeight != null "> and CLASSIFY_WEIGHT = #{classifyWeight}</if>
|
<if test="deptId != null "> and DEPT_ID = #{deptId}</if>
|
</where>
|
</select>
|
|
<select id="selectDsEffectAssessHisByPKID" parameterType="String" resultMap="DsEffectAssessHisResult">
|
<include refid="selectDsEffectAssessHisVo"/>
|
where PKID = #{PKID}
|
</select>
|
|
<insert id="insertDsEffectAssessHis" parameterType="DsEffectAssessHis">
|
insert into ds_effect_assess_his
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="PKID != null and PKID != ''">PKID,</if>
|
<if test="taskId != null">TASK_ID,</if>
|
<if test="TYPE != null">TYPE,</if>
|
<if test="delFlag != null">DEL_FLAG,</if>
|
<if test="createBy != null">CREATE_BY,</if>
|
<if test="createTime != null">CREATE_TIME,</if>
|
<if test="updateBy != null">UPDATE_BY,</if>
|
<if test="updateTime != null">UPDATE_TIME,</if>
|
<if test="remark != null">REMARK,</if>
|
<if test="PLAN != null">PLAN,</if>
|
<if test="ITEM != null">ITEM,</if>
|
<if test="itemDetail != null">ITEM_DETAIL,</if>
|
<if test="UNIT != null">UNIT,</if>
|
<if test="CODE != null">CODE,</if>
|
<if test="NORMAL != null">NORMAL,</if>
|
<if test="WEIGHT != null">WEIGHT,</if>
|
<if test="classifyIndex != null">CLASSIFY_INDEX,</if>
|
<if test="classifyWeight != null">CLASSIFY_WEIGHT,</if>
|
<if test="val != null">VAL,</if>
|
<if test="deptId != null">DEPT_ID,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="PKID != null and PKID != ''">#{PKID},</if>
|
<if test="taskId != null">#{taskId},</if>
|
<if test="TYPE != null">#{TYPE},</if>
|
<if test="delFlag != null">#{delFlag},</if>
|
<if test="createBy != null">#{createBy},</if>
|
<if test="createTime != null">#{createTime},</if>
|
<if test="updateBy != null">#{updateBy},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
<if test="remark != null">#{REMARK},</if>
|
<if test="PLAN != null">#{PLAN},</if>
|
<if test="ITEM != null">#{ITEM},</if>
|
<if test="itemDetail != null">#{itemDetail},</if>
|
<if test="UNIT != null">#{UNIT},</if>
|
<if test="CODE != null">#{CODE},</if>
|
<if test="NORMAL != null">#{NORMAL},</if>
|
<if test="WEIGHT != null">#{WEIGHT},</if>
|
<if test="classifyIndex != null">#{classifyIndex},</if>
|
<if test="classifyWeight != null">#{classifyWeight},</if>
|
<if test="val != null">#{val},</if>
|
<if test="deptId != null">#{deptId},</if>
|
</trim>
|
</insert>
|
|
<update id="updateDsEffectAssessHis" parameterType="DsEffectAssessHis">
|
update ds_effect_assess_his
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="taskId != null">TASK_ID = #{taskId},</if>
|
<if test="TYPE != null">TYPE = #{TYPE},</if>
|
<if test="delFlag != null">DEL_FLAG = #{delFlag},</if>
|
<if test="createBy != null">CREATE_BY = #{createBy},</if>
|
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
<if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
|
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
<if test="remark != null">REMARK = #{REMARK},</if>
|
<if test="PLAN != null">PLAN = #{PLAN},</if>
|
<if test="ITEM != null">ITEM = #{ITEM},</if>
|
<if test="itemDetail != null">ITEM_DETAIL = #{itemDetail},</if>
|
<if test="UNIT != null">UNIT = #{UNIT},</if>
|
<if test="CODE != null">CODE = #{CODE},</if>
|
<if test="NORMAL != null">NORMAL = #{NORMAL},</if>
|
<if test="WEIGHT != null">WEIGHT = #{WEIGHT},</if>
|
<if test="classifyIndex != null">CLASSIFY_INDEX = #{classifyIndex},</if>
|
<if test="classifyWeight != null">CLASSIFY_WEIGHT = #{classifyWeight},</if>
|
<if test="val != null">VAL = #{val},</if>
|
<if test="deptId != null">DEPT_ID = #{deptId},</if>
|
</trim>
|
where PKID = #{PKID}
|
</update>
|
|
<delete id="deleteDsEffectAssessHisByPKID" parameterType="String">
|
delete from ds_effect_assess_his where PKID = #{PKID}
|
</delete>
|
|
|
<delete id="deleteDsEffectAssessHisByTaskIdAndDeptId" parameterType="DsEffectAssessHis">
|
delete from ds_effect_assess_his where TASK_ID = #{taskId} and DEPT_ID = #{deptId}
|
</delete>
|
|
<delete id="deleteDsEffectAssessHisByPKIDs" parameterType="String">
|
delete from ds_effect_assess_his where PKID in
|
<foreach item="PKID" collection="array" open="(" separator="," close=")">
|
#{PKID}
|
</foreach>
|
</delete>
|
|
</mapper>
|