package com.liquidnet.service.reconciliation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liquidnet.service.reconciliation.entity.LrAccountCheckMistakeScratchPool;
import com.liquidnet.service.reconciliation.mapper.LrAccountCheckMistakeScratchPoolMapper;
import com.liquidnet.service.reconciliation.service.ILrAccountCheckMistakeScratchPoolService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 差错暂存池 服务实现类
 * </p>
 *
 * @author AnJiabin
 * @since 2020-10-21
 */
@Service
public class LrAccountCheckMistakeScratchPoolServiceImpl extends ServiceImpl<LrAccountCheckMistakeScratchPoolMapper, LrAccountCheckMistakeScratchPool> implements ILrAccountCheckMistakeScratchPoolService {
    /**
     * 从缓冲池中删除数据
     *
     * @param scratchPoolList
     */
    public void deleteFromPool(List<LrAccountCheckMistakeScratchPool> scratchPoolList) {
        for (LrAccountCheckMistakeScratchPool record : scratchPoolList) {
            this.removeById(record.getId());
        }

    }
}
