All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dm.mapper.RetryTaskLogMessageMapper.xml Maven / Gradle / Ivy

<?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">
<mapper namespace="com.aizuda.snailjob.template.datasource.persistence.mapper.RetryTaskLogMessageMapper">

    <update id="updateBatch" parameterType="java.util.List">
        <foreach collection="list" item="item" index="index" open="BEGIN" separator=";" close=";END;">
            UPDATE sj_retry_task_log_message
               SET message = #{item.message}, log_num = #{item.logNum},
                   update_dt = CURRENT_TIMESTAMP
             WHERE id = #{item.id}
        </foreach>
    </update>

</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy