Przeglądaj źródła

修改压力计读取时间为4小时,数据排序为正序

欧阳劲驰 4 miesięcy temu
rodzic
commit
e6c7ffad3d

+ 7 - 0
src/main/java/com/shkpr/service/alambizplugin/bizservice/PipeBurstDataBizService.java

@@ -10,6 +10,7 @@ import com.shkpr.service.alambizplugin.dto.PipeBurstDataPressCur;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
 
 
+import javax.annotation.PostConstruct;
 import java.util.List;
 import java.util.List;
 
 
 /**
 /**
@@ -34,7 +35,13 @@ public class PipeBurstDataBizService {
         mBizType = LogFlagBusiType.BUSI_PIPE_BURST.toStrValue();
         mBizType = LogFlagBusiType.BUSI_PIPE_BURST.toStrValue();
         this.dataPressCurService = dataPressCurService;
         this.dataPressCurService = dataPressCurService;
         this.influxDbUtil = influxDbUtil;
         this.influxDbUtil = influxDbUtil;
+    }
 
 
+    /**
+     * 初始化
+     */
+    @PostConstruct
+    public void init() {
         migratePressCur();
         migratePressCur();
     }
     }
 
 

Plik diff jest za duży
+ 2 - 2
src/main/java/com/shkpr/service/alambizplugin/constants/InfluxdbMetadata.java