Selaa lähdekoodia

考试课程数值接口

xiatian 6 vuotta sitten
vanhempi
commit
78daeb0152

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

@@ -0,0 +1,22 @@
+package org.examcloud.core.reports.api.client;
+
+import org.examcloud.core.reports.api.ExamCourseDataReportCloudService;
+import org.examcloud.core.reports.api.request.SaveExamCourseDataReportListReq;
+import org.examcloud.core.reports.api.response.SaveExamCourseDataReportListResp;
+import org.springframework.stereotype.Service;
+
+@Service
+public class ExamCourseDataReportCloudServiceClient extends AbstractCloudClientSupport implements ExamCourseDataReportCloudService {
+
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -9200217219498417571L;
+
+	@Override
+	public SaveExamCourseDataReportListResp saveExamCourseDataReportList(SaveExamCourseDataReportListReq req) {
+		return post("examCourseDataReport/saveList", req, SaveExamCourseDataReportListResp.class);
+	}
+
+}

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

@@ -0,0 +1,10 @@
+package org.examcloud.core.reports.api;
+
+import org.examcloud.core.reports.api.request.SaveExamCourseDataReportListReq;
+import org.examcloud.core.reports.api.response.SaveExamCourseDataReportListResp;
+
+import cn.com.qmth.examcloud.api.commons.CloudService;
+
+public interface ExamCourseDataReportCloudService extends CloudService {
+	SaveExamCourseDataReportListResp saveExamCourseDataReportList(SaveExamCourseDataReportListReq req);
+}

+ 172 - 0
examcloud-core-reports-api/src/main/java/org/examcloud/core/reports/api/bean/ExamCourseDataReportBean.java

@@ -0,0 +1,172 @@
+package org.examcloud.core.reports.api.bean;
+
+import java.util.List;
+
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
+
+public class ExamCourseDataReportBean implements JsonSerializable {
+    /**
+	 * 
+	 */
+	private static final long serialVersionUID = -9143760541458113064L;
+	private Long projectId;
+	//rootOrgId
+    private Long rootOrgId;
+    //考试id
+    private Long examId;
+    //考试名称
+    private String examName;
+    //考试code
+    private String examCode;
+    //课程id
+    private Long courseId;
+    //课程名称
+    private String courseName;
+    //课程code
+    private String courseCode;
+    //满分
+    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 Long getCourseId() {
+		return courseId;
+	}
+	public void setCourseId(Long courseId) {
+		this.courseId = courseId;
+	}
+	public String getCourseName() {
+		return courseName;
+	}
+	public void setCourseName(String courseName) {
+		this.courseName = courseName;
+	}
+	public String getCourseCode() {
+		return courseCode;
+	}
+	public void setCourseCode(String courseCode) {
+		this.courseCode = courseCode;
+	}
+	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/SaveExamCourseDataReportListReq.java

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

+ 13 - 0
examcloud-core-reports-api/src/main/java/org/examcloud/core/reports/api/response/SaveExamCourseDataReportListResp.java

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