فهرست منبع

3.0.1-同步云阅卷bug修改

xiaof 3 سال پیش
والد
کامیت
93703a2835

+ 4 - 4
distributed-print-business/src/main/resources/mapper/ExamStudentMapper.xml

@@ -218,8 +218,8 @@
              FROM
                  exam_student
              WHERE
-                 school_id = 1 AND student_code = 1
-               AND ticket_number = 1) a
+                 school_id = #{schoolId} AND student_code = #{studentCode}
+               AND ticket_number = #{examNumber}) a
                 JOIN
             exam_detail_course b ON a.exam_detail_course_id = b.id
                 JOIN
@@ -229,8 +229,8 @@
                 AND b.course_code = d.course_code
                 AND b.paper_number = d.paper_number
         WHERE
-            c.print_plan_id = 1
-          AND CONCAT(b.course_code, a.paper_type, d.sequence) = 1
+            c.print_plan_id = #{printPlanId}
+          AND CONCAT(b.course_code, a.paper_type, d.sequence) = #{subjectCode}
     </select>
 
 </mapper>

+ 1 - 1
distributed-print/src/main/java/com/qmth/distributed/print/api/TSyncExamStudentScoreController.java

@@ -107,7 +107,7 @@ public class TSyncExamStudentScoreController {
     @RequestMapping(value = "/score/sync", method = RequestMethod.POST)
     public Result sync(@ApiParam(value = "学期ID", required = true) @RequestParam String semesterId,
                        @ApiParam(value = "考试ID", required = true) @RequestParam String examId,
-                       @ApiParam(value = "课程编码", required = true) @RequestParam String courseCode) {
+                       @ApiParam(value = "课程编码", required = false) @RequestParam String courseCode) {
         SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
         QueryWrapper<ExamPrintPlan> examPrintPlanQueryWrapper = new QueryWrapper<ExamPrintPlan>();
         examPrintPlanQueryWrapper.select(" DISTINCT third_relate_id ").eq("school_id", sysUser.getSchoolId())