|
@@ -135,14 +135,14 @@ public class ServiceTest {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void findByExamDetailId(){
|
|
|
+ public void findByExamDetailId() {
|
|
|
Long examDetailId = 1L;
|
|
|
ExamPrintPlan examPrintPlan = examPrintPlanService.findByExamDetailId(examDetailId);
|
|
|
System.out.println(JSON.toJSONString(examPrintPlan));
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void approveForm(){
|
|
|
+ public void approveForm() {
|
|
|
Long examTask = 167675409079468032L;
|
|
|
System.out.println(JSON.toJSONString(examTaskService.findExamTaskApprovalForm(examTask)));
|
|
|
}
|
|
@@ -152,19 +152,19 @@ public class ServiceTest {
|
|
|
Long id = 165147096339447808L;
|
|
|
ExamCardDetail examCardDetail = examCardDetailService.getById(id);
|
|
|
String htmlContent = examCardDetail.getHtmlContent();
|
|
|
- BasicAttachment basicAttachment = printCommonService.saveAttachmentHtmlAndPdf("那不勒斯",htmlContent,1L);
|
|
|
+ BasicAttachment basicAttachment = printCommonService.saveAttachmentHtmlAndPdf("那不勒斯", htmlContent, 1L);
|
|
|
System.out.println(JSON.toJSONString(basicAttachment));
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void findExamObject(){
|
|
|
+ public void findExamObject() {
|
|
|
String paperNumber = "cn004-0906-001";
|
|
|
ExamObjectDto examObjectDto = examTaskService.findExamObjectDtoByPaperNumber(paperNumber);
|
|
|
System.out.println(JSON.toJSONString(examObjectDto));
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void findBasicPrintConfig(){
|
|
|
+ public void findBasicPrintConfig() {
|
|
|
Long examId = 228554176387354624L;
|
|
|
String courseCode = "gd-gdsx";
|
|
|
// BasicPrintConfig basicPrintConfig = basicPrintConfigService.getByExamIdAndCourseCode(examId,courseCode);
|
|
@@ -178,16 +178,16 @@ public class ServiceTest {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void findExamStudent(){
|
|
|
+ public void findExamStudent() {
|
|
|
Long schoolId = 2L;
|
|
|
String clazzId = "225944699725156352";
|
|
|
- List<ExamStudent> examStudentList = examStudentMapper.listExamStudentBySchoolIdAndClazzId(schoolId,clazzId);
|
|
|
+ List<ExamStudent> examStudentList = examStudentMapper.listExamStudentBySchoolIdAndClazzId(schoolId, clazzId);
|
|
|
System.out.println(JSON.toJSONString(examStudentList));
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void findCardJpgFileByPaperNumber(){
|
|
|
- List<CardJpgResult> resultList = examPaperStructureService.findCardJpgFileByPaperNumber(237292182900310016L,"yznwl","yznwl-0415-001");
|
|
|
+ public void findCardJpgFileByPaperNumber() {
|
|
|
+ List<CardJpgResult> resultList = examPaperStructureService.findCardJpgFileByPaperNumber(237292182900310016L, "yznwl", "yznwl-0415-001", "A");
|
|
|
System.out.println(JSON.toJSONString(resultList));
|
|
|
}
|
|
|
|
|
@@ -198,13 +198,14 @@ public class ServiceTest {
|
|
|
|
|
|
File file = new File("E:" + File.separator + "file" + File.separator + "学生导入模板.xlsx");
|
|
|
FileInputStream input = new FileInputStream(file);
|
|
|
- MultipartFile multipartFile =new MockMultipartFile("file", file.getName(), "text/plain", IOUtils.toByteArray(input));
|
|
|
+ MultipartFile multipartFile = new MockMultipartFile("file", file.getName(), "text/plain", IOUtils.toByteArray(input));
|
|
|
|
|
|
SysUser requestUser = new SysUser();
|
|
|
requestUser.setId(293030757817909248L);
|
|
|
requestUser.setSchoolId(292366699577999360L);
|
|
|
|
|
|
- System.out.println(JSON.toJSONString(examTaskService.findExamTaskStudentObject(examObjectType,basicCourseId,multipartFile,requestUser)));
|
|
|
+ System.out.println(JSON.toJSONString(examTaskService.findExamTaskStudentObject(examObjectType, basicCourseId, multipartFile, requestUser)));
|
|
|
+ String x = "";
|
|
|
}
|
|
|
|
|
|
}
|