2024-03-25 08:50:57 +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-06-20 14:34:37 +08:00
|
|
|
<mapper namespace="com.aizuda.snailjob.template.datasource.persistence.mapper.RetryTaskLogMessageMapper">
|
2024-03-25 08:50:57 +08:00
|
|
|
|
2024-06-20 14:34:37 +08:00
|
|
|
<insert id="insertBatch" parameterType="java.util.List" useGeneratedKeys="false">
|
|
|
|
|
INSERT INTO sj_retry_task_log_message (namespace_id, group_name, unique_id, log_num, message,
|
|
|
|
|
create_dt, real_time)
|
2024-07-18 14:52:59 +08:00
|
|
|
<if test="@com.aizuda.snailjob.template.datasource.utils.DbUtils@notOracle()">
|
|
|
|
|
VALUES
|
|
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
|
|
(
|
|
|
|
|
#{item.namespaceId},
|
|
|
|
|
#{item.groupName},
|
|
|
|
|
#{item.uniqueId},
|
|
|
|
|
#{item.logNum},
|
|
|
|
|
#{item.message},
|
|
|
|
|
#{item.createDt},
|
|
|
|
|
#{item.realTime}
|
|
|
|
|
)
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="@com.aizuda.snailjob.template.datasource.utils.DbUtils@isOracle()">
|
|
|
|
|
<foreach collection="list" item="item" separator="UNION ALL">
|
|
|
|
|
SELECT
|
2024-05-20 23:39:11 +08:00
|
|
|
#{item.namespaceId},
|
|
|
|
|
#{item.groupName},
|
2024-06-20 14:34:37 +08:00
|
|
|
#{item.uniqueId},
|
2024-05-20 23:39:11 +08:00
|
|
|
#{item.logNum},
|
|
|
|
|
#{item.message},
|
|
|
|
|
#{item.createDt},
|
|
|
|
|
#{item.realTime}
|
2024-07-18 14:52:59 +08:00
|
|
|
FROM DUAL
|
2024-05-20 23:39:11 +08:00
|
|
|
</foreach>
|
2024-07-18 14:52:59 +08:00
|
|
|
</if>
|
2024-03-25 08:50:57 +08:00
|
|
|
</insert>
|
2024-05-21 00:50:19 +08:00
|
|
|
|
2024-03-25 08:50:57 +08:00
|
|
|
</mapper>
|