A.oc_id,
A.alert_id,
A.alert_type_id,
A.alert_code,
A.alert_desc,
A.alert_title,
A.alert_time,
A.alert_source,
A.alert_level,
A.handle_time,
A.handle_act,
A.alert_reason,
A.handle_measure,
A.risk_point_id,
G.risk_point_title,
A.handle_account_id,
A.handle_account_name,
A.handle_position_id,
A.handle_position_name,
A.handle_group_id,
A.handle_group_name,
A.status,
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 alert
oc_id,
alert_id,
alert_type_id,
alert_title,
alert_desc,
status,
alert_level,
alert_code,
alert_time,
alert_source,
risk_point_id,
handle_time,
handle_act,
alert_reason,
handle_measure,
handle_group_id,
handle_position_id,
handle_account_id,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{alertId ,jdbcType=BIGINT},
#{alertTypeId ,jdbcType=BIGINT},
#{alertTitle ,jdbcType=VARCHAR},
#{alertDesc ,jdbcType=VARCHAR},
#{status ,jdbcType=BIGINT},
#{alertLevel ,jdbcType=BIGINT},
#{alertCode ,jdbcType=VARCHAR},
#{alertTime ,jdbcType=TIMESTAMP},
#{alertSource ,jdbcType=BIGINT},
#{riskPointId ,jdbcType=BIGINT},
#{handleTime ,jdbcType=TIMESTAMP},
#{handleAct ,jdbcType=BIGINT},
#{alertReason ,jdbcType=VARCHAR},
#{handleMeasure ,jdbcType=VARCHAR},
#{handleGroupId ,jdbcType=BIGINT},
#{handlePositionId ,jdbcType=BIGINT},
#{handleAccountId ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE alert
alert_type_id = #{alertTypeId ,jdbcType=BIGINT},
alert_title =#{alertTitle ,jdbcType=VARCHAR},
alert_desc = #{alertDesc ,jdbcType=VARCHAR},
status = #{status ,jdbcType=BIGINT},
alert_level = #{alertLevel ,jdbcType=BIGINT},
alert_code = #{alertCode ,jdbcType=VARCHAR},
alert_time = #{alertTime ,jdbcType=TIMESTAMP},
alert_source = #{alertSource ,jdbcType=BIGINT},
risk_point_id = #{riskPointId ,jdbcType=BIGINT},
handle_time = #{handleTime ,jdbcType=TIMESTAMP},
handle_act = #{handleAct ,jdbcType=BIGINT},
handle_reason = #{alertReason ,jdbcType=VARCHAR},
handle_measure = #{handleMeasure ,jdbcType=VARCHAR},
handle_group_id = #{handleGroupId ,jdbcType=BIGINT},
handle_position_id = #{handlePositionId ,jdbcType=BIGINT},
handle_account_id = #{handleAccountId ,jdbcType=BIGINT},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE oc_id = #{ocId ,jdbcType=BIGINT} AND alert_id = #{alertId, jdbcType=BIGINT}
UPDATE alert
deleted_by = #{deletedBy ,jdbcType=BIGINT},
deleted_at = #{deletedAt ,jdbcType=DATE},
deleted_flag = #{deletedFlag ,jdbcType=BIGINT},
WHERE oc_id = #{ocId ,jdbcType=BIGINT} AND deleted_flag = 0
AND alert_id = #{alertId ,jdbcType=BIGINT}