/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.transport.excel;

import lombok.RequiredArgsConstructor;
import org.springblade.core.excel.support.ExcelImporter;
import org.springblade.transport.service.IOilElectricRecordService;

import java.util.List;

/**
 * 油电记录导入类
 *
 * @author Chill
 */
@RequiredArgsConstructor
public class OilElectricRecordImporter implements ExcelImporter<OilElectricRecordExcel> {

	private final IOilElectricRecordService service;

	@Override
	public void save(List<OilElectricRecordExcel> data) {
		service.importOilElectricRecord(data);
	}

}
