Procházet zdrojové kódy

考试数值接口

xiatian před 6 roky
rodič
revize
93bbd517db

+ 22 - 0
examcloud-core-reports-api-client/src/main/java/org/examcloud/core/reports/api/client/ExamDataReportCloudServiceClient.java

@@ -0,0 +1,22 @@
+package org.examcloud.core.reports.api.client;
+
+import org.examcloud.core.reports.api.ExamDataReportCloudService;
+import org.examcloud.core.reports.api.request.SaveExamDataReportListReq;
+import org.examcloud.core.reports.api.response.SaveExamDataReportListResp;
+import org.springframework.stereotype.Service;
+
+@Service
+public class ExamDataReportCloudServiceClient extends AbstractCloudClientSupport implements ExamDataReportCloudService {
+
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 3937222097644204731L;
+
+	@Override
+	public SaveExamDataReportListResp saveExamDataReportList(SaveExamDataReportListReq req) {
+		return post("examDataReport/saveList", req, SaveExamDataReportListResp.class);
+	}
+
+}

+ 10 - 0
examcloud-core-reports-api/src/main/java/org/examcloud/core/reports/api/ExamDataReportCloudService.java

@@ -0,0 +1,10 @@
+package org.examcloud.core.reports.api;
+
+import org.examcloud.core.reports.api.request.SaveExamDataReportListReq;
+import org.examcloud.core.reports.api.response.SaveExamDataReportListResp;
+
+import cn.com.qmth.examcloud.api.commons.CloudService;
+
+public interface ExamDataReportCloudService extends CloudService {
+	SaveExamDataReportListResp saveExamDataReportList(SaveExamDataReportListReq req);
+}

+ 148 - 0
examcloud-core-reports-api/src/main/java/org/examcloud/core/reports/api/bean/ExamDataReportBean.java

@@ -0,0 +1,148 @@
+package org.examcloud.core.reports.api.bean;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+public class ExamDataReportBean implements JsonSerializable {
+    /**
+	 * 
+	 */
+	private static final long serialVersionUID = -7113692288876885053L;
+	private Long projectId;
+	//rootOrgId
+    private Long rootOrgId;
+    //考试id
+    private Long examId;
+    //考试名称
+    private String examName;
+    //考试code
+    private String examCode;
+    //满分
+    private Double totalScore;
+    //最高分
+    private Double maxScore;
+    //最低分
+    private Double minScore;
+    //平均分
+    private Double avgScore;
+    //标准差
+    private Double std;
+    //平均调卷难度
+    private Double avgDifficultyDegree;
+    //差异系数
+    private Double cdi;
+    //考试人数
+    private Long participantCount;
+    //满分人数
+    private Long fullCount;
+    //零分人数
+    private Long zeroCount;
+    //及格人数
+    private Long passCount;
+    //分段人数数据
+	private List<Long> partitionData;
+	public Long getProjectId() {
+		return projectId;
+	}
+	public void setProjectId(Long projectId) {
+		this.projectId = projectId;
+	}
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+	public Double getTotalScore() {
+		return totalScore;
+	}
+	public void setTotalScore(Double totalScore) {
+		this.totalScore = totalScore;
+	}
+	public Double getMaxScore() {
+		return maxScore;
+	}
+	public void setMaxScore(Double maxScore) {
+		this.maxScore = maxScore;
+	}
+	public Double getMinScore() {
+		return minScore;
+	}
+	public void setMinScore(Double minScore) {
+		this.minScore = minScore;
+	}
+	public Double getAvgScore() {
+		return avgScore;
+	}
+	public void setAvgScore(Double avgScore) {
+		this.avgScore = avgScore;
+	}
+	public Double getStd() {
+		return std;
+	}
+	public void setStd(Double std) {
+		this.std = std;
+	}
+	public Double getAvgDifficultyDegree() {
+		return avgDifficultyDegree;
+	}
+	public void setAvgDifficultyDegree(Double avgDifficultyDegree) {
+		this.avgDifficultyDegree = avgDifficultyDegree;
+	}
+	public Double getCdi() {
+		return cdi;
+	}
+	public void setCdi(Double cdi) {
+		this.cdi = cdi;
+	}
+	public Long getParticipantCount() {
+		return participantCount;
+	}
+	public void setParticipantCount(Long participantCount) {
+		this.participantCount = participantCount;
+	}
+	public Long getFullCount() {
+		return fullCount;
+	}
+	public void setFullCount(Long fullCount) {
+		this.fullCount = fullCount;
+	}
+	public Long getZeroCount() {
+		return zeroCount;
+	}
+	public void setZeroCount(Long zeroCount) {
+		this.zeroCount = zeroCount;
+	}
+	public Long getPassCount() {
+		return passCount;
+	}
+	public void setPassCount(Long passCount) {
+		this.passCount = passCount;
+	}
+	public List<Long> getPartitionData() {
+		return partitionData;
+	}
+	public void setPartitionData(List<Long> partitionData) {
+		this.partitionData = partitionData;
+	}
+	public Long getExamId() {
+		return examId;
+	}
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+	public String getExamName() {
+		return examName;
+	}
+	public void setExamName(String examName) {
+		this.examName = examName;
+	}
+	public String getExamCode() {
+		return examCode;
+	}
+	public void setExamCode(String examCode) {
+		this.examCode = examCode;
+	}
+	
+}

+ 22 - 0
examcloud-core-reports-api/src/main/java/org/examcloud/core/reports/api/request/SaveExamDataReportListReq.java

@@ -0,0 +1,22 @@
+package org.examcloud.core.reports.api.request;
+
+import java.util.List;
+
+import org.examcloud.core.reports.api.bean.ExamDataReportBean;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
+
+public class SaveExamDataReportListReq extends BaseRequest {
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 2367459231239575816L;
+	private List<ExamDataReportBean> beans;
+	public List<ExamDataReportBean> getBeans() {
+		return beans;
+	}
+	public void setBeans(List<ExamDataReportBean> beans) {
+		this.beans = beans;
+	}
+
+}

+ 2 - 1
examcloud-core-reports-api/src/main/java/org/examcloud/core/reports/api/response/SaveCourseDataReportListResp.java

@@ -7,5 +7,6 @@ public class SaveCourseDataReportListResp extends BaseResponse {
 	/**
 	 * 
 	 */
-	private static final long serialVersionUID = -1231864336719634942L;
+	private static final long serialVersionUID = -3742134319699756217L;
+
 }

+ 12 - 0
examcloud-core-reports-api/src/main/java/org/examcloud/core/reports/api/response/SaveExamDataReportListResp.java

@@ -0,0 +1,12 @@
+package org.examcloud.core.reports.api.response;
+
+import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
+
+public class SaveExamDataReportListResp extends BaseResponse {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -9184195013691828758L;
+
+}