xiatian %!s(int64=4) %!d(string=hai) anos
pai
achega
1694076b1d
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/main/java/cn/com/qmth/export/CreatePaperByExcel.java

+ 4 - 3
src/main/java/cn/com/qmth/export/CreatePaperByExcel.java

@@ -24,9 +24,10 @@ public class CreatePaperByExcel {
 				excelFolder.mkdir();
 			}
 			Course c=new Course();
-			c.setName("中外建筑史");
-			c.setCode("10454");
+			c.setName("汽车维修基本技能");
+			c.setCode("10613");
 			List<KdQuestion> qs=getQus(read());
+			System.out.println("小题数量:"+qs.size());
 			List<KdQuestion> single = new ArrayList<>();
 			List<KdQuestion> muti = new ArrayList<>();
 			List<KdQuestion> boo = new ArrayList<>();
@@ -149,7 +150,7 @@ public class CreatePaperByExcel {
 		List<Question> list = new ArrayList<>();
 		XSSFWorkbook wb = null;
 		try {
-			wb = new XSSFWorkbook("d:\\p.xlsx");
+			wb = new XSSFWorkbook("d:\\dz.xlsx");
 			XSSFSheet sheet = wb.getSheetAt(0);
 			int rows = sheet.getLastRowNum();
 			for (int i = 1; i <= rows; i++) {