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