<?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.PreventDangerCheckContentRepository">
|
|
<resultMap id="BaseResultMap" type="com.gkhy.safePlatform.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.gkhy.safePlatform.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.gkhy.safePlatform.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>
|