package com.jeeplus.modules.sg.util;

import com.jeeplus.common.utils.excel.ImportExcel;
import com.jeeplus.modules.sg.entity.JkxlData;
import com.jeeplus.modules.sg.web.JkxlController;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.hibernate.validator.constraints.EAN;
import org.junit.Test;

import java.io.IOException;
import java.util.List;

public class Text {
 @Test
  public void text() throws IOException, InvalidFormatException {
      String file = "target/1.xls";
//      double[] d = {0.17,0.0332,0.0322};
      List<JkxlData> list = JkxlExcel.getData(file);
//     double doubles = JkxlExcel.get(file);

//     System.out.println(doubles);
//     JkxlController jkxlController = new JkxlController();
//     List<JkxlData> data = jkxlController.getData(file, d);
     System.out.println(list);
 }
}
