ting.yin před 8 roky
rodič
revize
9420b44690

+ 1 - 0
exam-work-api/src/main/java/cn/com/qmth/examcloud/service/examwork/service/ExamStudentService.java

@@ -228,6 +228,7 @@ public class ExamStudentService {
 			return new ExcelError("学习中心不存在/禁用");
 		}
 		dto.setOrgId(org.getId());
+		dto.setOrgName(org.getName());
 		return null;
 	}
 	

+ 1 - 0
exam-work-domain/src/main/java/cn/com/qmth/examcloud/service/examwork/assembler/ExamStudentAssembler.java

@@ -54,6 +54,7 @@ public class ExamStudentAssembler {
 			domain.setName(dto.getName());
 			domain.setOrgCode(dto.getOrgCode());
 			domain.setOrgId(dto.getOrgId());
+			domain.setOrgName(dto.getOrgName());
 			domain.setPaperType(dto.getPaperType());
 			domain.setRemark(dto.getRemark());
 			domain.setRepair(dto.getRepair());

+ 10 - 0
exam-work-domain/src/main/java/cn/com/qmth/examcloud/service/examwork/dto/ExamStudentDTO.java

@@ -26,6 +26,8 @@ public class ExamStudentDTO {
 	 */
     @ExcelProperty(index = 3,name = "学习中心代码")
     private String orgCode;
+    
+    private String orgName;
 
     @ExcelProperty(index = 1,name = "学号")
 	private String studentCode;
@@ -264,6 +266,14 @@ public class ExamStudentDTO {
 		this.examId = examId;
 	}
 
+	public String getOrgName() {
+		return orgName;
+	}
+
+	public void setOrgName(String orgName) {
+		this.orgName = orgName;
+	}
+
 	public ExamStudentDTO() {
 	}
 }