[Bug][Alert]batchInsert execption #14686 (#14687)

Signed-off-by: Gallardot <gallardot@apache.org>
Co-authored-by: xiangzihao <460888207@qq.com>
This commit is contained in:
Gallardot 2023-08-03 18:15:09 +08:00 committed by GitHub
parent dec5228d62
commit a5f5aacb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,14 +22,13 @@
<insert id="batchInsert">
insert into t_ds_alert_send_status (alert_id, alert_plugin_instance_id, send_status, log, create_time)
values
<foreach collection="alertSendStatuses" item="alertSendStatus" separator="," open="(" close=")">
#{alertSendStatus.alertId},
<foreach collection="alertSendStatuses" item="alertSendStatus" separator=",">
(#{alertSendStatus.alertId},
#{alertSendStatus.alertPluginInstanceId},
#{alertSendStatus.sendStatus},
#{alertSendStatus.log},
#{alertSendStatus.createTime}
#{alertSendStatus.createTime})
</foreach>
</insert>
<delete id="deleteByAlertIds">