WANG 6 éve
szülő
commit
2f9b82265b

+ 2 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/StudentController.java

@@ -179,6 +179,8 @@ public class StudentController extends ControllerSupport {
 				studentCodeList.add(cur.getStudentCode());
 			}
 			bean.setStudentCodeList(studentCodeList);
+			bean.setStudentCodesStr(StringUtils.join(studentCodeList, "<br />"));
+
 			bean.setIdentityNumber(next.getIdentityNumber());
 			if (StringUtils.isNotBlank(next.getPhotoPath())) {
 				bean.setPhotoPath(urlPrefix + next.getPhotoPath());

+ 10 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/bean/StudentDomain.java

@@ -24,6 +24,8 @@ public class StudentDomain implements JsonSerializable {
 
 	private List<String> studentCodeList;
 
+	private String studentCodesStr;
+
 	private String identityNumber;
 
 	private String photoPath;
@@ -70,6 +72,14 @@ public class StudentDomain implements JsonSerializable {
 		this.password = password;
 	}
 
+	public String getStudentCodesStr() {
+		return studentCodesStr;
+	}
+
+	public void setStudentCodesStr(String studentCodesStr) {
+		this.studentCodesStr = studentCodesStr;
+	}
+
 	public List<String> getStudentCodeList() {
 		return studentCodeList;
 	}