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

org.shoulder.batch.repository.mapper.BatchRecordMapper Maven / Gradle / Ivy

package org.shoulder.batch.repository.mapper;

import org.shoulder.batch.model.BatchRecord;

import java.util.List;
import java.util.Map;

/**
 * 批量处理记录mapper
 *
 * @author lym
 */
public interface BatchRecordMapper {

    /**
     * 单条插入
     *
     * @param record 批量处理记录
     */
    void insert(BatchRecord record);

    /**
     * 根据 任务标识 获取批处理记录
     *
     * @param recordId 主键
     * @return 记录
     */
    BatchRecord findById(String recordId);

    /**
     * 根据条件分页查询批处理记录
     *
     * @param condition tableName, userCode
     * @return 查询结果
     */
    List findByPage(Map condition);

    /**
     * 根据用户编码查询最近批处理的记录
     *
     * @param condition tableName, userCode, flag
     * @return 上次批量处理记录
     */
    BatchRecord findLast(Map condition);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy