2024-03-21 18:34:29 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
2024-04-16 15:03:26 +08:00
|
|
|
<mapper namespace="com.aizuda.snailjob.template.datasource.persistence.mapper.RetryTaskLogMessageMapper">
|
2024-03-21 18:34:29 +08:00
|
|
|
|
2024-05-21 15:16:04 +08:00
|
|
|
<update id="updateBatch" parameterType="java.util.List">
|
2024-05-21 12:54:48 +08:00
|
|
|
UPDATE sj_retry_task_log_message rt,
|
2024-05-20 23:39:11 +08:00
|
|
|
(
|
|
|
|
<foreach collection="list" item="item" index="index" separator="UNION ALL">
|
|
|
|
SELECT
|
2024-05-21 12:54:48 +08:00
|
|
|
#{item.id} AS id,
|
|
|
|
#{item.message} AS message,
|
|
|
|
#{item.logNum} AS log_num
|
2024-05-20 23:39:11 +08:00
|
|
|
</foreach>
|
|
|
|
) tt
|
2024-05-21 12:54:48 +08:00
|
|
|
SET rt.message = tt.message, dest.log_num = tt.log_num
|
|
|
|
WHERE rt.id = tt.id
|
2024-03-21 18:34:29 +08:00
|
|
|
</update>
|
|
|
|
|
|
|
|
</mapper>
|