Browse Source

Merge remote-tracking branch 'cloud-schoolapi/ywx'

tags/正式版本
王宁 2 years ago
parent
commit
68bb71fb4c

+ 3
- 0
sexam/src/main/java/com/xhkjedu/sexam/mapper/paper/EPaperMapper.java View File

@@ -30,4 +30,7 @@ public interface EPaperMapper extends TkMapper<EPaper> {
30 30
 
31 31
     //修改试题设置答案
32 32
     void updateEPaperAnswered(@Param("paper") EPaper paper);
33
+
34
+    //根据试卷id获取考试id
35
+    Integer getExamIdByEpId(@Param("epid") Integer epid);
33 36
 }

+ 5
- 0
sexam/src/main/resources/mapper/paper/EPaperMapper.xml View File

@@ -48,4 +48,9 @@
48 48
     <update id="updateEPaperAnswered">
49 49
         update e_paper set answered=#{paper.answered} where epid=#{paper.epid}
50 50
     </update>
51
+
52
+    <!--根据试卷id获取考试id-->
53
+    <select id="getExamIdByEpId" resultType="java.lang.Integer">
54
+        select examid from e_paper where epid=#{epid} limit 1
55
+    </select>
51 56
 </mapper>

Loading…
Cancel
Save