瀏覽代碼

批阅添加学生批改后图片

ywx
雍文秀 1 月之前
父節點
當前提交
ccda38acb6

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

@@ -88,14 +88,14 @@
88 88
     <!--获取待仲裁任务-->
89 89
     <select id="getCorrectArbitrate" resultType="java.util.Map">
90 90
         <if test="param.correcttype==3">
91
-            select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.mpsbid,psb.arbitratescore,2 as answertype
91
+            select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.stumerge,psb.mpsbid,psb.arbitratescore,2 as answertype
92 92
             from ms_paper_check pc inner join ms_paper_student_block psb on psb.mblockid = pc.mblockid and psb.mpid = pc.mpid
93 93
             where pc.mpid=#{param.mpid} and pc.arbitrateid=#{param.handleid}
94 94
             and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
95 95
             order by psb.mpsbid limit 1
96 96
         </if>
97 97
         <if test="param.correcttype==2">
98
-            select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
98
+            select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.stumerge,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
99 99
             from ms_paper_check pc inner join ms_paper_student_question psb on psb.mptqid = pc.mblockid and psb.mpid = pc.mpid
100 100
             where pc.mpid=#{param.mpid} and pc.arbitrateid=#{param.handleid}
101 101
             and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
@@ -120,14 +120,14 @@
120 120
     <!--教师阅卷-待仲裁-上一份-->
121 121
     <select id="getPreArbitrate" resultType="java.util.Map">
122 122
         <if test="param.correcttype==3">
123
-            select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,psb.mpsbid,psb.arbitratescore,2 as answertype
123
+            select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,psb.stumerge,psb.mpsbid,psb.arbitratescore,2 as answertype
124 124
             from ms_paper_student_block psb inner join ms_paper_check_teacher_arbitrate pcta on pcta.mpid=psb.mpid and pcta.mpsbid=psb.mpsbid
125 125
             where pcta.mpid=#{param.mpid} and pcta.teacherid=#{param.handleid} and pcta.mblockid=#{param.mblockid}
126 126
             and pcta.checkstate=3 and #{param.taskorder}>pcta.taskorder
127 127
             order by pcta.taskorder desc limit 1
128 128
         </if>
129 129
         <if test="param.correcttype==2">
130
-            select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,pcta.mpsbid,psb.arbitratescore,psb.answertype
130
+            select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,psb.stumerge,pcta.mpsbid,psb.arbitratescore,psb.answertype
131 131
             from ms_paper_student_question psb inner join ms_paper_check_teacher_arbitrate pcta on pcta.mpid=psb.mpid and pcta.mpsbid=psb.mpsqid
132 132
             where pcta.mpid=#{param.mpid} and pcta.teacherid=#{param.handleid} and pcta.mblockid=#{param.mblockid}
133 133
             and pcta.checkstate=3 and #{param.taskorder}>pcta.taskorder
@@ -176,13 +176,13 @@
176 176
     <!--学科组长-获取待仲裁任务-->
177 177
     <select id="getCorrectLeaderArbitrate" resultType="java.util.Map">
178 178
         <if test="param.correcttype==3">
179
-            select psb.mpid,psb.mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.mpsbid,psb.arbitratescore,2 as answertype
179
+            select psb.mpid,psb.mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.stumerge,psb.mpsbid,psb.arbitratescore,2 as answertype
180 180
             from ms_paper_student_block psb
181 181
             where psb.mpid=#{param.mpid} and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
182 182
             order by psb.mpsbid limit 1
183 183
         </if>
184 184
         <if test="param.correcttype==2">
185
-            select psb.mpid,psb.mpsqid as mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
185
+            select psb.mpid,psb.mpsqid as mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.stumerge,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
186 186
             from ms_paper_student_question psb
187 187
             where psb.mpid=#{param.mpid} and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
188 188
             order by psb.mpsqid limit 1
@@ -201,7 +201,7 @@
201 201
     </select>
202 202
     <!--仲裁历史详情-->
203 203
     <select id="detailHistory" resultType="java.util.Map">
