package com.jeeplus.modules.sg.util; import com.jeeplus.common.utils.excel.ImportExcel; import com.jeeplus.modules.sg.entity.JkxlData; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class JkxlExcel { public static List getData(String file) throws IOException, InvalidFormatException { ImportExcel importExcel = new ImportExcel(file,1,3); List list = new ArrayList<>(); int lastRow = importExcel.getLastDataRowNum(); int[] row = new int[6]; double totalFee = 0.00; for(int i=0;i