| | |
| | | <result column="control_measure_id" property="controlMeasureId"/> |
| | | <result column="check_content" property="checkContent"/> |
| | | <result column="check_result" property="checkResult"/> |
| | | <result column="check_desc" property="checkDesc"/> |
| | | </resultMap> |
| | | |
| | | <!-- int insertCheckAndMeasure(PreventRiskDangerCheckAndMeasure checkAndMeasure);--> |
| | | <insert id="insertCheckAndMeasure"> |
| | | insert into prevent_risk_danger_check_and_measure values |
| | | (null, #{checkId}, #{dangerCheckPointId}, #{baseCheckPointId}, #{controlMeasureId}, #{checkContent}, #{checkResult}) |
| | | (null, #{checkId}, #{dangerCheckPointId}, #{baseCheckPointId}, #{controlMeasureId}, #{checkContent}, #{checkResult}, #{checkDesc}) |
| | | </insert> |
| | | |
| | | <!-- List<PreventRiskDangerCheckAndMeasure> getByBaseCheckPointId(Long checkPointId);--> |
| | |
| | | select * from prevent_risk_danger_check_and_measure |
| | | where danger_check_point_id = #{dangerCheckPointId} |
| | | </select> |
| | | <!-- int updateCheckDesc(HiddenDangerCheckPoint hdcp);--> |
| | | <update id="updateCheckDesc"> |
| | | update prevent_risk_danger_check_and_measure |
| | | set check_desc = #{checkDesc} |
| | | where danger_check_point_id = #{id} |
| | | </update> |
| | | <!-- List<PreventRiskDangerCheckAndMeasure> getByCheckId(Long checkId);--> |
| | | <select id="getByCheckId" resultMap="BaseResultMap"> |
| | | select * from prevent_risk_danger_check_and_measure |
| | | where check_id = #{checkId} |
| | | </select> |
| | | </mapper> |