yuanhao 3 rokov pred
rodič
commit
0d7e8aef69

+ 2 - 1
in-client-qn-ui/src/views/record/index.vue

@@ -109,7 +109,8 @@
         types: [{label:"拉取原始数据",value:"PULL_INIT"},
           {label:"推送原始数据",value:"PUSH_INIT"},
           {label:"拉取修正数据",value:"PULL_CORRECT"},
-          {label:"交互权限",value:"COM_PERMISSON"},],
+          {label:"交互权限",value:"COM_PERMISSON"},
+          {label:"拉取修正文件",value:"PULL_CORRECT_JY"},],
         searchForm: {},
         times: [
           this.dateFormat("yyyy-MM-dd HH:mm:ss",new Date(new Date().setHours(0, 0, 0, 0))),

+ 1 - 2
in-client-qn/src/main/java/com/jiayue/insu/inclientqn/service/CorrforeService.java

@@ -96,6 +96,7 @@ public class CorrforeService extends ServiceImpl<CorrforeStMapper, CorrforeSt> {
 
             if (isFile) {
                 minioUtilService.downloadObject(bucketName, downfileName, station.getLocalFilePath() + File.separatorChar + downfileName.split("/")[1]);
+                record.setState(StatusEnum.SUCCESS.getSign());
             }
 
         } catch (Exception e) {
@@ -192,9 +193,7 @@ public class CorrforeService extends ServiceImpl<CorrforeStMapper, CorrforeSt> {
                                         log.warn("========== 请求短期修正数据缺数: {}", list.size());
                                     }
                                     corrforeStService.updateBetweenForecastTime(list.get(0).getTimeFormat(), list.get(list.size() - 1).getTimeFormat(), list);
-
                                     genFile(station, list);
-
                                     result = true;