xiatian 4 anos atrás
pai
commit
1694076b1d

+ 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++) {