【修改】 选择题未选也继续记录归档
This commit is contained in:
@@ -22,4 +22,6 @@ public interface StuPaperScoreMapper extends BaseMapperX<StuPaperScoreDO> {
|
||||
|
||||
// 通过学生ID,试卷ID ,试题ID,查询数据
|
||||
StuPaperScoreDO findByStuIdAndPaperIdAndQuestionId(@Param("stuId") Long stuId, @Param("paperId") String paperId, @Param("quId") String questionId);
|
||||
|
||||
void deleteByStuIdAndPaperId(@Param("stuId") Long stuId, @Param("paperId") String paperId);
|
||||
}
|
@@ -22,4 +22,6 @@ public interface StuPaperScoreService {
|
||||
StuScoreVo getStuScore(Long stuId, String paperId);
|
||||
|
||||
StuPaperScoreDO getStuScoreByPaperIdAndQuid(Long stuId, String paperId, String quId);
|
||||
|
||||
void deleteStuPaperScore(Long stuId, String paperId);
|
||||
}
|
@@ -76,4 +76,9 @@ public class StuPaperScoreServiceImpl implements StuPaperScoreService {
|
||||
public StuPaperScoreDO getStuScoreByPaperIdAndQuid(Long stuId, String paperId, String quId) {
|
||||
return stuPaperScoreMapper.findByStuIdAndPaperIdAndQuestionId(stuId, paperId, quId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteStuPaperScore(Long stuId, String paperId) {
|
||||
stuPaperScoreMapper.deleteByStuIdAndPaperId(stuId, paperId);
|
||||
}
|
||||
}
|
@@ -30,6 +30,9 @@
|
||||
<select id="findByStuIdAndPaperIdAndQuestionId" resultType="pc.exam.pp.module.exam.dal.dataobject.student.StuPaperScoreDO">
|
||||
SELECT * FROM exam_stu_paper_score WHERE stu_id = #{stuId} AND paper_id = #{paperId} AND qu_id = #{quId}
|
||||
</select>
|
||||
<delete id="deleteByStuIdAndPaperId">
|
||||
DELETE FROM exam_stu_paper_score WHERE stu_id = #{stuId} AND paper_id = #{paperId}
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user