Browse Source

学生报告

仲裁、疑难卷历史详情
ywx
雍文秀 1 week ago
parent
commit
b39a1c1ca8

+ 32
- 0
smarking/src/main/java/com/xhkjedu/smarking/controller/report/XsReportController.java View File

@@ -22,7 +22,39 @@ public class XsReportController {
22 22
     @Resource
23 23
     private MsrStudentService msrStudentService;
24 24
 
25
+    /**
26
+     * @Description 考试基本成绩分数
27
+     * @Date 2025/1/22 15:28
28
+     * @Author YWX
29
+     * @Param [params]
30
+     * @Return com.xhkjedu.vo.ResultVo
31
+     **/
32
+    @PostMapping("/jbcj")
33
+    public ResultVo listStudentForJbCj(@RequestBody ExamReportParams params) {
34
+        N_Utils.validation(new Object[]{
35
+                params.getExamid(), "考试id", 1
36
+                , params.getStudentid(), "学生id", 1
37
+                , params.getClassid(), "班级id", 1
38
+        });
39
+        return new ResultVo(0, "获取成功", msrStudentService.listStudentForJbCj(params));
40
+    }
25 41
 
42
+    /**
43
+     * @Description 学科的强弱对比分析
44
+     * @Date 2025/1/22 16:24
45
+     * @Author YWX
46
+     * @Param [params]
47
+     * @Return com.xhkjedu.vo.ResultVo
48
+     **/
49
+    @PostMapping("/qrdb")
50
+    public ResultVo listStudentForQrDb(@RequestBody ExamReportParams params) {
51
+        N_Utils.validation(new Object[]{
52
+                params.getExamid(), "考试id", 1
53
+                , params.getStudentid(), "学生id", 1
54
+                , params.getClassid(), "班级id", 1
55
+        });
56
+        return new ResultVo(0, "获取成功", msrStudentService.listStudentForQrDb(params));
57
+    }
26 58
 
27 59
     /*
28 60
      * @Description 学生各学科试题分析

+ 6
- 0
smarking/src/main/java/com/xhkjedu/smarking/mapper/report/reportstu/MsrStudentMapper.java View File

@@ -39,4 +39,10 @@ public interface MsrStudentMapper extends TkMapper<MsrStudent> {
39 39
 
40 40
     //学科报告-重点学生-校排名前/后X的学生
41 41
     List<Map<String, Object>> listStudentForXkZdXs(@Param("params") StudentParams params);
42
+
43
+    //学生报告-考试基本成绩分数
44
+    List<Map<String, Object>> listStudentForJbCj(@Param("params") ExamReportParams params);
45
+
46
+    //学生报告-学科的强弱对比分析
47
+    List<Map<String, Object>> listStudentForQrDb(@Param("params") ExamReportParams params);
42 48
 }

+ 22
- 0
smarking/src/main/java/com/xhkjedu/smarking/service/report/report/MsrStudentService.java View File

@@ -250,4 +250,26 @@ public class MsrStudentService {
250 250
         }
251 251
         return list;
252 252
     }
253
+
254
+    /**
255
+     * @Description 学生报告-考试基本成绩分数
256
+     * @Date 2025/1/22 15:28
257
+     * @Author YWX
258
+     * @Param [params]
259
+     * @Return java.lang.Object
260
+     **/
261
+    public Object listStudentForJbCj(ExamReportParams params) {
262
+        return msrStudentMapper.listStudentForJbCj(params);
263
+    }
264
+
265
+    /**
266
+     * @Description 学生报告-学科的强弱对比分析
267
+     * @Date 2025/1/22 16:29
268
+     * @Author YWX
269
+     * @Param [params]
270
+     * @Return java.lang.Object
271
+     **/
272
+    public Object listStudentForQrDb(ExamReportParams params) {
273
+        return msrStudentMapper.listStudentForQrDb(params);
274
+    }
253 275
 }

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

@@ -204,7 +204,12 @@
204 204
     <!--仲裁历史详情-->
