13693261870
2025-07-02 6708810c4de34dfb9513061432d656f91d56ee3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?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.DsEffectAssessMapper">
    
    <resultMap type="DsEffectAssess" id="DsEffectAssessResult">
        <result property="PKID"    column="PKID"    />
        <result property="taskId"    column="TASK_ID"    />
        <result property="SCORE"    column="SCORE"    />
        <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="deptId"    column="DEPT_ID"    />
        <result property="type"    column="TYPE"    />
    </resultMap>
 
    <sql id="selectDsEffectAssessVo">
        select PKID, TASK_ID, SCORE, DEL_FLAG, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, REMARK, DEPT_ID,TYPE from ds_effect_assess
    </sql>
 
    <select id="selectDsEffectAssessList" parameterType="DsEffectAssess" resultMap="DsEffectAssessResult">
        <include refid="selectDsEffectAssessVo"/>
        <where>  
            <if test="PKID != null  and PKID != ''"> and PKID = #{PKID}</if>
            <if test="taskId != null  and taskId != ''"> and TASK_ID = #{taskId}</if>
            <if test="SCORE != null "> and SCORE = #{SCORE}</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="deptId != null  and deptId != ''"> and DEPT_ID = #{deptId}</if>
        </where>
    </select>
    
    <select id="selectDsEffectAssessByPKID" parameterType="String" resultMap="DsEffectAssessResult">
        <include refid="selectDsEffectAssessVo"/>
        where PKID = #{PKID}
    </select>
 
    <insert id="insertDsEffectAssess" parameterType="DsEffectAssess">
        insert into ds_effect_assess
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="PKID != null and PKID != ''">PKID,</if>
            <if test="taskId != null">TASK_ID,</if>
            <if test="SCORE != null">SCORE,</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="deptId != null">DEPT_ID,</if>
            <if test="type != null">TYPE,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="PKID != null and PKID != ''">#{PKID},</if>
            <if test="taskId != null">#{taskId},</if>
            <if test="SCORE != null">#{SCORE},</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="deptId != null">#{deptId},</if>
            <if test="type != null">#{type},</if>
         </trim>
    </insert>
 
    <update id="updateDsEffectAssess" parameterType="DsEffectAssess">
        update ds_effect_assess
        <trim prefix="SET" suffixOverrides=",">
            <if test="taskId != null">TASK_ID = #{taskId},</if>
            <if test="SCORE != null">SCORE = #{SCORE},</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="deptId != null">DEPT_ID = #{deptId},</if>
            <if test="type != null">TYPE = #{type},</if>
        </trim>
        where PKID = #{PKID}
    </update>
 
    <delete id="deleteDsEffectAssessByPKID" parameterType="String">
        delete from ds_effect_assess where PKID = #{PKID}
    </delete>
 
    <delete id="deleteDsEffectAssessByPKIDs" parameterType="String">
        delete from ds_effect_assess where PKID in 
        <foreach item="PKID" collection="array" open="(" separator="," close=")">
            #{PKID}
        </foreach>
    </delete>
 
</mapper>