A.oc_id, A.risk_point_id, A.checklist_id, A.hazard_id, A.status, B.hazard_title, B.hazard_code, B.hazard_image, B.hazard_desc, B.hazard_type_id, C.hazard_type_title, B.hazard_level INSERT INTO ent_risk_point_hazard oc_id, risk_point_id, checklist_id, hazard_id, status, created_by, created_at, #{ocId ,jdbcType=BIGINT}, #{riskPointId ,jdbcType=BIGINT}, #{checklistId ,jdbcType=BIGINT}, #{hazardId ,jdbcType=BIGINT}, #{status ,jdbcType=BIGINT}, #{createdBy ,jdbcType=BIGINT}, #{createdAt ,jdbcType=TIMESTAMP}, UPDATE ent_risk_point_hazard is_enabled = #{status, jdbcType=BIGINT}, updated_by = #{updatedBy ,jdbcType=BIGINT}, updated_at = #{updatedAt ,jdbcType=TIMESTAMP}, WHERE 1 = 1 AND oc_id = #{ocId ,jdbcType=BIGINT} AND risk_point_id = #{riskPointId ,jdbcType=BIGINT} AND hazard_id = #{hazardId ,jdbcType=BIGINT} DELETE from ent_risk_point_hazard WHERE 1 = 1 AND oc_id = #{ocId ,jdbcType=BIGINT} AND risk_point_id = #{riskPointId ,jdbcType=BIGINT} AND checklist_id = #{checklistId ,jdbcType=BIGINT} AND hazard_id = #{hazardId ,jdbcType=BIGINT}