205 205
     <select id="detailHistory" resultType="java.util.Map">
206 206
         select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psq.stuanswer,psq.stumerge,pcta.mpsbid,psq.arbitratescore
207
-        ,if(#{param.correcttype}=3,2,psq.answertype) as answertype
207
+        <if test="param.correcttype==3">
208
+            ,2 as answertype
209
+        </if>
210
+        <if test="param.correcttype!=3">
211
+            ,psq.answertype
212
+        </if>
208 213
         ,pcta.hasgood,pcta.hasbad,pcta.hasproblem,pcta.problemtype,pcta.problemcomm,pcta.checkscore,pcta.arbitratescore
209 214
         from ms_paper_check_teacher_arbitrate pcta
210 215
         <if test="param.correcttype==3">

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

@@ -113,7 +113,12 @@
113 113
     <select id="getPreProblem" resultType="java.util.Map">
114 114
         select psq.stuanswer,psq.stumerge,psq.hasproblem,psq.problemtype,psq.problemcomm
115 115
         ,pctp.mpid,pctp.mblockid,pctp.mpsbid,pctp.taskorder,pctp.checkscore
116
-        ,if(#{param.correcttype}=3,2,psq.answertype) as answertype
116
+        <if test="param.correcttype==3">
117
+            ,2 as answertype
118
+        </if>
119
+        <if test="param.correcttype!=3">
120
+            ,psq.answertype
121
+        </if>
117 122
         ,u.username as studentname,u.examno,u2.username as teachername
118 123
         from ms_paper_check_teacher_problem pctp
119 124
         <if test="param.correcttype==3">
@@ -143,7 +148,12 @@
143 148
     <select id="detailHistory" resultType="java.util.Map">
144 149
         select psq.stuanswer,psq.stumerge,psq.hasproblem,psq.problemtype,psq.problemcomm
145 150
         ,pctp.mpid,pctp.mblockid,pctp.mpsbid,pctp.taskorder,pctp.checkscore,pctp.arbitratescore
146
-        ,if(#{param.correcttype}=3,2,psq.answertype) as answertype
151
+        <if test="param.correcttype==3">
152
+            ,2 as answertype
153
+        </if>
154
+        <if test="param.correcttype!=3">
155
+            ,psq.answertype
156
+        </if>
147 157
         ,u.username as studentname,u.examno,u2.username as teachername
148 158
         from ms_paper_check_teacher_problem pctp
149 159
         <if test="param.correcttype==3">

+ 15
- 0
smarking/src/main/resources/mapper/report/reportstu/MsrStudentMapper.xml View File

@@ -134,4 +134,19 @@
134 134
             and s.schoolrank>=#{params.dworder}
135 135
         </if>
136 136
     </select>
137
+    <!--学生报告-考试基本成绩分数-->
138
+    <select id="listStudentForJbCj" resultType="java.util.Map">
139
+        select s.subjectid,s.stuscore,s.schoolrank,s.highschool
140
+        ,if(s.subjectid='zf','总分',(select ts.subjectname from t_subject ts where ts.subjectid=s.subjectid)) as subjectname
141
+        ,ms.avgscore,ms.maxscore,ms.esscore,ms.ssscore,ms.lsscore,ms.bsscore
142
+        from msr_student s inner join msr_subject ms on s.examid=ms.examid and s.subjectid=ms.subjectid
143
+        where s.examid=#{params.examid} and s.studentid=#{params.studentid} and s.classid=#{params.classid}
144
+    </select>
145
+    <!--学生报告-学科的强弱对比分析-->
146
+    <select id="listStudentForQrDb" resultType="java.util.Map">
147
+        select s.subjectid,ts.subjectname,s.xkqrz
148
+        from msr_student s inner join t_subject ts on ts.subjectid=s.subjectid
149
+        where s.examid=#{params.examid} and s.studentid=#{params.studentid} and s.classid=#{params.classid}
150
+        and s.subjectid!='zf'
151
+    </select>
137 152
 </mapper>

Loading…
Cancel
Save