Browse Source

批阅添加学生批改后图片

ywx
雍文秀 1 month ago
parent
commit
ccda38acb6

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

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

+ 3
- 3
smarking/src/main/resources/mapper/papercheck/MsPaperCheckTeacherProblemMapper.xml View File

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

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

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

Loading…
Cancel
Save