package excel;

import com.alibaba.excel.EasyExcel;
import excel.costfirst.CostFirst;
import excel.costfirst.CostFirstListener;
import excel.costfirstfba.CostFirstFba;
import excel.costfirstfba.CostFirstFbaListener;
import org.junit.jupiter.api.Test;

/**
 * <p>
 *
 * </p>
 *
 * @author robbendev
 * @since 2020/9/1 5:34 下午
 */
public class ExcelTest {


    @Test
    public void importSku() {
        String filePath = "/Users/huluobin/Library/Containers/com.kingsoft.wpsoffice.mac/Data/Library/Application Support/Kingsoft/WPS Cloud Files/userdata/qing/filecache/山渐青的云文档/头程费配置0920.xlsx";
        String filePath2 = "/Users/huluobin/Library/Containers/com.tencent.WeWorkMac/Data/Library/Application Support/WXWork/Data/1688853793439460/Cache/File/2020-09/fba仓库名称和账号对应关系(1)-头程初始值取值.xlsx";

        EasyExcel.read(filePath, CostFirst.class, new CostFirstListener()).sheet().doRead();
        EasyExcel.read(filePath2, CostFirstFba.class, new CostFirstFbaListener()).sheet().doRead();


    }


}
