Commit 93e32963 by 梅存智

考试阅卷

parent 856d7faf
package com.yizhi.exam.application.vo; package com.yizhi.exam.application.vo;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -35,4 +37,10 @@ public class ExamOnlineReadOverVo { ...@@ -35,4 +37,10 @@ public class ExamOnlineReadOverVo {
@ApiModelProperty(value = "主观题得分") @ApiModelProperty(value = "主观题得分")
private BigDecimal subjectiveScore; private BigDecimal subjectiveScore;
@ApiModelProperty(value = "交卷时间")
private Date submitTime;
@ApiModelProperty(value = "考试用时(分钟)")
private Integer duration;
} }
...@@ -72,8 +72,9 @@ ...@@ -72,8 +72,9 @@
</select> </select>
<select id="selectList" resultType="com.yizhi.exam.application.vo.ExamOnlineReadOverVo"> <select id="selectList" resultType="com.yizhi.exam.application.vo.ExamOnlineReadOverVo">
SELECT a.read_over_id AS readOverId,account_id AS accountId,state,sum_score AS sumScore,objective_score AS SELECT a.read_over_id AS readOverId,a.account_id AS accountId,a.state,a.sum_score AS sumScore,a.objective_score AS
objectiveScore,subjective_score AS subjectiveScore FROM tr_exam_online_read_over a objectiveScore,a.subjective_score AS subjectiveScore,answer.submit_time,answer.duration FROM tr_exam_online_read_over a
LEFT JOIN tr_exam_answer answer ON answer.id=a.exam_answer_id
WHERE a.exam_id = #{examId} WHERE a.exam_id = #{examId}
<if test="userInfoVOMap != null and userInfoVOMap.size()>0"> <if test="userInfoVOMap != null and userInfoVOMap.size()>0">
AND a.account_id IN AND a.account_id IN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment