Browse Source

制作加数据 方便调试 接口优化

wangmiaomiao 9 months ago
parent
commit
392bbe8af8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      slibra-quartz/src/main/java/com/slibra/quartz/task/RyTask.java

+ 3 - 3
slibra-quartz/src/main/java/com/slibra/quartz/task/RyTask.java

@@ -1245,7 +1245,7 @@ public class RyTask
             String result = testPredictor(predictorArr[i]);
             if(StringUtils.isBlank(result) || "error".equals(result)){
                 log.info("预测数据返回结果不符合解析条件,返回结果为{}", result);
-                return;
+                continue;
             }
             JSONObject jsonObject = JSON.parseObject(result);
             String task = jsonObject.getString("task");
@@ -1258,7 +1258,7 @@ public class RyTask
                     log.error("预测数据返回结果为{},长度不是3,无法正常解析", result);
                     //因为部分预测还不支持  所以不需要
 //                    handleXinYiWarningsYC(cscodBzz, split, cscodGkz, BusinessEnum.WarningCategoryEnum.CS_COD_YC.getCode(), hour, normConfig);
-                    return;
+                    continue;
                 }
                 //解析数据 处理报警 调研prompt 保存等
                 this.handlePredictorWarning(split, hour, task, tXinyiIndustries6, tXinyiRobots6, date);
@@ -1431,7 +1431,7 @@ public class RyTask
         String yjHour = null;
         for (int i = 0, splitLength = split.length; i < splitLength; i++) {
             String forecast = split[i];
-            BigDecimal forecastVal = new BigDecimal(forecast);
+            BigDecimal forecastVal = new BigDecimal("10000");
             tXinyiWarningRecord = new TXinyiWarningRecord();
             /*String category = BusinessEnum.WarningCategoryEnum.CS_AD.getCode();*/
             tXinyiWarningRecord.setStatus(0);