package org.sky.scientific.excel;

import lombok.RequiredArgsConstructor;
import org.sky.core.excel.support.ExcelImporter;
import org.sky.scientific.service.ITechnicianService;

import java.util.List;


/**
 * 用户数据导入类
 */
@RequiredArgsConstructor
public class TechnicianImporter implements ExcelImporter<TechnicianExcel> {

	private final ITechnicianService service;
	private final String yearAndMonth;

	@Override
	public void save(List<TechnicianExcel> data) {
		service.importTechnician(data, yearAndMonth);
	}
}
