| | |
| | | <?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>
|
| | |
|
| | |
|
| | |
|
| | | <?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> |
| | | |
| | | |
| | | |