|
@@ -1561,32 +1561,35 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
&& Validator.isNotEmpty(gradeVo.getOfficialName()) && Validator.isEmpty(gradeVo.getSevenCode())) {
|
|
&& Validator.isNotEmpty(gradeVo.getOfficialName()) && Validator.isEmpty(gradeVo.getSevenCode())) {
|
|
|
ClassGradeQueryBo queryBo = new ClassGradeQueryBo();
|
|
ClassGradeQueryBo queryBo = new ClassGradeQueryBo();
|
|
|
queryBo.setOfficialName(gradeVo.getOfficialName());
|
|
queryBo.setOfficialName(gradeVo.getOfficialName());
|
|
|
- Integer peopleNum = queryOfficialGradeCount(queryBo);
|
|
|
|
|
|
|
+ numAll = queryOfficialGradeCount(queryBo);
|
|
|
|
|
+
|
|
|
|
|
+ //暂时关闭旧系统查询班级通道
|
|
|
//查询旧系统
|
|
//查询旧系统
|
|
|
- Map<String, String> params = new HashMap<>();
|
|
|
|
|
- Long nowTime = DateUtils.getNowTime();
|
|
|
|
|
- String sign = ToolsUtils.EncoderByMd5(nowTime.toString() + "pubilc2022");
|
|
|
|
|
- params.put("stamp", nowTime.toString());
|
|
|
|
|
- params.put("sign", sign);
|
|
|
|
|
- params.put("jsonstr", gradeVo.getOfficialName());
|
|
|
|
|
- String respone = "";
|
|
|
|
|
- log.info("查询业务系统班级人数" + params, "");
|
|
|
|
|
- Integer oldGradeNum = 0;
|
|
|
|
|
- try {
|
|
|
|
|
- respone = HttpUtils.postFormBody(GRADE_COUNT_PATH, params);
|
|
|
|
|
- log.info("查询业务系统班级人数结果" + respone, "");
|
|
|
|
|
- if (!respone.contains("\"Status\":true")) {
|
|
|
|
|
- throw new CustomException("同步请求错误" + respone);
|
|
|
|
|
- }
|
|
|
|
|
- JSONObject jsonObject = (JSONObject) JSONObject.parse(respone);
|
|
|
|
|
- JSONArray dataArray = jsonObject.getJSONArray("Data");
|
|
|
|
|
- JSONObject fObject = dataArray.getJSONObject(0);
|
|
|
|
|
- oldGradeNum = (Integer) fObject.get("num");
|
|
|
|
|
- } catch (IOException e) {
|
|
|
|
|
- log.info("查询业务系统班级人数失败参数" + params, "");
|
|
|
|
|
- throw new CustomException("同步查询班级人数请求错误" + e.getMessage());
|
|
|
|
|
- }
|
|
|
|
|
- numAll = peopleNum + oldGradeNum;
|
|
|
|
|
|
|
+// Integer peopleNum = queryOfficialGradeCount(queryBo);
|
|
|
|
|
+// Map<String, String> params = new HashMap<>();
|
|
|
|
|
+// Long nowTime = DateUtils.getNowTime();
|
|
|
|
|
+// String sign = ToolsUtils.EncoderByMd5(nowTime.toString() + "pubilc2022");
|
|
|
|
|
+// params.put("stamp", nowTime.toString());
|
|
|
|
|
+// params.put("sign", sign);
|
|
|
|
|
+// params.put("jsonstr", gradeVo.getOfficialName());
|
|
|
|
|
+// String respone = "";
|
|
|
|
|
+// log.info("查询业务系统班级人数" + params, "");
|
|
|
|
|
+// Integer oldGradeNum = 0;
|
|
|
|
|
+// try {
|
|
|
|
|
+// respone = HttpUtils.postFormBody(GRADE_COUNT_PATH, params);
|
|
|
|
|
+// log.info("查询业务系统班级人数结果" + respone, "");
|
|
|
|
|
+// if (!respone.contains("\"Status\":true")) {
|
|
|
|
|
+// throw new CustomException("同步请求错误" + respone);
|
|
|
|
|
+// }
|
|
|
|
|
+// JSONObject jsonObject = (JSONObject) JSONObject.parse(respone);
|
|
|
|
|
+// JSONArray dataArray = jsonObject.getJSONArray("Data");
|
|
|
|
|
+// JSONObject fObject = dataArray.getJSONObject(0);
|
|
|
|
|
+// oldGradeNum = (Integer) fObject.get("num");
|
|
|
|
|
+// } catch (IOException e) {
|
|
|
|
|
+// log.info("查询业务系统班级人数失败参数" + params, "");
|
|
|
|
|
+// throw new CustomException("同步查询班级人数请求错误" + e.getMessage());
|
|
|
|
|
+// }
|
|
|
|
|
+// numAll = peopleNum + oldGradeNum;
|
|
|
} else if (Validator.isNotEmpty(gradeVo) && Validator.isNotEmpty(gradeVo.getSevenCode())) {
|
|
} else if (Validator.isNotEmpty(gradeVo) && Validator.isNotEmpty(gradeVo.getSevenCode())) {
|
|
|
//七大员继教
|
|
//七大员继教
|
|
|
Long num = baseMapper.getStudeCountByCode(gradeVo.getSevenCode());
|
|
Long num = baseMapper.getStudeCountByCode(gradeVo.getSevenCode());
|