郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
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
<?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.gk.hotwork.doublePrevention.repository.PreventDangerCheckContentRepository">
 
    <resultMap id="BaseResultMap" type="com.gk.hotwork.doublePrevention.entity.PreventDangerCheckContent">
        <id property="id" column="id"/>
        <result property="controlMeasureUuid" column="control_measure_uuid"/>
        <result property="controlMeasureId" column="control_measure_id"/>
        <result property="checkContent" column="check_content"/>
    </resultMap>
 
    <select id="getCheckContentByMeasureId" resultType="com.gk.hotwork.doublePrevention.entity.PreventDangerCheckContent">
        select
            id,
            control_measure_id,
            check_content
        from prevent_danger_check_content
        where control_measure_id = #{measureId}
    </select>
 
    <!--PreventDangerCheckContent getCheckContentByTaskId(Long taskId);-->
    <select id="getCheckContentByTaskId" resultType="com.gk.hotwork.doublePrevention.entity.PreventDangerCheckContent">
        select
            id,
            control_measure_id,
            check_task_id,
            check_content
        from prevent_danger_check_content
        where check_task_id = #{checkTaskId}
    </select>
 
    <!--void updateDangerCheckContent(Long measureId, String checkContent);-->
    <update id="updateDangerCheckContent" >
        update prevent_danger_check_content set
            check_content = #{checkContent}
        where control_measure_id = #{measureId}
    </update>
 
</mapper>