双重预防项目-国泰新华二开定制版
16639036659
2023-09-06 ef1fe7f67a9d7d4c94933c0a993e2d9639620239
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
<?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.PreventRiskDangerConfirmLogRepository" >
 
    <resultMap id="BaseResultMap" type="com.ruoyi.doublePrevention.entity.PreventRiskDangerConfirmLog">
        <id column="id" property="id"/>
        <result column="danger_check_point_id" property="dangerCheckPointId" />
        <result column="confirm_user_id" property="confirmUserId"/>
        <result column="confirm_user" property="confirmUser"/>
        <result column="confirm_time" property="confirmTime" />
        <result column="confirm_result" property="confirmResult"/>
        <result column="confirm_opinion" property="confirmOpinion"/>
    </resultMap>
 
<!--    int saveConfirmLog(HiddenDangerCheckPoint hdcp);-->
    <insert id="saveConfirmLog">
        insert into prevent_risk_danger_confirm_log values
        (null, #{dangerCheckPointId}, #{confirmUserId}, #{confirmUser}, #{confirmTime}, null, null)
    </insert>
 
<!--    List<PreventRiskDangerConfirmLog> getLogsByDangerCheckPointId(Long dangerCheckPointId);-->
    <select id="getLogsByDangerCheckPointId" resultMap="BaseResultMap">
        select * from prevent_risk_danger_confirm_log
        where danger_check_point_id = #{dangerCheckPointId}
    </select>
 
    <update id="getLogsByDang1erCheckPointId" parameterType="int">
        update prevent_risk_danger_confirm_log set values
        (null, #{dangerCheckPoint}, #{ni})
    </update>
</mapper>