| | |
| | | insert into prevent_risk_check_unit values(null, #{uuid}, #{baseCheckPointId}, #{controlMeasureId}, #{riskId})
|
| | | </insert>
|
| | |
|
| | |
|
| | | <update id="updateRiskCheckUnitById">
|
| | | update prevent_risk_control_measure
|
| | | <set>
|
| | | <if test="baseCheckPointId != null ">
|
| | | base_check_point_id = #{baseCheckPointId},
|
| | | </if>
|
| | | <if test="controlMeasureId != null">
|
| | | control_measure_id = #{controlMeasureId},
|
| | | </if>
|
| | | <if test="riskId != null">
|
| | | risk_id = #{riskId},
|
| | | </if>
|
| | | </set>
|
| | | </update>
|
| | |
|
| | |
|
| | | <delete id="deleteRiskCheckUnitByCheckPointIds">
|
| | | delete from prevent_risk_control_measure where base_check_point_id in
|
| | | <foreach item="checkPointId" collection="array" open="(" separator="," close=")">
|
| | | #{checkPointId}
|
| | | </foreach>
|
| | | </delete>
|
| | |
|
| | |
|
| | | <select id="getPointAndMeasureByPointId"
|
| | | resultMap="BaseResultMap">
|
| | | select *
|
| | | from prevent_risk_check_unit
|
| | | where base_check_point_id = #{checkPointId}
|
| | | </select>
|
| | |
|
| | | </mapper>
|