Browse Source

新增教研分析回调

wangliang 3 năm trước cách đây
mục cha
commit
13cd522bb9

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

@@ -70,8 +70,7 @@ public class NotifyApiController {
             CalculateNotifyResult calculateNotifyResult = JSONObject.toJavaObject(JSONObject.parseObject(decodeJson), CalculateNotifyResult.class);
             CalculateNotifyResult calculateNotifyResult = JSONObject.toJavaObject(JSONObject.parseObject(decodeJson), CalculateNotifyResult.class);
             String source = Base64Util.encode(ShaUtils.sha1(calculateNotifyResult.getExamId() + calculateNotifyResult.getCourseCode().toString()));
             String source = Base64Util.encode(ShaUtils.sha1(calculateNotifyResult.getExamId() + calculateNotifyResult.getCourseCode().toString()));
             log.info("source:{}", source);
             log.info("source:{}", source);
-            //TODO 此处加批次数据状态更新service方法
-            //更新grade_batch(状态和进度)和grade_batch_paper(状态)
+            //TODO 更新grade_batch(状态和进度)和grade_batch_paper(状态)
         } catch (Exception e) {
         } catch (Exception e) {
             log.error(SystemConstant.LOG_ERROR, e);
             log.error(SystemConstant.LOG_ERROR, e);
             //todo 生成txt文件
             //todo 生成txt文件

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

@@ -166,6 +166,7 @@ public class TSAuthController {
                     2022052700001L + "G"));//试卷编号+卷型
                     2022052700001L + "G"));//试卷编号+卷型
             String source = Base64Util.encode(ShaUtils.sha1(map.get("examId") + map.get("courseCode").toString()));
             String source = Base64Util.encode(ShaUtils.sha1(map.get("examId") + map.get("courseCode").toString()));
             log.info("source:{}", source);
             log.info("source:{}", source);
+            //TODO 更新grade_batch source
             String accessToken = SignatureEntity.build(SignatureType.SECRET, SystemConstant.METHOD, dictionaryConfig.reportOpenDomain().getCalculateApi(), timestamp, basicSchool.getAccessKey(), basicSchool.getAccessSecret());
             String accessToken = SignatureEntity.build(SignatureType.SECRET, SystemConstant.METHOD, dictionaryConfig.reportOpenDomain().getCalculateApi(), timestamp, basicSchool.getAccessKey(), basicSchool.getAccessSecret());
             String result = HttpUtil.postJson(dictionaryConfig.reportOpenDomain().getHostUrl() + dictionaryConfig.reportOpenDomain().getCalculateApi(), JacksonUtil.parseJson(map), accessToken, timestamp);
             String result = HttpUtil.postJson(dictionaryConfig.reportOpenDomain().getHostUrl() + dictionaryConfig.reportOpenDomain().getCalculateApi(), JacksonUtil.parseJson(map), accessToken, timestamp);
             if (Objects.nonNull(result)) {
             if (Objects.nonNull(result)) {
@@ -175,7 +176,6 @@ public class TSAuthController {
                     throw ExceptionResultEnum.ERROR.exception(jsonObject.getString("error"));
                     throw ExceptionResultEnum.ERROR.exception(jsonObject.getString("error"));
                 }
                 }
             }
             }
-            //TODO 更新grade_batch source
         } catch (Exception e) {
         } catch (Exception e) {
             log.error(SystemConstant.LOG_ERROR, e);
             log.error(SystemConstant.LOG_ERROR, e);
             //TODO 生成txt文件
             //TODO 生成txt文件