|
|
@@ -1332,8 +1332,11 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
try {
|
|
|
respone = HttpUtils.postFormBody(GRADE_COUNT_PATH, params);
|
|
|
log.info("查询业务系统班级人数结果" + respone, "");
|
|
|
+ if(Validator.isEmpty(respone)){
|
|
|
+ throw new CustomException("旧系统同步请求错误" + respone);
|
|
|
+ }
|
|
|
if (!respone.contains("\"Status\":true")) {
|
|
|
- throw new CustomException("同步请求错误" + respone);
|
|
|
+ throw new CustomException("旧系统同步请求错误" + respone);
|
|
|
}
|
|
|
JSONObject jsonObject = (JSONObject) JSONObject.parse(respone);
|
|
|
JSONArray dataArray = jsonObject.getJSONArray("Data");
|
|
|
@@ -1341,7 +1344,7 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
oldGradeNum = (Integer) fObject.get("num");
|
|
|
} catch (IOException e) {
|
|
|
log.info("查询业务系统班级人数失败参数" + params, "");
|
|
|
- throw new CustomException("同步查询班级人数请求错误" + e.getMessage());
|
|
|
+ throw new CustomException("旧系统同步查询班级人数请求错误" + e.getMessage());
|
|
|
}
|
|
|
numAll = peopleNum + oldGradeNum;
|
|
|
} else if (Validator.isNotEmpty(gradeVo) && Validator.isNotEmpty(gradeVo.getSevenCode())){
|