diff --git a/missiles.log b/missiles.log
new file mode 100644
index 0000000..e7c81af
--- /dev/null
+++ b/missiles.log
@@ -0,0 +1,25 @@
+2023-02-01 13:26:25.056 INFO 28176 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 28176 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:25.067 DEBUG 28176 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:25.067 INFO 28176 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:26.677 ERROR 28176 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
+
+***************************
+APPLICATION FAILED TO START
+***************************
+
+Description:
+
+Field dayDataProvider in com.casic.config.task.TaskConfigurer required a bean of type 'com.casic.dao.WellInfoDao' that could not be found.
+
+The injection point has the following annotations:
+ - @org.springframework.beans.factory.annotation.Autowired(required=true)
+
+
+Action:
+
+Consider defining a bean of type 'com.casic.dao.WellInfoDao' in your configuration.
+
+2023-02-01 13:26:49.502 INFO 38948 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 38948 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:49.502 DEBUG 38948 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:49.503 INFO 38948 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:51.405 INFO 38948 --- [main] com.casic.CasicApplication : Started CasicApplication in 2.137 seconds (JVM running for 2.817)
diff --git a/missiles.log b/missiles.log
new file mode 100644
index 0000000..e7c81af
--- /dev/null
+++ b/missiles.log
@@ -0,0 +1,25 @@
+2023-02-01 13:26:25.056 INFO 28176 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 28176 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:25.067 DEBUG 28176 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:25.067 INFO 28176 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:26.677 ERROR 28176 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
+
+***************************
+APPLICATION FAILED TO START
+***************************
+
+Description:
+
+Field dayDataProvider in com.casic.config.task.TaskConfigurer required a bean of type 'com.casic.dao.WellInfoDao' that could not be found.
+
+The injection point has the following annotations:
+ - @org.springframework.beans.factory.annotation.Autowired(required=true)
+
+
+Action:
+
+Consider defining a bean of type 'com.casic.dao.WellInfoDao' in your configuration.
+
+2023-02-01 13:26:49.502 INFO 38948 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 38948 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:49.502 DEBUG 38948 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:49.503 INFO 38948 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:51.405 INFO 38948 --- [main] com.casic.CasicApplication : Started CasicApplication in 2.137 seconds (JVM running for 2.817)
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..6d8a31d
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,195 @@
+
+
+ 4.0.0
+
+ com.casic
+ device-data-creator
+ 1.0-SNAPSHOT
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.4.5
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+ 2.4.5
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.16
+ compile
+
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ 3.4.3
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.9
+
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.8
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.3.0
+
+
+
+ org.postgresql
+ postgresql
+ 42.2.19
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.20
+
+
+
+
+ com.alibaba
+ druid
+ 1.2.6
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.73
+
+
+
+ redis.clients
+ jedis
+ 3.1.0
+ jar
+
+
+
+ org.springframework.data
+ spring-data-redis
+ 2.4.8
+
+
+
+
+ com.oracle.database.jdbc
+ ojdbc6
+ 11.2.0.4
+
+
+
+ xyz.downgoon
+ snowflake
+ 1.0.0
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.4.5
+
+ true
+
+ com.casic.CasicApplication
+ exec
+
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+
+ true
+
+
+ src/main/resources
+
+ **/*.xml
+
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/missiles.log b/missiles.log
new file mode 100644
index 0000000..e7c81af
--- /dev/null
+++ b/missiles.log
@@ -0,0 +1,25 @@
+2023-02-01 13:26:25.056 INFO 28176 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 28176 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:25.067 DEBUG 28176 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:25.067 INFO 28176 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:26.677 ERROR 28176 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
+
+***************************
+APPLICATION FAILED TO START
+***************************
+
+Description:
+
+Field dayDataProvider in com.casic.config.task.TaskConfigurer required a bean of type 'com.casic.dao.WellInfoDao' that could not be found.
+
+The injection point has the following annotations:
+ - @org.springframework.beans.factory.annotation.Autowired(required=true)
+
+
+Action:
+
+Consider defining a bean of type 'com.casic.dao.WellInfoDao' in your configuration.
+
+2023-02-01 13:26:49.502 INFO 38948 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 38948 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:49.502 DEBUG 38948 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:49.503 INFO 38948 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:51.405 INFO 38948 --- [main] com.casic.CasicApplication : Started CasicApplication in 2.137 seconds (JVM running for 2.817)
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..6d8a31d
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,195 @@
+
+
+ 4.0.0
+
+ com.casic
+ device-data-creator
+ 1.0-SNAPSHOT
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.4.5
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+ 2.4.5
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.16
+ compile
+
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ 3.4.3
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.9
+
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.8
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.3.0
+
+
+
+ org.postgresql
+ postgresql
+ 42.2.19
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.20
+
+
+
+
+ com.alibaba
+ druid
+ 1.2.6
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.73
+
+
+
+ redis.clients
+ jedis
+ 3.1.0
+ jar
+
+
+
+ org.springframework.data
+ spring-data-redis
+ 2.4.8
+
+
+
+
+ com.oracle.database.jdbc
+ ojdbc6
+ 11.2.0.4
+
+
+
+ xyz.downgoon
+ snowflake
+ 1.0.0
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.4.5
+
+ true
+
+ com.casic.CasicApplication
+ exec
+
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+
+ true
+
+
+ src/main/resources
+
+ **/*.xml
+
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/casic/CasicApplication.java b/src/main/java/com/casic/CasicApplication.java
new file mode 100644
index 0000000..22fa08d
--- /dev/null
+++ b/src/main/java/com/casic/CasicApplication.java
@@ -0,0 +1,23 @@
+package com.casic;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author cz
+ * @Date 2022/09/08 14:28
+ */
+
+@Slf4j
+//@ComponentScan(basePackages= "com.casic.**")
+@SpringBootApplication
+public class CasicApplication {
+ public static void main(String[] args) {
+ log.info("CasicApplication is success!");
+ SpringApplication.run(CasicApplication.class, args);
+ }
+}
diff --git a/missiles.log b/missiles.log
new file mode 100644
index 0000000..e7c81af
--- /dev/null
+++ b/missiles.log
@@ -0,0 +1,25 @@
+2023-02-01 13:26:25.056 INFO 28176 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 28176 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:25.067 DEBUG 28176 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:25.067 INFO 28176 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:26.677 ERROR 28176 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
+
+***************************
+APPLICATION FAILED TO START
+***************************
+
+Description:
+
+Field dayDataProvider in com.casic.config.task.TaskConfigurer required a bean of type 'com.casic.dao.WellInfoDao' that could not be found.
+
+The injection point has the following annotations:
+ - @org.springframework.beans.factory.annotation.Autowired(required=true)
+
+
+Action:
+
+Consider defining a bean of type 'com.casic.dao.WellInfoDao' in your configuration.
+
+2023-02-01 13:26:49.502 INFO 38948 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 38948 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:49.502 DEBUG 38948 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:49.503 INFO 38948 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:51.405 INFO 38948 --- [main] com.casic.CasicApplication : Started CasicApplication in 2.137 seconds (JVM running for 2.817)
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..6d8a31d
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,195 @@
+
+
+ 4.0.0
+
+ com.casic
+ device-data-creator
+ 1.0-SNAPSHOT
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.4.5
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+ 2.4.5
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.16
+ compile
+
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ 3.4.3
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.9
+
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.8
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.3.0
+
+
+
+ org.postgresql
+ postgresql
+ 42.2.19
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.20
+
+
+
+
+ com.alibaba
+ druid
+ 1.2.6
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.73
+
+
+
+ redis.clients
+ jedis
+ 3.1.0
+ jar
+
+
+
+ org.springframework.data
+ spring-data-redis
+ 2.4.8
+
+
+
+
+ com.oracle.database.jdbc
+ ojdbc6
+ 11.2.0.4
+
+
+
+ xyz.downgoon
+ snowflake
+ 1.0.0
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.4.5
+
+ true
+
+ com.casic.CasicApplication
+ exec
+
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+
+ true
+
+
+ src/main/resources
+
+ **/*.xml
+
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/casic/CasicApplication.java b/src/main/java/com/casic/CasicApplication.java
new file mode 100644
index 0000000..22fa08d
--- /dev/null
+++ b/src/main/java/com/casic/CasicApplication.java
@@ -0,0 +1,23 @@
+package com.casic;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author cz
+ * @Date 2022/09/08 14:28
+ */
+
+@Slf4j
+//@ComponentScan(basePackages= "com.casic.**")
+@SpringBootApplication
+public class CasicApplication {
+ public static void main(String[] args) {
+ log.info("CasicApplication is success!");
+ SpringApplication.run(CasicApplication.class, args);
+ }
+}
diff --git a/src/main/java/com/casic/config/DeviceTypeConfig.java b/src/main/java/com/casic/config/DeviceTypeConfig.java
new file mode 100644
index 0000000..a2b7b07
--- /dev/null
+++ b/src/main/java/com/casic/config/DeviceTypeConfig.java
@@ -0,0 +1,16 @@
+package com.casic.config;
+
+import lombok.Data;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@Data
+public class DeviceTypeConfig {
+
+ @Value("${casic.device.hour-types}")
+ private String hourTypes;
+
+ @Value("${casic.device.day-types}")
+ private String dayTypes;
+}
diff --git a/missiles.log b/missiles.log
new file mode 100644
index 0000000..e7c81af
--- /dev/null
+++ b/missiles.log
@@ -0,0 +1,25 @@
+2023-02-01 13:26:25.056 INFO 28176 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 28176 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:25.067 DEBUG 28176 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:25.067 INFO 28176 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:26.677 ERROR 28176 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
+
+***************************
+APPLICATION FAILED TO START
+***************************
+
+Description:
+
+Field dayDataProvider in com.casic.config.task.TaskConfigurer required a bean of type 'com.casic.dao.WellInfoDao' that could not be found.
+
+The injection point has the following annotations:
+ - @org.springframework.beans.factory.annotation.Autowired(required=true)
+
+
+Action:
+
+Consider defining a bean of type 'com.casic.dao.WellInfoDao' in your configuration.
+
+2023-02-01 13:26:49.502 INFO 38948 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 38948 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:49.502 DEBUG 38948 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:49.503 INFO 38948 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:51.405 INFO 38948 --- [main] com.casic.CasicApplication : Started CasicApplication in 2.137 seconds (JVM running for 2.817)
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..6d8a31d
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,195 @@
+
+
+ 4.0.0
+
+ com.casic
+ device-data-creator
+ 1.0-SNAPSHOT
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.4.5
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+ 2.4.5
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.16
+ compile
+
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ 3.4.3
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.9
+
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.8
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.3.0
+
+
+
+ org.postgresql
+ postgresql
+ 42.2.19
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.20
+
+
+
+
+ com.alibaba
+ druid
+ 1.2.6
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.73
+
+
+
+ redis.clients
+ jedis
+ 3.1.0
+ jar
+
+
+
+ org.springframework.data
+ spring-data-redis
+ 2.4.8
+
+
+
+
+ com.oracle.database.jdbc
+ ojdbc6
+ 11.2.0.4
+
+
+
+ xyz.downgoon
+ snowflake
+ 1.0.0
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.4.5
+
+ true
+
+ com.casic.CasicApplication
+ exec
+
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+
+ true
+
+
+ src/main/resources
+
+ **/*.xml
+
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/casic/CasicApplication.java b/src/main/java/com/casic/CasicApplication.java
new file mode 100644
index 0000000..22fa08d
--- /dev/null
+++ b/src/main/java/com/casic/CasicApplication.java
@@ -0,0 +1,23 @@
+package com.casic;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author cz
+ * @Date 2022/09/08 14:28
+ */
+
+@Slf4j
+//@ComponentScan(basePackages= "com.casic.**")
+@SpringBootApplication
+public class CasicApplication {
+ public static void main(String[] args) {
+ log.info("CasicApplication is success!");
+ SpringApplication.run(CasicApplication.class, args);
+ }
+}
diff --git a/src/main/java/com/casic/config/DeviceTypeConfig.java b/src/main/java/com/casic/config/DeviceTypeConfig.java
new file mode 100644
index 0000000..a2b7b07
--- /dev/null
+++ b/src/main/java/com/casic/config/DeviceTypeConfig.java
@@ -0,0 +1,16 @@
+package com.casic.config;
+
+import lombok.Data;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@Data
+public class DeviceTypeConfig {
+
+ @Value("${casic.device.hour-types}")
+ private String hourTypes;
+
+ @Value("${casic.device.day-types}")
+ private String dayTypes;
+}
diff --git a/src/main/java/com/casic/config/TimeConfig.java b/src/main/java/com/casic/config/TimeConfig.java
new file mode 100644
index 0000000..9c47d9f
--- /dev/null
+++ b/src/main/java/com/casic/config/TimeConfig.java
@@ -0,0 +1,17 @@
+package com.casic.config;
+
+import lombok.Data;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+@Data
+@Configuration
+public class TimeConfig {
+
+ @Value("${casic.task.cron}")
+ private String dayCronTime;
+
+ @Value("${casic.task.gas-cron}")
+ private String hourCronTime;
+
+}
diff --git a/missiles.log b/missiles.log
new file mode 100644
index 0000000..e7c81af
--- /dev/null
+++ b/missiles.log
@@ -0,0 +1,25 @@
+2023-02-01 13:26:25.056 INFO 28176 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 28176 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:25.067 DEBUG 28176 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:25.067 INFO 28176 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:26.677 ERROR 28176 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
+
+***************************
+APPLICATION FAILED TO START
+***************************
+
+Description:
+
+Field dayDataProvider in com.casic.config.task.TaskConfigurer required a bean of type 'com.casic.dao.WellInfoDao' that could not be found.
+
+The injection point has the following annotations:
+ - @org.springframework.beans.factory.annotation.Autowired(required=true)
+
+
+Action:
+
+Consider defining a bean of type 'com.casic.dao.WellInfoDao' in your configuration.
+
+2023-02-01 13:26:49.502 INFO 38948 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 38948 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:49.502 DEBUG 38948 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:49.503 INFO 38948 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:51.405 INFO 38948 --- [main] com.casic.CasicApplication : Started CasicApplication in 2.137 seconds (JVM running for 2.817)
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..6d8a31d
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,195 @@
+
+
+ 4.0.0
+
+ com.casic
+ device-data-creator
+ 1.0-SNAPSHOT
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.4.5
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+ 2.4.5
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.16
+ compile
+
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ 3.4.3
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.9
+
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.8
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.3.0
+
+
+
+ org.postgresql
+ postgresql
+ 42.2.19
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.20
+
+
+
+
+ com.alibaba
+ druid
+ 1.2.6
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.73
+
+
+
+ redis.clients
+ jedis
+ 3.1.0
+ jar
+
+
+
+ org.springframework.data
+ spring-data-redis
+ 2.4.8
+
+
+
+
+ com.oracle.database.jdbc
+ ojdbc6
+ 11.2.0.4
+
+
+
+ xyz.downgoon
+ snowflake
+ 1.0.0
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.4.5
+
+ true
+
+ com.casic.CasicApplication
+ exec
+
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+
+ true
+
+
+ src/main/resources
+
+ **/*.xml
+
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/casic/CasicApplication.java b/src/main/java/com/casic/CasicApplication.java
new file mode 100644
index 0000000..22fa08d
--- /dev/null
+++ b/src/main/java/com/casic/CasicApplication.java
@@ -0,0 +1,23 @@
+package com.casic;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author cz
+ * @Date 2022/09/08 14:28
+ */
+
+@Slf4j
+//@ComponentScan(basePackages= "com.casic.**")
+@SpringBootApplication
+public class CasicApplication {
+ public static void main(String[] args) {
+ log.info("CasicApplication is success!");
+ SpringApplication.run(CasicApplication.class, args);
+ }
+}
diff --git a/src/main/java/com/casic/config/DeviceTypeConfig.java b/src/main/java/com/casic/config/DeviceTypeConfig.java
new file mode 100644
index 0000000..a2b7b07
--- /dev/null
+++ b/src/main/java/com/casic/config/DeviceTypeConfig.java
@@ -0,0 +1,16 @@
+package com.casic.config;
+
+import lombok.Data;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@Data
+public class DeviceTypeConfig {
+
+ @Value("${casic.device.hour-types}")
+ private String hourTypes;
+
+ @Value("${casic.device.day-types}")
+ private String dayTypes;
+}
diff --git a/src/main/java/com/casic/config/TimeConfig.java b/src/main/java/com/casic/config/TimeConfig.java
new file mode 100644
index 0000000..9c47d9f
--- /dev/null
+++ b/src/main/java/com/casic/config/TimeConfig.java
@@ -0,0 +1,17 @@
+package com.casic.config;
+
+import lombok.Data;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+@Data
+@Configuration
+public class TimeConfig {
+
+ @Value("${casic.task.cron}")
+ private String dayCronTime;
+
+ @Value("${casic.task.gas-cron}")
+ private String hourCronTime;
+
+}
diff --git a/src/main/java/com/casic/config/task/TaskConfigurer.java b/src/main/java/com/casic/config/task/TaskConfigurer.java
new file mode 100644
index 0000000..ecca2cb
--- /dev/null
+++ b/src/main/java/com/casic/config/task/TaskConfigurer.java
@@ -0,0 +1,57 @@
+package com.casic.config.task;
+
+import com.casic.config.TimeConfig;
+import com.casic.service.DayDataService;
+import com.casic.service.HourDataService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.annotation.SchedulingConfigurer;
+import org.springframework.scheduling.config.ScheduledTaskRegistrar;
+import org.springframework.scheduling.config.TriggerTask;
+import org.springframework.scheduling.support.CronTrigger;
+
+@Configuration
+@EnableScheduling
+public class TaskConfigurer implements SchedulingConfigurer {
+
+ @Autowired
+ private HourDataService hourDataProvider;
+ @Autowired
+ private DayDataService dayDataProvider;
+ @Autowired
+ private TimeConfig timeConfig;
+
+ @Override
+ public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
+ TriggerTask triggrtTask = new TriggerTask(nextDayDevice(),
+ triggerContext -> {
+ return new CronTrigger(timeConfig.getDayCronTime()).nextExecutionTime(triggerContext);
+ });
+ taskRegistrar.addTriggerTask(triggrtTask);
+ triggrtTask = new TriggerTask(nextHourDevice(),
+ triggerContext -> {
+ return new CronTrigger(timeConfig.getHourCronTime()).nextExecutionTime(triggerContext);
+ });
+ taskRegistrar.addTriggerTask(triggrtTask);
+ }
+
+ private Runnable nextDayDevice() {
+ return new Runnable() {
+ @Override
+ public void run() {
+ dayDataProvider.nextDayData();
+ }
+ };
+ }
+
+ private Runnable nextHourDevice() {
+ return new Runnable() {
+ @Override
+ public void run() {
+ hourDataProvider.nextHourData();
+ }
+ };
+ }
+
+}
\ No newline at end of file
diff --git a/missiles.log b/missiles.log
new file mode 100644
index 0000000..e7c81af
--- /dev/null
+++ b/missiles.log
@@ -0,0 +1,25 @@
+2023-02-01 13:26:25.056 INFO 28176 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 28176 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:25.067 DEBUG 28176 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:25.067 INFO 28176 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:26.677 ERROR 28176 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
+
+***************************
+APPLICATION FAILED TO START
+***************************
+
+Description:
+
+Field dayDataProvider in com.casic.config.task.TaskConfigurer required a bean of type 'com.casic.dao.WellInfoDao' that could not be found.
+
+The injection point has the following annotations:
+ - @org.springframework.beans.factory.annotation.Autowired(required=true)
+
+
+Action:
+
+Consider defining a bean of type 'com.casic.dao.WellInfoDao' in your configuration.
+
+2023-02-01 13:26:49.502 INFO 38948 --- [main] com.casic.CasicApplication : Starting CasicApplication using Java 1.8.0_91 on yishengpingan with PID 38948 (D:\cz\203\管网\升级\mysql\zc-device-data\target\classes started by 77042 in D:\cz\203\管网\升级\mysql\zc-device-data)
+2023-02-01 13:26:49.502 DEBUG 38948 --- [main] com.casic.CasicApplication : Running with Spring Boot v2.4.5, Spring v5.3.6
+2023-02-01 13:26:49.503 INFO 38948 --- [main] com.casic.CasicApplication : The following profiles are active: dev
+2023-02-01 13:26:51.405 INFO 38948 --- [main] com.casic.CasicApplication : Started CasicApplication in 2.137 seconds (JVM running for 2.817)
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..6d8a31d
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,195 @@
+
+
+ 4.0.0
+
+ com.casic
+ device-data-creator
+ 1.0-SNAPSHOT
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ 2.4.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.4.5
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+ 2.4.5
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.16
+ compile
+
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ 3.4.3
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.9
+
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.8
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+
+ org.quartz-scheduler
+ quartz
+ 2.3.0
+
+
+
+ org.postgresql
+ postgresql
+ 42.2.19
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.20
+
+
+
+
+ com.alibaba
+ druid
+ 1.2.6
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.73
+
+
+
+ redis.clients
+ jedis
+ 3.1.0
+ jar
+
+
+
+ org.springframework.data
+ spring-data-redis
+ 2.4.8
+
+
+
+
+ com.oracle.database.jdbc
+ ojdbc6
+ 11.2.0.4
+
+
+
+ xyz.downgoon
+ snowflake
+ 1.0.0
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.4.5
+
+ true
+
+ com.casic.CasicApplication
+ exec
+
+
+
+
+ repackage
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+
+ true
+
+
+ src/main/resources
+
+ **/*.xml
+
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/casic/CasicApplication.java b/src/main/java/com/casic/CasicApplication.java
new file mode 100644
index 0000000..22fa08d
--- /dev/null
+++ b/src/main/java/com/casic/CasicApplication.java
@@ -0,0 +1,23 @@
+package com.casic;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author cz
+ * @Date 2022/09/08 14:28
+ */
+
+@Slf4j
+//@ComponentScan(basePackages= "com.casic.**")
+@SpringBootApplication
+public class CasicApplication {
+ public static void main(String[] args) {
+ log.info("CasicApplication is success!");
+ SpringApplication.run(CasicApplication.class, args);
+ }
+}
diff --git a/src/main/java/com/casic/config/DeviceTypeConfig.java b/src/main/java/com/casic/config/DeviceTypeConfig.java
new file mode 100644
index 0000000..a2b7b07
--- /dev/null
+++ b/src/main/java/com/casic/config/DeviceTypeConfig.java
@@ -0,0 +1,16 @@
+package com.casic.config;
+
+import lombok.Data;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@Data
+public class DeviceTypeConfig {
+
+ @Value("${casic.device.hour-types}")
+ private String hourTypes;
+
+ @Value("${casic.device.day-types}")
+ private String dayTypes;
+}
diff --git a/src/main/java/com/casic/config/TimeConfig.java b/src/main/java/com/casic/config/TimeConfig.java
new file mode 100644
index 0000000..9c47d9f
--- /dev/null
+++ b/src/main/java/com/casic/config/TimeConfig.java
@@ -0,0 +1,17 @@
+package com.casic.config;
+
+import lombok.Data;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+@Data
+@Configuration
+public class TimeConfig {
+
+ @Value("${casic.task.cron}")
+ private String dayCronTime;
+
+ @Value("${casic.task.gas-cron}")
+ private String hourCronTime;
+
+}
diff --git a/src/main/java/com/casic/config/task/TaskConfigurer.java b/src/main/java/com/casic/config/task/TaskConfigurer.java
new file mode 100644
index 0000000..ecca2cb
--- /dev/null
+++ b/src/main/java/com/casic/config/task/TaskConfigurer.java
@@ -0,0 +1,57 @@
+package com.casic.config.task;
+
+import com.casic.config.TimeConfig;
+import com.casic.service.DayDataService;
+import com.casic.service.HourDataService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.annotation.SchedulingConfigurer;
+import org.springframework.scheduling.config.ScheduledTaskRegistrar;
+import org.springframework.scheduling.config.TriggerTask;
+import org.springframework.scheduling.support.CronTrigger;
+
+@Configuration
+@EnableScheduling
+public class TaskConfigurer implements SchedulingConfigurer {
+
+ @Autowired
+ private HourDataService hourDataProvider;
+ @Autowired
+ private DayDataService dayDataProvider;
+ @Autowired
+ private TimeConfig timeConfig;
+
+ @Override
+ public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
+ TriggerTask triggrtTask = new TriggerTask(nextDayDevice(),
+ triggerContext -> {
+ return new CronTrigger(timeConfig.getDayCronTime()).nextExecutionTime(triggerContext);
+ });
+ taskRegistrar.addTriggerTask(triggrtTask);
+ triggrtTask = new TriggerTask(nextHourDevice(),
+ triggerContext -> {
+ return new CronTrigger(timeConfig.getHourCronTime()).nextExecutionTime(triggerContext);
+ });
+ taskRegistrar.addTriggerTask(triggrtTask);
+ }
+
+ private Runnable nextDayDevice() {
+ return new Runnable() {
+ @Override
+ public void run() {
+ dayDataProvider.nextDayData();
+ }
+ };
+ }
+
+ private Runnable nextHourDevice() {
+ return new Runnable() {
+ @Override
+ public void run() {
+ hourDataProvider.nextHourData();
+ }
+ };
+ }
+
+}
\ No newline at end of file
diff --git a/src/main/java/com/casic/dao/DayDataDao.java b/src/main/java/com/casic/dao/DayDataDao.java
new file mode 100644
index 0000000..f7c3f12
--- /dev/null
+++ b/src/main/java/com/casic/dao/DayDataDao.java
@@ -0,0 +1,19 @@
+package com.casic.dao;
+
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+import java.util.Map;
+
+@Mapper
+public interface DayDataDao {
+
+ @Select("SELECT devcode,dbid " +
+ "FROM ALARM_DEVICE " +
+ "WHERE DEVICETYPE_ID=#{deviceType} " +
+ "AND ACTIVE=1 ")
+ List