chenken 6 vuotta sitten
vanhempi
commit
b63450553d

+ 11 - 5
examcloud-core-oe-student-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/client/OeScorePushCloudServiceClient.java

@@ -6,6 +6,7 @@ import org.springframework.web.client.RestTemplate;
 
 import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
 import cn.com.qmth.examcloud.core.oe.student.api.OeScorePushCloudService;
+import cn.com.qmth.examcloud.core.oe.student.api.request.SaveExamScoreQueueReq;
 
 @Service
 public class OeScorePushCloudServiceClient extends BasicCloudClientSupport implements OeScorePushCloudService{
@@ -21,11 +22,6 @@ public class OeScorePushCloudServiceClient extends BasicCloudClientSupport imple
 	@Autowired
 	private RedisClient redisClient;
 	
-	@Override
-	public void scorePush() {
-		post("oeScorePush", null);
-	}
-
 	@Override
 	protected RestTemplate getRestTemplate() {
 		return restTemplate;
@@ -35,5 +31,15 @@ public class OeScorePushCloudServiceClient extends BasicCloudClientSupport imple
 	protected RedisClient getRedisClient() {
 		return redisClient;
 	}
+	
+	@Override
+	public void disposeScoreQueue() {
+		post("oeScorePush/disposeScoreQueue", null);
+	}
+	
+	@Override
+	public void saveExamScoreQueue(SaveExamScoreQueueReq req) {
+		post("oeScorePush/saveExamScoreQueue", req);
+	}
 
 }

+ 1 - 1
examcloud-core-oe-student-api-client/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/client/OeStudentExamRecordCloudServiceClient.java

@@ -7,7 +7,7 @@ import org.springframework.web.client.RestTemplate;
 import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
 import cn.com.qmth.examcloud.core.oe.student.api.OeStudentExamRecordCloudService;
 
-@Service("oeExamRecordCloudService")
+@Service("oeStudentExamRecordCloudService")
 public class OeStudentExamRecordCloudServiceClient extends BasicCloudClientSupport implements OeStudentExamRecordCloudService{
 
 	@Autowired

+ 8 - 1
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/OeScorePushCloudService.java

@@ -1,6 +1,7 @@
 package cn.com.qmth.examcloud.core.oe.student.api;
 
 import cn.com.qmth.examcloud.commons.web.cloud.api.CloudService;
+import cn.com.qmth.examcloud.core.oe.student.api.request.SaveExamScoreQueueReq;
 
 /**
  * 
@@ -15,6 +16,12 @@ public interface OeScorePushCloudService extends CloudService{
 	 * 分数推送:定时器调用
 	 * @return
 	 */
-	public void scorePush();
+	public void disposeScoreQueue();
+	
+	/**
+	 * 保存推分队列
+	 * @param examRecordDataId
+	 */
+	public void saveExamScoreQueue(SaveExamScoreQueueReq req);
 	
 }

+ 10 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/request/SaveExamRecordForMarkingReq.java

@@ -22,6 +22,8 @@ public class SaveExamRecordForMarkingReq extends BaseRequest{
 	
 	private Long CourseId;
 	
+	private Double objectiveScore;
+	
 	public Long getExamId() {
 		return examId;
 	}
@@ -70,4 +72,12 @@ public class SaveExamRecordForMarkingReq extends BaseRequest{
 		CourseId = courseId;
 	}
 
+	public Double getObjectiveScore() {
+		return objectiveScore;
+	}
+
+	public void setObjectiveScore(Double objectiveScore) {
+		this.objectiveScore = objectiveScore;
+	}
+	
 }

+ 44 - 0
examcloud-core-oe-student-api/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/request/SaveExamScoreQueueReq.java

@@ -0,0 +1,44 @@
+package cn.com.qmth.examcloud.core.oe.student.api.request;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.BaseRequest;
+
+public class SaveExamScoreQueueReq extends BaseRequest{
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 5382845064059370506L;
+
+	private Long examRecordDataId;
+	
+	private Long scoreId;
+	
+	private String serviceName;
+
+	public Long getExamRecordDataId() {
+		return examRecordDataId;
+	}
+
+	public void setExamRecordDataId(Long examRecordDataId) {
+		this.examRecordDataId = examRecordDataId;
+	}
+
+	public Long getScoreId() {
+		return scoreId;
+	}
+
+	public void setScoreId(Long scoreId) {
+		this.scoreId = scoreId;
+	}
+
+	public String getServiceName() {
+		return serviceName;
+	}
+
+	public void setServiceName(String serviceName) {
+		this.serviceName = serviceName;
+	}
+	
+	
+	
+}