package com.cf.imes.module.executor.dal.mysql.heapsplit;

import com.cf.imes.framework.mybatis.core.injector.BaseBatchMapper;
import com.cf.imes.module.executor.dal.dataobject.heapsplit.HeapSplitTaskDetailDO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 分堆任务明细 HeapSplitTaskDetail Mapper
 *
 * @author Gqr
 * @since 2026/3/10 17:28
 */
@Mapper
public interface HeapSplitTaskDetailMapper extends BaseBatchMapper<HeapSplitTaskDetailDO> {
    @Delete("DELETE FROM heap_split_task_detail WHERE task_id = #{taskId} LIMIT #{limit}")
    Integer deleteByLimit(@Param("taskId") Long taskId, @Param("limit") Integer limit);
}
