浏览代码

初评分完善

ywx
雍文秀 4 周前
父节点
当前提交
0659452e05
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8
    2
      smarking/src/main/resources/mapper/papercheck/MsPaperCheckTeacherArbitrateMapper.xml

+ 8
- 2
smarking/src/main/resources/mapper/papercheck/MsPaperCheckTeacherArbitrateMapper.xml 查看文件

@@ -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

正在加载...
取消
保存