Procházet zdrojové kódy

获取考生数据接口定义

xiatian před 6 roky
rodič
revize
4381c023e9

+ 11 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/ExamStudentDataCloudService.java

@@ -0,0 +1,11 @@
+package cn.com.qmth.examcloud.core.oe.admin.api;
+
+import cn.com.qmth.examcloud.api.commons.CloudService;
+import cn.com.qmth.examcloud.core.oe.admin.api.request.GetExamStudentDataReq;
+import cn.com.qmth.examcloud.core.oe.admin.api.response.GetExamStudentDataResp;
+
+public interface ExamStudentDataCloudService  extends CloudService{
+
+	public GetExamStudentDataResp getExamStudentData(GetExamStudentDataReq req);
+	
+}

+ 130 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/bean/ExamStudentDataBean.java

@@ -0,0 +1,130 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.bean;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+public class ExamStudentDataBean  implements JsonSerializable {
+
+	
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -3825709197977841333L;
+
+	private Long examStudentId;
+	
+	private Long rootOrgId;
+	
+	private Long examId;
+	
+	private Long orgId;
+	
+	private Long courseId;
+	
+	private String courseCode;
+	
+	//缺考
+	private Boolean absent;
+	
+	//得分试卷id
+	private String basePaperId;
+	
+	//试卷满分
+	private Double totalScore;
+	
+	//试卷得分
+	private Double score;
+	
+	//小题得分详情
+	private List<ExamStudentScoreDataBean> scoreDetails;
+
+	public Long getExamStudentId() {
+		return examStudentId;
+	}
+
+	public void setExamStudentId(Long examStudentId) {
+		this.examStudentId = examStudentId;
+	}
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public Long getExamId() {
+		return examId;
+	}
+
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+
+	public Long getOrgId() {
+		return orgId;
+	}
+
+	public void setOrgId(Long orgId) {
+		this.orgId = orgId;
+	}
+
+	public Long getCourseId() {
+		return courseId;
+	}
+
+	public void setCourseId(Long courseId) {
+		this.courseId = courseId;
+	}
+
+	public String getCourseCode() {
+		return courseCode;
+	}
+
+	public void setCourseCode(String courseCode) {
+		this.courseCode = courseCode;
+	}
+
+	public Boolean getAbsent() {
+		return absent;
+	}
+
+	public void setAbsent(Boolean absent) {
+		this.absent = absent;
+	}
+
+	public String getBasePaperId() {
+		return basePaperId;
+	}
+
+	public void setBasePaperId(String basePaperId) {
+		this.basePaperId = basePaperId;
+	}
+
+	public Double getTotalScore() {
+		return totalScore;
+	}
+
+	public void setTotalScore(Double totalScore) {
+		this.totalScore = totalScore;
+	}
+
+	public Double getScore() {
+		return score;
+	}
+
+	public void setScore(Double score) {
+		this.score = score;
+	}
+
+	public List<ExamStudentScoreDataBean> getScoreDetails() {
+		return scoreDetails;
+	}
+
+	public void setScoreDetails(List<ExamStudentScoreDataBean> scoreDetails) {
+		this.scoreDetails = scoreDetails;
+	}
+	
+}

+ 56 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/bean/ExamStudentScoreDataBean.java

@@ -0,0 +1,56 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.bean;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+public class ExamStudentScoreDataBean  implements JsonSerializable {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1404508920425379395L;
+
+	private String questionId;
+	
+	//套题题序
+	private Integer questionOrder;
+	
+	//小题满分
+	private Double totalScore;
+	
+	//小题得分
+	private Double score;
+
+	public String getQuestionId() {
+		return questionId;
+	}
+
+	public void setQuestionId(String questionId) {
+		this.questionId = questionId;
+	}
+
+	public Integer getQuestionOrder() {
+		return questionOrder;
+	}
+
+	public void setQuestionOrder(Integer questionOrder) {
+		this.questionOrder = questionOrder;
+	}
+
+	public Double getTotalScore() {
+		return totalScore;
+	}
+
+	public void setTotalScore(Double totalScore) {
+		this.totalScore = totalScore;
+	}
+
+	public Double getScore() {
+		return score;
+	}
+
+	public void setScore(Double score) {
+		this.score = score;
+	}
+	
+	
+}

+ 40 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/request/GetExamStudentDataReq.java

@@ -0,0 +1,40 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.request;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class GetExamStudentDataReq extends BaseRequest {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1639807354929100671L;
+
+	//考试id
+	private Long examId;
+	
+	//考生起始id
+	private Long startId;
+	
+	//返回数据条数
+	private Integer size;
+	
+	public Long getExamId() {
+		return examId;
+	}
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+	public Long getStartId() {
+		return startId;
+	}
+	public void setStartId(Long startId) {
+		this.startId = startId;
+	}
+	public Integer getSize() {
+		return size;
+	}
+	public void setSize(Integer size) {
+		this.size = size;
+	}
+
+}

+ 25 - 0
examcloud-core-oe-admin-api/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/response/GetExamStudentDataResp.java

@@ -0,0 +1,25 @@
+package cn.com.qmth.examcloud.core.oe.admin.api.response;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamStudentDataBean;
+
+public class GetExamStudentDataResp extends BaseResponse {
+	
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -6251828470571324450L;
+	
+	private List<ExamStudentDataBean> list;
+
+	public List<ExamStudentDataBean> getList() {
+		return list;
+	}
+
+	public void setList(List<ExamStudentDataBean> list) {
+		this.list = list;
+	}
+	
+}