A.oc_id,
A.danger_id,
A.danger_code,
A.danger_title,
A.danger_cat_id,
B.danger_cat_title,
A.danger_level,
A.danger_deadline,
A.finish_time,
A.danger_source,
A.danger_desc,
A.scene_photo,
A.scene_icon,
A.risk_point_id,
C.risk_point_title,
A.hazard_id,
A.hazard_title,
A.risk_id,
A.risk_title,
A.measure_id,
A.submit_group_id,
A.submit_position_id,
A.submit_account_id,
A.submit_group_name,
A.submit_position_name,
A.submit_account_name,
A.submit_time,
A.submit_remark,
A.review_group_id,
A.review_position_id,
A.review_account_id,
A.review_group_name,
A.review_position_name,
A.review_account_name,
A.review_time,
A.review_remark,
A.rectify_group_id,
A.rectify_position_id,
A.rectify_account_id,
A.rectify_group_name,
A.rectify_position_name,
A.rectify_account_name,
A.rectify_time,
A.danger_reason,
A.rectify_cat,
A.rectify_measure,
A.rectify_remark,
A.status,
A.accept_group_id,
A.accept_position_id,
A.accept_account_id,
A.accept_group_name,
A.accept_position_name,
A.accept_account_name,
A.accept_time,
A.accept_remark,
W.wf_def_id,
W.wf_ins_id,
W.cur_activity_title,
W.cur_activity_code,
W.cur_form_code,
W.cur_activity_ins_id,
W.cur_group_id,
W.cur_activity_begin_time,
W.cur_group_id,
W.cur_group_name,
W.cur_position_id,
W.cur_position_name,
W.cur_account_id,
W.cur_account_name
INSERT INTO ent_danger
oc_id,
group_id,
danger_id,
danger_code,
danger_title,
danger_desc,
danger_cat_id,
danger_level,
status,
danger_deadline,
submit_group_id,
submit_position_id,
submit_account_id,
submit_group_name,
submit_position_name,
submit_account_name,
submit_time,
submit_remark,
danger_source,
risk_point_id,
hazard_id,
hazard_title,
risk_id,
risk_title,
measure_id,
measure_content,
scene_photo,
scene_icon,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{groupId ,jdbcType=BIGINT},
#{dangerId ,jdbcType=BIGINT},
#{dangerCode ,jdbcType=VARCHAR},
#{dangerTitle ,jdbcType=VARCHAR},
#{dangerDesc ,jdbcType=VARCHAR},
#{dangerCatId ,jdbcType=BIGINT},
#{dangerLevel ,jdbcType=BIGINT},
#{status ,jdbcType=BIGINT},
#{dangerDeadLine ,jdbcType=DATE},
#{submitGroupId ,jdbcType=BIGINT},
#{submitPositionId ,jdbcType=BIGINT},
#{submitAccountId ,jdbcType=BIGINT},
#{submitGroupName ,jdbcType=VARCHAR},
#{submitPositionName ,jdbcType=VARCHAR},
#{submitAccountName ,jdbcType=VARCHAR},
#{submitTime ,jdbcType=DATE},
#{submitRemark ,jdbcType=VARCHAR},
#{dangerSource ,jdbcType=BIGINT},
#{riskPointId ,jdbcType=BIGINT},
#{hazardId ,jdbcType=BIGINT},
#{hazardTitle ,jdbcType=VARCHAR},
#{riskId ,jdbcType=BIGINT},
#{riskTitle ,jdbcType=VARCHAR},
#{measureId ,jdbcType=BIGINT},
#{measureContent ,jdbcType=VARCHAR},
#{scenePhoto ,jdbcType=VARCHAR},
#{sceneIcon ,jdbcType=VARCHAR},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE ent_danger
group_id = #{groupId ,jdbcType=BIGINT},
danger_code = #{dangerCode ,jdbcType=VARCHAR},
danger_title = #{dangerTitle, jdbcType=VARCHAR},
danger_desc = #{dangerDesc, jdbcType=VARCHAR},
danger_cat_id = #{dangerCatId ,jdbcType=BIGINT},
danger_level = #{dangerLevel ,jdbcType=BIGINT},
status = #{status ,jdbcType=BIGINT},
danger_deadline = #{dangerDeadLine ,jdbcType=DATE},
submit_group_id = #{submitGroupId ,jdbcType=BIGINT},
submit_position_id = #{submitPositionId ,jdbcType=BIGINT},
submit_account_id = #{submitAccountId ,jdbcType=BIGINT},
submit_group_name = #{submitGroupName ,jdbcType=VARCHAR},
submit_position_name = #{submitPositionName ,jdbcType=VARCHAR},
submit_account_name = #{submitAccountName ,jdbcType=VARCHAR},
submit_time = #{submitTime ,jdbcType=DATE},
submit_remark = #{submitRemark ,jdbcType=VARCHAR},
review_group_id = #{reviewGroupId ,jdbcType=BIGINT},
review_position_id = #{reviewPositionId ,jdbcType=BIGINT},
review_account_id = #{reviewAccountId ,jdbcType=BIGINT},
review_group_name = #{reviewGroupName ,jdbcType=VARCHAR},
review_position_name = #{reviewPositionName ,jdbcType=VARCHAR},
review_account_name = #{reviewAccountName ,jdbcType=VARCHAR},
review_time = #{reviewTime ,jdbcType=DATE},
review_remark = #{reviewRemark ,jdbcType=VARCHAR},
rectify_group_id = #{rectifyGroupId ,jdbcType=BIGINT},
rectify_position_id = #{rectifyPositionId ,jdbcType=BIGINT},
rectify_account_id = #{rectifyAccountId ,jdbcType=BIGINT},
rectify_group_name = #{rectifyGroupName ,jdbcType=VARCHAR},
rectify_position_name = #{rectifyPositionName ,jdbcType=VARCHAR},
rectify_account_name = #{rectifyAccountName ,jdbcType=VARCHAR},
danger_reason = #{dangerReason, jdbcType=VARCHAR},
rectify_cat = #{rectifyCat ,jdbcType=BIGINT},
rectify_measure = #{rectifyMeasure, jdbcType=VARCHAR},
rectify_time = #{rectifyTime ,jdbcType=DATE},
rectify_remark = #{rectifyRemark, jdbcType=VARCHAR},
accept_group_id = #{acceptGroupId ,jdbcType=BIGINT},
accept_position_id = #{acceptPositionId ,jdbcType=BIGINT},
accept_account_id = #{acceptAccountId ,jdbcType=BIGINT},
accept_group_name = #{acceptGroupName ,jdbcType=VARCHAR},
accept_position_name = #{acceptPositionName ,jdbcType=VARCHAR},
accept_account_name = #{acceptAccountName ,jdbcType=VARCHAR},
accept_time = #{acceptTime ,jdbcType=DATE},
accept_remark = #{acceptRemark ,jdbcType=VARCHAR},
scene_phone = #{scenePhoto ,jdbcType=VARCHAR},
scene_icon = #{sceneIcon ,jdbcType=VARCHAR},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE oc_id = #{ocId ,jdbcType=BIGINT}
AND danger_id = #{dangerId ,jdbcType=BIGINT}
UPDATE ent_danger
deleted_flag = #{deletedFlag ,jdbcType=BIGINT},
deleted_time = #{deletedTime ,jdbcType=VARCHAR},
deleted_by = #{deletedBy ,jdbcType=BIGINT},
WHERE oc_id = #{ocId ,jdbcType=BIGINT}
AND danger_cat_id = #{dangerCatId ,jdbcType=BIGINT}
AND danger_id = #{dangerId ,jdbcType=BIGINT}