Browse Source

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

Signed-off-by: Gallardot <gallardot@apache.org>
Co-authored-by: xiangzihao <460888207@qq.com>
3.2.1-prepare
Gallardot 1 year ago committed by GitHub
parent
commit
a5f5aacb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertSendStatusMapper.xml

7
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertSendStatusMapper.xml

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

Loading…
Cancel
Save