Browse Source

初评分完善

ywx
雍文秀 3 weeks ago
parent
commit
0659452e05

+ 8
- 2
smarking/src/main/resources/mapper/papercheck/MsPaperCheckTeacherArbitrateMapper.xml View File

@@ -216,9 +216,15 @@
216 216
     <select id="getScore" resultType="java.util.Map">
217 217
         select psq.firstccore,psq.secondcscore,psq.qscore,psq.qorder,psq.qn
218 218
         ,pc.diffscore,pc.scoreway
219
-        from ms_paper_student_question psq inner join ms_paper_check pc on psq.mpid=pc.mpid
220 219
         <if test="param.correcttype==3">
221
-            where psq.mpsbid=#{param.mpsbid} and psq.mblockid=pc.mblockid
220
+            from ms_paper_student_block psb inner join ms_paper_student_question psq on psq.mpsid=psb.mpsid and psq.mblockid=psb.mblockid
221
+        </if>
222
+        <if test="param.correcttype==2">
223
+            from ms_paper_student_question psq
224
+        </if>
225
+        inner join ms_paper_check pc on psq.mpid=pc.mpid
226
+        <if test="param.correcttype==3">
227
+            where psb.mpsbid=#{param.mpsbid} and psb.mblockid=pc.mblockid
222 228
         </if>
223 229
         <if test="param.correcttype==2">
224 230
             where psq.mpsqid=#{param.mpsbid} and psq.mptqid=pc.mblockid

Loading…
Cancel
Save