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
 
30
 
31
     //修改试题设置答案
31
     //修改试题设置答案
32
     void updateEPaperAnswered(@Param("paper") EPaper paper);
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
     <update id="updateEPaperAnswered">
48
     <update id="updateEPaperAnswered">
49
         update e_paper set answered=#{paper.answered} where epid=#{paper.epid}
49
         update e_paper set answered=#{paper.answered} where epid=#{paper.epid}
50
     </update>
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
 </mapper>
56
 </mapper>

Loading…
Cancel
Save