📄 studentutils.java
字号:
package com.javayjm.excel;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class StudentUtils {
public static List getStudentFormList(){
Map codeMap = new HashMap();
codeMap.put("sex男", "M");
codeMap.put("sex女", "F");
ExcelManager test = new ExcelManager(
"D:\\work\\workspace\\excelfile\\student.xls",
"importStudentInfo", codeMap);
List modelList = test.getModelList();
return modelList;
}
public static List getStudentMapList(){
Map codeMap = new HashMap();
codeMap.put("sex男", "M");
codeMap.put("sex女", "F");
ExcelManager test = new ExcelManager(
"D:\\work\\workspace\\excelfile\\student.xls",
"importStudentInfo_map", codeMap);
test.getEtm().setSheet(1);
List modelList = test.getModelList();
return modelList;
}
public static List getScoreMapList(){
Map codeMap = new HashMap();
codeMap.put("sex男", "M");
codeMap.put("sex女", "F");
ExcelManager test = new ExcelManager(
"D:\\work\\workspace\\excelfile\\student.xls",
"importStudentInfo_score", codeMap);
test.getEtm().setSheet(4);
List modelList = test.getModelList();
return modelList;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -