|
@@ -1,14 +1,18 @@
|
|
package com.koobietech.eas.controller;
|
|
package com.koobietech.eas.controller;
|
|
|
|
|
|
import cn.afterturn.easypoi.excel.ExcelExportUtil;
|
|
import cn.afterturn.easypoi.excel.ExcelExportUtil;
|
|
|
|
+import cn.afterturn.easypoi.excel.ExcelImportUtil;
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
|
|
+import cn.afterturn.easypoi.excel.entity.ImportParams;
|
|
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
|
|
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
|
|
|
|
+import cn.afterturn.easypoi.handler.inter.IReadHandler;
|
|
import cn.afterturn.easypoi.handler.inter.IWriter;
|
|
import cn.afterturn.easypoi.handler.inter.IWriter;
|
|
import com.koobietech.eas.common.constant.UserType;
|
|
import com.koobietech.eas.common.constant.UserType;
|
|
import com.koobietech.eas.common.pojo.JwtUserDto;
|
|
import com.koobietech.eas.common.pojo.JwtUserDto;
|
|
import com.koobietech.eas.common.service.RedisService;
|
|
import com.koobietech.eas.common.service.RedisService;
|
|
import com.koobietech.eas.common.utils.JwtManager;
|
|
import com.koobietech.eas.common.utils.JwtManager;
|
|
import com.koobietech.eas.common.utils.PasswordManager;
|
|
import com.koobietech.eas.common.utils.PasswordManager;
|
|
|
|
+import com.koobietech.eas.mbg.model.EasArcTlsScores;
|
|
import com.koobietech.eas.mbg.model.EasSysLogs;
|
|
import com.koobietech.eas.mbg.model.EasSysLogs;
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.jupiter.api.Test;
|
|
@@ -23,11 +27,22 @@ import java.util.*;
|
|
@SpringBootTest
|
|
@SpringBootTest
|
|
class ControllerApplicationTests {
|
|
class ControllerApplicationTests {
|
|
|
|
|
|
- @Test
|
|
|
|
- void contextLoads() throws IOException {
|
|
|
|
|
|
+// @Test
|
|
|
|
+// void contextLoads() {
|
|
|
|
+// try {
|
|
|
|
+// ImportParams params = new ImportParams();
|
|
|
|
+// List<Map<String, Object>> arc = ExcelImportUtil.importExcel(
|
|
|
|
+// new FileInputStream("C:\\Users\\lc\\Desktop\\1.xlsx"),
|
|
|
|
+// Map.class, params);
|
|
|
|
+// for (Map<String, Object> map : arc) {
|
|
|
|
+// System.out.println(map);
|
|
|
|
+// }
|
|
|
|
+// } catch (Exception e) {
|
|
|
|
+// e.printStackTrace();
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
|
|
- InputStream wordStream = this.getClass().getClassLoader().getResourceAsStream("\\temp\\StuRegistTemp.docx");
|
|
|
|
- System.out.println( wordStream );
|
|
|
|
|
|
|
|
// List<Map> list = new ArrayList<>();
|
|
// List<Map> list = new ArrayList<>();
|
|
// Workbook workbook = null;
|
|
// Workbook workbook = null;
|
|
@@ -62,6 +77,5 @@ class ControllerApplicationTests {
|
|
// fos.close();
|
|
// fos.close();
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
}
|
|
}
|