郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
<?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.gkhy.safePlatform.doublePrevention.repository.PreventWorkAndMeasureRepository">
 
    <resultMap id="BaseResultMap" type="com.gkhy.safePlatform.doublePrevention.entity.PreventWorkAndMeasure">
        <id property="id" column="id"/>
        <result property="measureUuid" column="measure_uuid"/>
        <result property="workUuid" column="work_uuid"/>
    </resultMap>
 
 
 
    <delete id="updateWorkAndMeasure">
        delete from prevent_work_and_measure
        where work_uuid = #{workUuid}
    </delete>
 
    <!--PreventWorkAndMeasure getWorkAndMeasure(String workUuid, String measureUuid);-->
    <select id="getWorkAndMeasure" resultType="com.gkhy.safePlatform.doublePrevention.entity.PreventWorkAndMeasure">
        select * from prevent_work_and_measure
        where work_uuid = #{workUuid} and measure_uuid = #{measureUuid}
    </select>
 
<!--    PreventWorkAndMeasure getWorkAndMeasureByWorkUuid(String workUuid);-->
    <select id="getWorkAndMeasureByWorkUuid" resultMap="BaseResultMap">
        select * from prevent_work_and_measure
        where work_uuid = #{workUuid}
    </select>
 
</mapper>