package com.yonge.cooleshow.biz.dal.service.impl;

import com.yonge.cooleshow.biz.dal.entity.TenantAccountRecord;
import com.yonge.cooleshow.biz.dal.service.EasyExcelService;
import com.yonge.cooleshow.biz.dal.service.TenantAccountRecordService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Excel解析服务类型
 * Created by Eric.Shang on 2023/4/25.
 */
@Slf4j
@Service
public class EasyExcelServiceImpl implements EasyExcelService {

    @Autowired
    private TenantAccountRecordService tenantAccountRecordService;

    @Override
    public List<TenantAccountRecord> getRecordById(List<String> ids) {
        return tenantAccountRecordService.lambdaQuery()
                .in(TenantAccountRecord::getId,ids)
                .list();

    }
}
