<?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.fs.store.mapper.FsCouponScheduleLogMapper">

    <!-- 其他映射配置... -->

    <insert id="batchInsert" parameterType="java.util.List">
        INSERT INTO fs_coupon_schedule_log (schedule_id, user_id, order_id, status_before, status_after,
        send_time_before, send_time_after, actual_send_time, error_message, retry_count_before,
        retry_count_after, operation_type, operation_time, operator, remark)
        VALUES
        <foreach collection="logs" item="log" separator=",">
            (#{log.scheduleId}, #{log.userId}, #{log.orderId}, #{log.statusBefore}, #{log.statusAfter},
            #{log.sendTimeBefore}, #{log.sendTimeAfter}, #{log.actualSendTime}, #{log.errorMessage},
            #{log.retryCountBefore}, #{log.retryCountAfter}, #{log.operationType}, #{log.operationTime},
            #{log.operator}, #{log.remark})
        </foreach>
    </insert>

</mapper>
