浏览代码

3.2.0-成绩归档,同步临时日志

xiaof 2 年之前
父节点
当前提交
74fc69ee25

+ 3 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/templete/service/impl/PushLogicServiceImpl.java

@@ -1,5 +1,6 @@
 package com.qmth.distributed.print.business.templete.service.impl;
 
+import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.qmth.distributed.print.business.entity.TSyncExamStudentScore;
 import com.qmth.distributed.print.business.entity.TeachClazz;
@@ -84,6 +85,7 @@ public class PushLogicServiceImpl implements PushLogicService {
                         int pageNos = mod == 0 ? totalCount / pageSize : totalCount / pageSize + 1;
                         for (int i = 1; i <= pageNos; i++) {
                             List<Map> students = stmmsUtils.getStudentScore(schoolId, examId, null, null, null, null, null, null, null, true, i, pageSize);
+                            log.info("返回结果:{},{}",i, JSONObject.toJSONString(students));
                             for (Map student : students) {
                                 try {
                                     Long orgId = null, clazzId = null;
@@ -118,6 +120,7 @@ public class PushLogicServiceImpl implements PushLogicService {
                                     tSyncExamStudentScoreList.add(new TSyncExamStudentScore(student));
                                 } catch (Exception e) {
                                     log.info("同步学生成绩信息失败:{}", e.getMessage());
+                                    e.printStackTrace();
                                     errorTSyncExamStudentScoreList.add(student.get("name") + "," + student.get("examNumber") + "\r\n");
                                 }
                             }