204
-        select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psq.stuanswer,pcta.mpsbid,psq.arbitratescore
204
+        select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psq.stuanswer,psq.stumerge,pcta.mpsbid,psq.arbitratescore
205 205
         ,if(#{param.correcttype}=3,2,psq.answertype) as answertype
206 206
         from ms_paper_check_teacher_arbitrate pcta
207 207
         <if test="param.correcttype==3">

+ 3
- 3
smarking/src/main/resources/mapper/papercheck/MsPaperCheckTeacherProblemMapper.xml 查看文件

@@ -68,7 +68,7 @@
68 68
     </select>
69 69
     <!--获取疑难卷任务-->
70 70
     <select id="getCorrectProblem" resultType="java.util.Map">
71
-        select psb.stuanswer,psb.hasproblem,psb.problemtype,psb.problemcomm
71
+        select psb.stuanswer,psb.stumerge,psb.hasproblem,psb.problemtype,psb.problemcomm
72 72
         <if test="param.correcttype==3">
73 73
             ,psb.mblockid,psb.mpsbid,2 as answertype
74 74
         </if>
@@ -110,7 +110,7 @@
110 110
     </select>
111 111
     <!--获取上一份疑难卷-->
112 112
     <select id="getPreProblem" resultType="java.util.Map">
113
-        select psq.stuanswer,psq.hasproblem,psq.problemtype,psq.problemcomm
113
+        select psq.stuanswer,psq.stumerge,psq.hasproblem,psq.problemtype,psq.problemcomm
114 114
         ,pctp.mpid,pctp.mblockid,pctp.mpsbid,pctp.taskorder,pctp.checkscore
115 115
         ,if(#{param.correcttype}=3,2,psq.answertype) as answertype
116 116
         ,u.username as studentname,u.examno,u2.username as teachername
@@ -140,7 +140,7 @@
140 140
     </select>
141 141
     <!--历史记录详情-->
142 142
     <select id="detailHistory" resultType="java.util.Map">
143
-        select psq.stuanswer,psq.hasproblem,psq.problemtype,psq.problemcomm
143
+        select psq.stuanswer,psq.stumerge,psq.hasproblem,psq.problemtype,psq.problemcomm
144 144
         ,pctp.mpid,pctp.mblockid,pctp.mpsbid,pctp.taskorder,pctp.checkscore
145 145
         ,if(#{param.correcttype}=3,2,psq.answertype) as answertype
146 146
         ,u.username as studentname,u.examno,u2.username as teachername

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

@@ -377,7 +377,7 @@
377 377
     <!--教师阅卷-按题块-获取待批试题-->
378 378
     <select id="getCorrectBlock" resultType="com.xhkjedu.smarking.vo.papercheck.MsPaperCheckVo">
379 379
         <if test="param.dispenseway!=null and param.dispenseway!=2">
380
-            select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
380
+            select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
381 381
             ,2 as answertype
382 382
             ,pctt.mpid,pctt.mblockid,pctt.mpsbid,pctt.mptqid,pctt.checktype
383 383
             from ms_paper_student_block psq inner join ms_paper_check_teacher_task pctt on psq.mpsbid = pctt.mpsbid and psq.mpid=pctt.mpid
@@ -387,7 +387,7 @@
387 387
             limit 1
388 388
         </if>
389 389
         <if test="param.dispenseway!=null and param.dispenseway==2">
390
-            select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
390
+            select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
391 391
             ,2 as answertype
392 392
             ,psq.mblockid,psq.mpsbid,psq.firstcid
393 393
             from ms_paper_student_block psq
@@ -513,7 +513,7 @@
513 513
     <!--教师阅卷-按试题-获取待批试题-->
514 514
     <select id="getCorrectQuestion" resultType="com.xhkjedu.smarking.vo.papercheck.MsPaperCheckVo">
515 515
         <if test="param.dispenseway!=null and param.dispenseway!=2">
516
-            select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
516
+            select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
517 517
             ,psq.answertype
518 518
             ,pctt.mpid,pctt.mblockid,pctt.mpsbid,pctt.mptqid,pctt.checktype
519 519
             from ms_paper_student_question psq inner join ms_paper_check_teacher_task pctt on psq.mpsqid = pctt.mpsbid and psq.mpid=pctt.mpid
@@ -523,7 +523,7 @@
523 523
             limit 1
524 524
         </if>
525 525
         <if test="param.dispenseway!=null and param.dispenseway==2">
526
-            select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
526
+            select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
527 527
             ,psq.answertype
528 528
             ,psq.mptqid as mblockid,psq.mpsqid as mpsbid,psq.mptqid,psq.firstcid
529 529
             from ms_paper_student_question psq
@@ -559,7 +559,7 @@
559 559
     <!--教师阅卷-按班级-获取待批试题-->
560 560
     <select id="getCorrectClassQuestion" resultType="com.xhkjedu.smarking.vo.papercheck.MsPaperCheckVo">
561 561
         <if test="param.dispenseway!=null and param.dispenseway!=2">
562
-            select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
562
+            select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
563 563
             ,psq.answertype
564 564
             ,pctt.mpid,pctt.mblockid,pctt.mpsbid,pctt.mptqid,pctt.checktype
565 565
             from ms_paper_student_question psq inner join ms_paper_check_teacher_task pctt on psq.mpsqid = pctt.mpsbid and psq.mpid=pctt.mpid
@@ -569,7 +569,7 @@
569 569
             limit 1
570 570
         </if>
571 571
         <if test="param.dispenseway!=null and param.dispenseway==2">
572
-            select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
572
+            select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
573 573
             ,psq.answertype
574 574
             ,c.classid as mblockid,psq.mpsqid as mpsbid,psq.mptqid,psq.firstcid
575 575
             from ms_paper_student_question psq inner join ms_class c on c.examid=psq.examid and c.subjectid=psq.subjectid
@@ -618,7 +618,7 @@
618 618
     </select>
619 619
     <!--教师阅卷-上一份-->
620 620
     <select id="getPreCorrect" resultType="java.util.Map">
621
-        select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
621
+        select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
622 622
         <if test="param.correcttype==3">
623 623
             ,2 as answertype
624 624
         </if>
@@ -657,7 +657,7 @@
657 657
     </select>
658 658
     <!--教师阅卷-历史详情-->
659 659
     <select id="detailHistory" resultType="java.util.Map">
660
-        select psq.stuanswer,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
660
+        select psq.stuanswer,psq.stumerge,psq.hasgood,psq.hasbad,psq.hasproblem,psq.problemtype,psq.problemcomm
661 661
         <if test="param.correcttype==3">
662 662
              ,2 as answertype
663 663
         </if>

Loading…
取消
儲存