|
|
|
@ -68,7 +68,7 @@ public class EcsonarApplicationTests {
|
|
|
|
|
CountDownLatch countDownLatch = new CountDownLatch(1);
|
|
|
|
|
|
|
|
|
|
// String excelPath = "/Users/youyongsheng/Desktop/ZQ/质量分析/2023-05-16/data.xlsx";
|
|
|
|
|
String excelPath = "/Users/youyongsheng/Desktop/ZQ/质量分析/2023-05-24/湖南工业大学-2023届软件工程-原始数据.xlsx";
|
|
|
|
|
String excelPath = "/Users/youyongsheng/Desktop/湘潭大学计算机科学与工程系2024届.xlsx";
|
|
|
|
|
sonarService.scanExcel(excelPath);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
@ -81,13 +81,13 @@ public class EcsonarApplicationTests {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void writeExcel() throws Exception {
|
|
|
|
|
int homeworkId = 20230402;
|
|
|
|
|
String directory = "/tmp/20230402/";
|
|
|
|
|
int homeworkId = 202405181;
|
|
|
|
|
String directory = "/tmp/202405181/";
|
|
|
|
|
File file = new File(directory);
|
|
|
|
|
File[] files = file.listFiles();
|
|
|
|
|
System.out.println("学生数:" + files.length);
|
|
|
|
|
|
|
|
|
|
List<Person> personList = ExcelUtil.readExcel("/Users/youyongsheng/Desktop/ZQ/质量分析/2023-05-24/湖南工业大学-2023届软件工程-原始数据.xlsx");
|
|
|
|
|
List<Person> personList = ExcelUtil.readExcel("/Users/youyongsheng/Desktop/湘潭大学计算机科学与工程系2024届.xlsx");
|
|
|
|
|
|
|
|
|
|
Map<String, List<Person>> collect = personList.stream().collect(Collectors.groupingBy(Person::getUid));
|
|
|
|
|
|
|
|
|
@ -100,7 +100,7 @@ public class EcsonarApplicationTests {
|
|
|
|
|
Metrics metrics = reportService.getMetrics(projectName);
|
|
|
|
|
|
|
|
|
|
String templatePath = this.getClass().getClassLoader().getResource("template1.xlsx").getPath();
|
|
|
|
|
String outPath = "/Users/youyongsheng/Desktop/ddddd.xlsx";
|
|
|
|
|
String outPath = "/Users/youyongsheng/Desktop/fffff333.xlsx";
|
|
|
|
|
|
|
|
|
|
System.out.println("第"+(i++)+"个学生," + uid);
|
|
|
|
|
if (CollectionUtils.isEmpty(collect.get(uid))) {
|
|
|
|
|