双重预防项目-国泰新华二开定制版
16639036659
2023-05-22 234d5e479fa1938566c80ff00f0cc63514871090
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
<?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.doublePrevention.repository.PreventRiskDangerCheckAndMeasureRepository" >
 
    <resultMap id="BaseResultMap" type="com.ruoyi.doublePrevention.entity.PreventRiskDangerCheckAndMeasure">
        <id column="id" property="id"/>
        <result column="check_id" property="checkId" />
        <result column="danger_check_point_id" property="dangerCheckPointId" />
        <result column="base_check_point_id" property="baseCheckPointId" />
        <result column="control_measure_id" property="controlMeasureId"/>
        <result column="check_content" property="checkContent"/>
        <result column="check_result" property="checkResult"/>
    </resultMap>
 
<!--    int insertCheckAndMeasure(PreventRiskDangerCheckAndMeasure checkAndMeasure);-->
    <insert id="insertCheckAndMeasure">
        insert into prevent_risk_danger_check_and_measure values
        (null, #{checkId}, #{dangerCheckPointId}, #{baseCheckPointId}, #{controlMeasureId}, #{checkContent}, #{checkResult})
    </insert>
 
<!--    List<PreventRiskDangerCheckAndMeasure> getByBaseCheckPointId(Long checkPointId);-->
    <select id="getByBaseCheckPointId" resultMap="BaseResultMap">
        select * from  prevent_risk_danger_check_and_measure
        where base_check_point_id = #{checkPointId}
    </select>
</mapper>