Przeglądaj źródła

Merge branch 'master' of http://124.70.43.205:3000/GYEE_R.D/gaia

xushili 1 rok temu
rodzic
commit
115e0ca5ee

Plik diff jest za duży
+ 3232 - 0
electricity/meter/logs/2023-05/error-2023-05-04.1.log


+ 333 - 0
electricity/meter/logs/2023-05/warn-2023-05-08.1.log

@@ -0,0 +1,333 @@
+2023-05-08 11:46:31.090  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:46:31.102  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 11:46:31.110  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:46:31.116  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:46:42.331  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 11:46:43.637  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 11:46:43.638  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 11:46:43.638  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 11:46:43.639  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 11:47:40.008  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:47:40.017  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 11:47:40.024  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:47:40.030  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:47:48.102  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 11:47:49.143  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 11:47:49.144  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 11:47:49.144  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 11:47:49.145  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 11:48:27.625  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:48:27.634  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 11:48:27.644  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:48:27.652  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:48:35.670  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 11:48:36.711  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 11:48:36.711  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 11:48:36.712  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 11:48:36.712  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 11:49:47.096  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:49:47.105  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 11:49:47.111  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:49:47.118  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 11:49:55.261  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 11:50:05.710  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 11:50:05.711  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 11:50:05.711  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 11:50:05.711  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 12:39:53.641  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 12:39:53.648  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 12:39:53.661  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 12:39:53.667  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 12:40:01.584  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 12:44:44.562  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 12:44:44.562  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 12:44:44.561  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 12:44:44.563  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 13:57:13.966  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 13:57:13.976  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 13:57:13.982  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 13:57:13.992  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 13:57:22.597  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 13:58:05.351  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 13:58:05.352  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 13:58:05.352  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 13:58:05.352  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:14:08.562  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:14:08.570  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:14:08.576  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:14:08.582  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:14:17.696  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:15:03.382  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:15:03.383  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:15:03.383  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:15:03.383  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:17:29.666  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:17:29.674  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:17:29.681  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:17:29.689  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:17:38.551  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:17:41.477  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:17:41.477  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:17:41.478  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:17:41.478  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:22:58.318  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:22:58.326  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:22:58.332  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:22:58.340  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:23:07.085  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:23:08.374  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:23:08.374  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:23:08.375  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:23:08.375  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:23:45.205  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:23:45.214  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:23:45.220  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:23:45.227  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:23:53.832  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:23:56.451  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:23:56.452  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:23:56.452  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:23:56.452  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:27:08.867  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:27:08.876  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:27:08.882  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:27:08.888  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:27:17.592  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:27:21.808  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:27:21.808  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:27:21.809  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:27:21.810  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:28:26.850  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:28:26.857  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:28:26.864  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:28:26.869  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:28:35.533  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:28:38.285  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:28:38.285  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:28:38.285  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:28:38.286  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:32:01.997  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:32:02.005  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:32:02.011  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:32:02.017  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:32:10.862  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:32:13.603  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:32:13.603  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:32:13.604  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:32:13.605  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:42:33.631  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:42:33.639  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:42:33.646  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:42:33.653  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:42:43.315  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:42:46.048  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:42:46.048  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:42:46.049  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:42:46.049  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:47:18.936  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:47:18.944  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:47:18.950  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:47:18.956  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:47:27.893  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:47:30.619  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:47:30.619  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:47:30.619  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:47:30.620  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:50:06.500  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:50:06.509  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:50:06.515  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:50:06.523  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:50:15.738  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:50:18.750  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:50:18.750  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:50:18.750  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:50:18.750  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:51:27.826  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:51:27.834  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:51:27.840  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:51:27.846  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:51:36.525  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:51:39.270  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:51:39.270  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:51:39.271  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:51:39.271  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:54:49.757  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:54:49.765  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:54:49.772  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:54:49.779  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:54:58.714  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:55:01.480  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:55:01.481  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:55:01.481  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:55:01.482  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 14:57:50.931  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:57:50.940  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 14:57:50.950  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:57:50.957  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 14:57:59.659  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 14:58:02.517  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 14:58:02.517  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 14:58:02.518  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 14:58:02.518  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:04:59.525  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:04:59.532  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:04:59.542  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:04:59.549  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:05:08.619  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:05:11.457  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:05:11.457  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:05:11.457  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:05:11.458  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:08:01.471  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:08:01.481  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:08:01.487  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:08:01.495  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:08:12.278  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:08:15.238  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:08:15.238  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:08:15.238  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:08:15.239  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:10:12.672  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:10:12.682  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:10:12.689  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:10:12.697  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:10:21.819  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:10:24.773  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:10:24.774  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:10:24.774  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:10:24.775  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:13:03.654  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:13:03.662  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:13:03.670  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:13:03.676  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:13:12.967  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:13:16.404  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:13:16.404  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:13:16.404  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:13:16.405  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:14:21.913  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:14:21.922  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:14:21.929  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:14:21.935  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:14:31.114  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:14:34.465  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:14:34.465  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:14:34.465  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:14:34.466  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:15:38.261  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:15:38.269  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:15:38.275  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:15:38.282  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:15:47.569  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:15:50.738  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:15:50.738  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:15:50.738  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:15:50.739  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:17:22.302  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:17:22.311  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:17:22.318  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:17:22.324  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:17:31.224  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:17:33.925  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:17:33.925  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:17:33.925  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:17:33.926  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:22:03.898  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:22:03.907  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:22:03.914  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:22:03.921  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:22:12.554  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:22:15.326  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:22:15.326  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:22:15.326  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:22:15.327  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:22:57.058  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:22:57.067  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:22:57.073  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:22:57.079  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:23:05.843  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:23:08.577  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:23:08.577  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:23:08.577  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:23:08.578  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:24:26.012  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:24:26.021  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:24:26.027  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:24:26.033  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:24:34.927  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:24:38.922  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:24:38.922  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:24:38.923  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:24:38.923  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:28:27.145  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:28:27.153  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:28:27.159  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:28:27.165  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:28:35.957  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:28:40.051  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:28:40.052  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:28:40.052  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:28:40.052  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:30:07.280  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:30:07.288  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:30:07.295  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:30:07.302  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:30:16.147  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:30:20.214  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:30:20.215  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:30:20.215  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:30:20.215  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:46:47.398  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:46:47.406  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:46:47.412  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:46:47.418  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:46:56.041  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:47:00.277  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:47:00.277  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:47:00.277  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:47:00.277  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:49:08.051  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:49:08.062  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:49:08.069  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:49:08.076  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:49:16.542  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:49:17.916  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:49:17.916  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:49:17.917  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:49:17.918  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:50:51.237  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:50:51.246  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:50:51.253  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:50:51.259  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:50:59.778  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:51:34.114  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:51:34.114  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:51:34.114  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:51:34.115  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 15:52:25.445  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:52:25.453  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 15:52:25.459  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:52:25.466  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 15:52:33.494  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 15:52:38.684  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 15:52:38.684  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 15:52:38.684  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 15:52:38.685  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 17:04:08.904  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 17:04:08.913  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 17:04:08.920  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 17:04:08.926  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 17:04:17.033  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 17:04:22.118  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 17:04:22.118  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 17:04:22.119  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 17:04:22.119  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end
+2023-05-08 18:05:02.310  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[application-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 18:05:02.319  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter] & group[DEFAULT_GROUP]
+2023-05-08 18:05:02.326  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter.yml] & group[DEFAULT_GROUP]
+2023-05-08 18:05:02.332  WARN main loadNacosData(NacosPropertySourceBuilder.java:87) Ignore the empty nacos configuration and get it based on dataId[meter-dev.yml] & group[DEFAULT_GROUP]
+2023-05-08 18:05:11.449  WARN main initEmbedServer(XxlJobExecutor.java:152) >>>>>>>>>>> xxl-job accessToken is empty. To ensure system security, please set the accessToken.
+2023-05-08 18:05:16.918  WARN Thread-2 shutdown(HttpClientBeanHolder.java:108) [HttpClientBeanHolder] Start destroying common HttpClient
+2023-05-08 18:05:16.918  WARN Thread-6 shutdown(NotifyCenter.java:136) [NotifyCenter] Start destroying Publisher
+2023-05-08 18:05:16.919  WARN Thread-6 shutdown(NotifyCenter.java:153) [NotifyCenter] Destruction of the end
+2023-05-08 18:05:16.919  WARN Thread-2 shutdown(HttpClientBeanHolder.java:114) [HttpClientBeanHolder] Destruction of the end

Plik diff jest za duży
+ 22 - 3164
electricity/meter/logs/error.log


Plik diff jest za duży
+ 567 - 243
electricity/meter/logs/warn.log


+ 4 - 1
electricity/meter/src/main/java/com/gyee/gaia/meter/adapter/Adapter.java

@@ -13,8 +13,11 @@ import java.util.Map;
  * Data  : 2023: 04: 27
  **/
 @FeignClient(name = "adapter", url = "${adapter.url}")
-//@FeignClient(name = "adapter", url = "192.168.10.18:8011/ts")
 public interface Adapter {
+    @GetMapping("/latest")
+    Map<String, PointData> getHistoryLatest(
+            @RequestParam(value = "keys", required = false) String keyStr
+    );
 
 
     //获取一个或多个测点,指定时间的数据(没有则返回前一个时间点的数据)

+ 1 - 0
electricity/meter/src/main/java/com/gyee/gaia/meter/controller/ConfigController.java

@@ -1,5 +1,6 @@
 package com.gyee.gaia.meter.controller;
 
+import com.gyee.gaia.meter.config.AppConfig;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;

+ 7 - 2
electricity/meter/src/main/java/com/gyee/gaia/meter/entity/MeterInfoBottomcode.java

@@ -35,7 +35,7 @@ public class MeterInfoBottomcode extends Model<MeterInfoBottomcode> implements S
     /**
      * 开始时间
      */
-    private String startTime;
+    private LocalDateTime startTime;
 
     /**
      * 开始值
@@ -44,7 +44,7 @@ public class MeterInfoBottomcode extends Model<MeterInfoBottomcode> implements S
     /**
      * 截止时间
      */
-    private String endTime;
+    private LocalDateTime endTime;
     /**
      * 截止值
      */
@@ -84,4 +84,9 @@ public class MeterInfoBottomcode extends Model<MeterInfoBottomcode> implements S
      */
     private String remark;
 
+    /**
+     *场站
+     */
+    private String windpowerstationId;
+
 }

+ 7 - 2
electricity/meter/src/main/java/com/gyee/gaia/meter/entity/MeterPoint.java

@@ -138,9 +138,14 @@ public class MeterPoint implements Serializable {
     private String specificName;
 
     /**
-     * 倍率
+     * 电表类型分类
+     */
+    private String meterClass;
+
+    /**
+     * 属性:测点CD,计算点JSD
      */
-    private BigDecimal multiplyingPower;
+    private String property;
 
 
 }

+ 102 - 103
electricity/meter/src/main/java/com/gyee/gaia/meter/service/AdapterServiceTest.java

@@ -28,23 +28,6 @@ class AdapterServiceTest {
     @Resource
     Adapter adapter;
 
-
-    //测试适配器读取数据,测试实体类直接保存数据到数据库.
-    @Test
-    void getHistorySection() {
-
-        Map<String, PointData> historySection = adapter.getHistorySection("MHSFJJSFW.NX_GD_MHSF_FJ_P1_L1_001_CI0001", 1682303814000L);
-        System.out.println(historySection);
-        System.out.println(historySection.get("MHSFJJSFW.NX_GD_MHSF_FJ_P1_L1_001_CI0001"));
-        System.out.println(historySection.get("MHSFJJSFW.NX_GD_MHSF_FJ_P1_L1_001_CI0001").getValue());
-
-
-        MeterInfoEquipment meterInfoEquipment = new MeterInfoEquipment();
-        meterInfoEquipment.setRfdl(BigDecimal.valueOf(20000));
-        meterInfoEquipment.insert();
-    }
-
-
     @Resource
     TestingPointServiceImpl testingPointService;
 
@@ -52,7 +35,10 @@ class AdapterServiceTest {
     EquipmentServiceImpl equipmentService;
 
     @Value("${start.time}")
-    private String adapterUrl;
+    private String startTimeString;
+
+    @Value("${end.time}")
+    private String endTimeString;
 
     //测试读取设备发电量,并写入pg数据库
     @Test
@@ -72,28 +58,27 @@ class AdapterServiceTest {
             //获取设备ID
             String thingId = testingPoint.getThingId();
 
-            //6,设置取值开始日期前一天
-            String str = adapterUrl;
+            //设置取值开始时间
+            String startString = startTimeString;
+            DateTime startDateTime = DateUtil.parse(startString);
 
-            DateTime dateTime = DateUtil.parse(str);
-            DateTime dateTime2 = DateUtil.endOfDay(dateTime);
-            System.out.println("前一天天结束时间" + dateTime2);
+            //设置取值结束时间
+            String endDateString = endTimeString;
+            DateTime endDateTime = DateUtil.parse(endDateString);
 
-            //指定日期到现在天数
-            LocalDateTime day1 = LocalDateTimeUtil.of(dateTime);
-            LocalDateTime day2 = LocalDateTime.now();
-            System.out.println(day2);
+            //指定开始日期到结束日期的天数
+            LocalDateTime day1 = LocalDateTimeUtil.of(startDateTime);
+            LocalDateTime day2 = LocalDateTimeUtil.of(endDateTime);
             long between = ChronoUnit.DAYS.between(day1, day2);
             System.out.println(between);
 
             for (int i = 1; i < between; i++) {
 
 
-                DateTime dateTime1 = DateUtil.offsetMillisecond(dateTime2, 1);
-                System.out.println("第一天开始" + dateTime1);
-
-                dateTime2 = DateUtil.endOfDay(dateTime1);
-                System.out.println("第一天结束" + dateTime2);
+                //开始时间00:00:01
+                DateTime dateTime1 = DateUtil.offsetSecond(DateUtil.offsetDay(startDateTime, i), 1);
+                //结束时间第二天00:00:01
+                DateTime dateTime2 = DateUtil.offsetSecond(DateUtil.offsetDay(startDateTime, i+1), 1);
 
                 //6,根据code和日期开始时间00:00:00获取日期开始点发电量
                 Map<String, PointData> historySection1 = adapter.getHistorySection(pointcode, dateTime1.getTime());
@@ -138,7 +123,7 @@ class AdapterServiceTest {
     @Resource
     MeterPointServiceImpl meterPointService;
 
-    //读取底码数据存入pg数据库
+    //读取底码数据存入pg数据库,设置开始时间,结束时间
     @Test
     void saveBottomCode() {
 
@@ -147,70 +132,93 @@ class AdapterServiceTest {
 
         for (PowerStation powerStation : powerStationList) {
 
-            //2,根据场站ID,meter_code='111'或者meter_code='121'或者meter_code='151',uniform_code='ZXYG',得到出线测点
-//            List<MeterPoint> meterPointList = meterPointService.list(new QueryWrapper<MeterPoint>().eq("windpowerstation_id", powerStation.getId()).eq("uniform_code", "ZXYG").in("meter_code", "111", "121", "151"));
+            //2,根据场站ID得到场站下所有测点
             List<MeterPoint> meterPointList = meterPointService.list(new QueryWrapper<MeterPoint>().eq("windpowerstation_id", powerStation.getId()));
             System.out.println(meterPointList.size());
 
-            //3,遍历出线测点,拿到每个测点的nem_code
+            //3,遍历测点,拿到每个测点的nem_code
             for (MeterPoint meterPoint : meterPointList) {
                 System.out.println(meterPoint);
                 //获取测点code
                 String pointcode = meterPoint.getNemCode();
 
-                //6,设置取值开始日期前一天
-                String str = adapterUrl;
+                //设置取值开始时间
+                String startString = startTimeString;
+                DateTime startDateTime = DateUtil.parse(startString);
 
-                DateTime dateTime = DateUtil.parse(str);
-                DateTime dateTime2 = DateUtil.endOfDay(dateTime);
-                System.out.println("前一天天结束时间" + dateTime2);
+                //设置取值结束时间
+                String endDateString = endTimeString;
+                DateTime endDateTime = DateUtil.parse(endDateString);
 
-                //指定日期到现在天数
-                LocalDateTime day1 = LocalDateTimeUtil.of(dateTime);
-                LocalDateTime day2 = LocalDateTime.now();
-                System.out.println(day2);
+                //指定开始日期到结束日期的天数
+                LocalDateTime day1 = LocalDateTimeUtil.of(startDateTime);
+                LocalDateTime day2 = LocalDateTimeUtil.of(endDateTime);
                 long between = ChronoUnit.DAYS.between(day1, day2);
                 System.out.println(between);
 
-                for (int i = 1; i < between; i++) {
 
+                for (int i = 0; i <= between; i++) {
 
-                    DateTime dateTime1 = DateUtil.offsetMillisecond(dateTime2, 1);
-                    System.out.println("第一天开始" + dateTime1);
+                    //开始时间00:00:01
+                    DateTime dateTime1 = DateUtil.offsetSecond(DateUtil.offsetDay(startDateTime, i), 1);
+                    //结束时间第二天00:00:01
+                    DateTime dateTime2 = DateUtil.offsetSecond(DateUtil.offsetDay(startDateTime, i+1), 1);
 
-                    dateTime2 = DateUtil.endOfDay(dateTime1);
-                    System.out.println("第一天结束" + dateTime2);
 
-                    //6,根据code和日期开始时间00:00:00获取日期开始点发电量
-                    Map<String, PointData> historySection1 = adapter.getHistorySection(pointcode, dateTime1.getTime());
+                    //没有测点code的字段
+                    if (null == pointcode) {
 
-                    //7,根据code和日期结束时间23:59:59获取日期结束点发电量
-                    Map<String, PointData> historySection2 = adapter.getHistorySection(pointcode, dateTime2.getTime());
+                        BigDecimal bigDecimal1 = meterPoint.getInitialValue();
+                        BigDecimal bigDecimal2 = meterPoint.getInitialValue();
+                        bigDecimal1 = bigDecimal1.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                        bigDecimal2 = bigDecimal2.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                        BigDecimal rfdl = bigDecimal2.subtract(bigDecimal1).multiply(meterPoint.getMagnification());
 
-                    if (historySection1.size() > 0 && historySection2.size() > 0) {
+                        MeterInfoBottomcode meterInfoBottomcode = new MeterInfoBottomcode();
+                        meterInfoBottomcode.setName(meterPoint.getName());
+                        meterInfoBottomcode.setStartTime(dateTime1.toLocalDateTime());
+                        meterInfoBottomcode.setStartValue(bigDecimal1);
+                        meterInfoBottomcode.setEndTime(dateTime1.toLocalDateTime());
+                        meterInfoBottomcode.setEndValue(bigDecimal2);
+                        meterInfoBottomcode.setDayValue(rfdl);
+                        meterInfoBottomcode.setCode(pointcode);
+                        meterInfoBottomcode.setWindpowerstationId(meterPoint.getWindpowerstationId());
+                        meterInfoBottomcode.insert();
 
-                        double value1 = historySection1.get(pointcode).getValue();
-                        double value2 = historySection2.get(pointcode).getValue();
 
-                        //8,结束点发电量减去开始点发电量得到日发电量(单位Kwh)
-                        BigDecimal bigDecimal1 = new BigDecimal(Double.toString(value1));
-                        BigDecimal bigDecimal2 = new BigDecimal(Double.toString(value2));
-                        BigDecimal rfdl = (bigDecimal2.subtract(bigDecimal1)).divide(meterPoint.getXs(), 2, RoundingMode.HALF_EVEN).multiply(meterPoint.getMagnification());
 
-                        System.out.println(rfdl + "Kwh");
 
-                        MeterInfoBottomcode meterInfoBottomcode = new MeterInfoBottomcode();
+                    } else {
+                        //6,根据测点code和日期开始时间00:00:01获取日期开始点发电量
+                        Map<String, PointData> historySection1 = adapter.getHistorySection(pointcode, dateTime1.getTime());
 
-                        meterInfoBottomcode.setName(meterPoint.getDescription());
-                        meterInfoBottomcode.setStartTime(String.valueOf(dateTime1));
-                        meterInfoBottomcode.setStartValue(BigDecimal.valueOf(value1));
-                        meterInfoBottomcode.setEndTime(String.valueOf(dateTime2));
-                        meterInfoBottomcode.setEndValue(BigDecimal.valueOf(value2));
-                        meterInfoBottomcode.setDayValue(rfdl);
-                        meterInfoBottomcode.setCode(pointcode);
-                        meterInfoBottomcode.insert();
-                    }
+                        //7,根据测点code和日期结束时间第二点00:00:01获取日期结束点发电量
+                        Map<String, PointData> historySection2 = adapter.getHistorySection(pointcode, dateTime2.getTime());
 
+                        if (historySection1.size() > 0 && historySection2.size() > 0) {
+
+                            double value1 = historySection1.get(pointcode).getValue();
+                            double value2 = historySection2.get(pointcode).getValue();
+
+                            //8,结束点发电量减去开始点发电量得到日发电量(单位Kwh)
+                            BigDecimal bigDecimal1 = new BigDecimal(Double.toString(value1));
+                            bigDecimal1 = bigDecimal1.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                            BigDecimal bigDecimal2 = new BigDecimal(Double.toString(value2));
+                            bigDecimal2 = bigDecimal2.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                            BigDecimal rfdl = bigDecimal2.subtract(bigDecimal1).multiply(meterPoint.getMagnification());
+
+                            MeterInfoBottomcode meterInfoBottomcode = new MeterInfoBottomcode();
+                            meterInfoBottomcode.setName(meterPoint.getName());
+                            meterInfoBottomcode.setStartTime(dateTime1.toLocalDateTime());
+                            meterInfoBottomcode.setStartValue(bigDecimal1);
+                            meterInfoBottomcode.setEndTime(dateTime1.toLocalDateTime());
+                            meterInfoBottomcode.setEndValue(bigDecimal2);
+                            meterInfoBottomcode.setDayValue(rfdl);
+                            meterInfoBottomcode.setCode(pointcode);
+                            meterInfoBottomcode.setWindpowerstationId(meterPoint.getWindpowerstationId());
+                            meterInfoBottomcode.insert();
+                        }
+                    }
                 }
             }
         }
@@ -224,7 +232,6 @@ class AdapterServiceTest {
     MeterInfoEquipmentServiceImpl meterInfoEquipmentService;
 
 
-
     //发电量,上网电量,购网电量
     @Test
     void saveCalculating() {
@@ -237,7 +244,7 @@ class AdapterServiceTest {
 
 
             //6,设置取值开始日期前一天
-            String str = adapterUrl;
+            String str = startTimeString;
 
             DateTime dateTime = DateUtil.parse(str);
             DateTime dateTime1 = dateTime;
@@ -472,7 +479,7 @@ class AdapterServiceTest {
 
 
             //6,设置取值开始日期前一天
-            String str = adapterUrl;
+            String str = startTimeString;
 
             DateTime dateTime = DateUtil.parse(str);
             DateTime dateTime1 = dateTime;
@@ -664,7 +671,7 @@ class AdapterServiceTest {
 
 
             //6,设置取值开始日期前一天
-            String str = adapterUrl;
+            String str = startTimeString;
 
             DateTime dateTime = DateUtil.parse(str);
             DateTime dateTime1 = dateTime;
@@ -843,7 +850,7 @@ class AdapterServiceTest {
 
 
             //6,设置取值开始日期前一天
-            String str = adapterUrl;
+            String str = startTimeString;
 
             DateTime dateTime = DateUtil.parse(str);
             DateTime dateTime1 = dateTime;
@@ -903,8 +910,6 @@ class AdapterServiceTest {
                     meterInfoCalculating.insert();
 
 
-
-
                     list = meterInfoBottomcodeService.list(new QueryWrapper<MeterInfoBottomcode>().eq("start_time", dateTime1.toString()).in("code", "MHSDJL.NX_GD_MHSF_DD_P1_L1_001_ZXYG005"));
                     bigDecimal1 = BigDecimal.valueOf(0);
                     for (MeterInfoBottomcode meterInfoBottomcode : list) {
@@ -930,7 +935,6 @@ class AdapterServiceTest {
     }
 
 
-
     //发电厂用电率(%)
     @Test
     void saveCalculating4() {
@@ -942,7 +946,7 @@ class AdapterServiceTest {
 
 
             //6,设置取值开始日期前一天
-            String str = adapterUrl;
+            String str = startTimeString;
 
             DateTime dateTime = DateUtil.parse(str);
             DateTime dateTime1 = dateTime;
@@ -983,16 +987,14 @@ class AdapterServiceTest {
                     }
 
 
-
-
-                     list = meterInfoCalculatingService.list(new QueryWrapper<MeterInfoCalculating>().eq("date", dateTime1.toString()).eq("windpowerstation_id", powerStation.getNemCode()).eq("name", "发电厂用电量分散式"));
-                     bigDecimal1 = BigDecimal.valueOf(0);
+                    list = meterInfoCalculatingService.list(new QueryWrapper<MeterInfoCalculating>().eq("date", dateTime1.toString()).eq("windpowerstation_id", powerStation.getNemCode()).eq("name", "发电厂用电量分散式"));
+                    bigDecimal1 = BigDecimal.valueOf(0);
                     for (MeterInfoCalculating meterInfoCalculating : list) {
                         bigDecimal1 = bigDecimal1.add(meterInfoCalculating.getValue());
                     }
                     list = meterInfoCalculatingService.list(new QueryWrapper<MeterInfoCalculating>().eq("date", dateTime1.toString()).eq("windpowerstation_id", powerStation.getNemCode()).eq("name", "分散式集电线路电量"));
                     System.out.println(list.size());
-                     bigDecimal2 = BigDecimal.valueOf(0);
+                    bigDecimal2 = BigDecimal.valueOf(0);
                     for (MeterInfoCalculating meterInfoCalculating : list) {
                         bigDecimal2 = bigDecimal2.add(meterInfoCalculating.getValue());
                     }
@@ -1044,7 +1046,7 @@ class AdapterServiceTest {
 
 
             //6,设置取值开始日期前一天
-            String str = adapterUrl;
+            String str = startTimeString;
 
             DateTime dateTime = DateUtil.parse(str);
             DateTime dateTime1 = dateTime;
@@ -1069,24 +1071,23 @@ class AdapterServiceTest {
                         bigDecimal1 = bigDecimal1.add(InfoCalculating.getValue());
                     }
 
-                        MeterInfoCalculating meterInfoCalculating = new MeterInfoCalculating();
-                        meterInfoCalculating.setName("利用小时风机侧一期");
-                        meterInfoCalculating.setDate(String.valueOf(dateTime1));
-                        meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(4.95),2,RoundingMode.HALF_EVEN));
-                        meterInfoCalculating.setWindpowerstationId(powerStation.getNemCode());
-                        meterInfoCalculating.insert();
-
+                    MeterInfoCalculating meterInfoCalculating = new MeterInfoCalculating();
+                    meterInfoCalculating.setName("利用小时风机侧一期");
+                    meterInfoCalculating.setDate(String.valueOf(dateTime1));
+                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(4.95), 2, RoundingMode.HALF_EVEN));
+                    meterInfoCalculating.setWindpowerstationId(powerStation.getNemCode());
+                    meterInfoCalculating.insert();
 
 
-                   list = meterInfoCalculatingService.list(new QueryWrapper<MeterInfoCalculating>().eq("date", dateTime1.toString()).eq("windpowerstation_id", powerStation.getNemCode()).eq("name", "一期集电线路电量"));
-                     bigDecimal1 = BigDecimal.valueOf(0);
+                    list = meterInfoCalculatingService.list(new QueryWrapper<MeterInfoCalculating>().eq("date", dateTime1.toString()).eq("windpowerstation_id", powerStation.getNemCode()).eq("name", "一期集电线路电量"));
+                    bigDecimal1 = BigDecimal.valueOf(0);
                     for (MeterInfoCalculating InfoCalculating : list) {
                         bigDecimal1 = bigDecimal1.add(InfoCalculating.getValue());
                     }
                     meterInfoCalculating = new MeterInfoCalculating();
                     meterInfoCalculating.setName("利用小时集电线路侧一期");
                     meterInfoCalculating.setDate(String.valueOf(dateTime1));
-                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(4.95),2,RoundingMode.HALF_EVEN));
+                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(4.95), 2, RoundingMode.HALF_EVEN));
                     meterInfoCalculating.setWindpowerstationId(powerStation.getNemCode());
                     meterInfoCalculating.insert();
 
@@ -1099,7 +1100,7 @@ class AdapterServiceTest {
                     meterInfoCalculating = new MeterInfoCalculating();
                     meterInfoCalculating.setName("利用小时风机侧分散式");
                     meterInfoCalculating.setDate(String.valueOf(dateTime1));
-                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(2),2,RoundingMode.HALF_EVEN));
+                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(2), 2, RoundingMode.HALF_EVEN));
                     meterInfoCalculating.setWindpowerstationId(powerStation.getNemCode());
                     meterInfoCalculating.insert();
 
@@ -1112,7 +1113,7 @@ class AdapterServiceTest {
                     meterInfoCalculating = new MeterInfoCalculating();
                     meterInfoCalculating.setName("利用小时集电线路侧分散式");
                     meterInfoCalculating.setDate(String.valueOf(dateTime1));
-                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(2),2,RoundingMode.HALF_EVEN));
+                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(2), 2, RoundingMode.HALF_EVEN));
                     meterInfoCalculating.setWindpowerstationId(powerStation.getNemCode());
                     meterInfoCalculating.insert();
 
@@ -1125,7 +1126,7 @@ class AdapterServiceTest {
                     meterInfoCalculating = new MeterInfoCalculating();
                     meterInfoCalculating.setName("利用小时风机侧总");
                     meterInfoCalculating.setDate(String.valueOf(dateTime1));
-                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(6.95),2,RoundingMode.HALF_EVEN));
+                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(6.95), 2, RoundingMode.HALF_EVEN));
                     meterInfoCalculating.setWindpowerstationId(powerStation.getNemCode());
                     meterInfoCalculating.insert();
 
@@ -1138,7 +1139,7 @@ class AdapterServiceTest {
                     meterInfoCalculating = new MeterInfoCalculating();
                     meterInfoCalculating.setName("利用小时集电线路侧总");
                     meterInfoCalculating.setDate(String.valueOf(dateTime1));
-                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(6.95),2,RoundingMode.HALF_EVEN));
+                    meterInfoCalculating.setValue(bigDecimal1.divide(BigDecimal.valueOf(6.95), 2, RoundingMode.HALF_EVEN));
                     meterInfoCalculating.setWindpowerstationId(powerStation.getNemCode());
                     meterInfoCalculating.insert();
 
@@ -1149,8 +1150,6 @@ class AdapterServiceTest {
     }
 
 
-
-
 }
 
 

+ 168 - 0
electricity/meter/src/main/java/com/gyee/gaia/meter/service/SaveMeterInfoBottomcode10MinTest.java

@@ -0,0 +1,168 @@
+package com.gyee.gaia.meter.service;
+
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.gaia.meter.adapter.Adapter;
+import com.gyee.gaia.meter.entity.MeterInfoBottomcode;
+import com.gyee.gaia.meter.entity.MeterPoint;
+import com.gyee.gaia.meter.entity.PointData;
+import com.gyee.gaia.meter.entity.PowerStation;
+import com.gyee.gaia.meter.service.impl.MeterInfoBottomcodeServiceImpl;
+import com.gyee.gaia.meter.service.impl.MeterPointServiceImpl;
+import com.gyee.gaia.meter.service.impl.PowerStationServiceImpl;
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+import javax.annotation.Resource;
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Author: malijun
+ * Data  : 2023: 05: 09
+ **/
+
+@SpringBootTest
+public class SaveMeterInfoBottomcode10MinTest {
+
+
+    @Resource
+    PowerStationServiceImpl powerStationService;
+
+    @Resource
+    MeterPointServiceImpl meterPointService;
+
+    @Resource
+    MeterInfoBottomcodeServiceImpl meterInfoBottomcodeService;
+
+    @Resource
+    Adapter adapter;
+
+    @Test
+    void saveBottomcode() {
+
+        //获取当前日期,当日开始时间
+        String nowString = DateUtil.now();
+        DateTime nowDateTime = DateUtil.parse(nowString);
+        DateTime startDateTime = DateUtil.beginOfDay(nowDateTime);
+
+        //类似之前代码,获取场站,遍历场站,根据场站ID获取测点code
+        //1,查询所有风电场
+        List<PowerStation> powerStationList = powerStationService.list(new QueryWrapper<PowerStation>().like("nem_code", "_FDC_"));
+
+        for (PowerStation powerStation : powerStationList) {
+
+            //2,根据场站ID得到场站下所有测点
+            List<MeterPoint> meterPointList = meterPointService.list(new QueryWrapper<MeterPoint>().eq("windpowerstation_id", powerStation.getId()));
+            System.out.println(powerStation.getNemCode() + "场站测点数量" + meterPointList.size());
+
+            //3,遍历测点,拿到每个测点的nem_code
+            for (MeterPoint meterPoint : meterPointList) {
+                //获取测点code
+                String pointcode = meterPoint.getNemCode();
+
+                if (null == pointcode) {
+
+                    BigDecimal bigDecimal1 = meterPoint.getInitialValue();
+                    bigDecimal1 = bigDecimal1.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                    BigDecimal bigDecimal2 = meterPoint.getInitialValue();
+                    bigDecimal2 = bigDecimal2.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                    BigDecimal rfdl = bigDecimal2.subtract(bigDecimal1).multiply(meterPoint.getMagnification());
+
+                    MeterInfoBottomcode meterInfoBottomcode = new MeterInfoBottomcode();
+                    //name
+                    meterInfoBottomcode.setName(meterPoint.getName());
+                    //开始时间,当日开始时间
+                    meterInfoBottomcode.setStartTime(startDateTime.toLocalDateTime());
+                    //开始值,section接口获取当日00:00:01数据
+                    meterInfoBottomcode.setStartValue(bigDecimal1);
+                    //最新时间,latest返回的时间
+                    meterInfoBottomcode.setEndTime(startDateTime.toLocalDateTime());
+                    //最新值,latest返回的值
+                    meterInfoBottomcode.setEndValue(bigDecimal2);
+                    //日电量
+                    meterInfoBottomcode.setDayValue(rfdl);
+                    //code,meter.getCode
+                    meterInfoBottomcode.setCode(null);
+                    //windpowerstation_id,meter.getWindpowerstationId,
+                    meterInfoBottomcode.setWindpowerstationId(meterPoint.getWindpowerstationId());
+
+//                    QueryWrapper<MeterInfoBottomcode> queryWrapper = new QueryWrapper<>();
+//                    queryWrapper.eq("start_time", startDateTime.toLocalDateTime()).eq("name", meterPoint.getName()).eq("end_time",startDateTime.toLocalDateTime()).eq("windpowerstation_id", meterPoint.getWindpowerstationId());
+//                    List<MeterInfoBottomcode> list = meterInfoBottomcodeService.list(queryWrapper);
+//                    System.out.println(list.size());
+//                    if (list.size() > 0) {
+//                        meterInfoBottomcode.update(queryWrapper);
+//                    }else {
+//                        meterInfoBottomcode.insert();
+//                    }
+
+                } else {
+                    //根据测点code,用适配器section接口获取当日00:00:01数据,存入数据库当天开始值
+                    Map<String, PointData> historySection1 = adapter.getHistorySection(pointcode, startDateTime.getTime());
+                    double value1 = 0;
+                    if (historySection1.size() > 0) {
+                        value1 = historySection1.get(pointcode).getValue();
+                    }
+                    BigDecimal bigDecimal1 = BigDecimal.valueOf(value1);
+                    bigDecimal1 = bigDecimal1.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+
+                    //根据测点code,用适配器latest接口获取最新数据和时间,存入数据库结束值
+                    Map<String, PointData> historyLatest2 = adapter.getHistoryLatest(pointcode);
+                    double value2 = 0;
+                    long ts = 0;
+                    if (historyLatest2.size() > 0) {
+                        value2 = historyLatest2.get(pointcode).getValue();
+                        ts = historyLatest2.get(pointcode).getTs();
+                    }
+                    BigDecimal bigDecimal2 = BigDecimal.valueOf(value2);
+                    bigDecimal2 = bigDecimal2.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                    DateTime enddateTime = new DateTime(ts);
+                    //计算日电量
+                    BigDecimal rfdl = bigDecimal2.subtract(bigDecimal1).multiply(meterPoint.getMagnification());
+
+                    MeterInfoBottomcode meterInfoBottomcode = new MeterInfoBottomcode();
+
+                    //name
+                    meterInfoBottomcode.setName(meterPoint.getName());
+                    //开始时间,当日开始时间
+                    meterInfoBottomcode.setStartTime(startDateTime.toLocalDateTime());
+                    //开始值,section接口获取当日00:00:01数据
+                    meterInfoBottomcode.setStartValue(bigDecimal1);
+                    //最新时间,latest返回的时间
+                    meterInfoBottomcode.setEndTime(enddateTime.toLocalDateTime());
+                    //最新值,latest返回的值
+                    meterInfoBottomcode.setEndValue(bigDecimal2);
+                    //日电量
+                    meterInfoBottomcode.setDayValue(rfdl);
+                    //code,meter.getCode
+                    meterInfoBottomcode.setCode(meterPoint.getNemCode());
+                    //windpowerstation_id,meter.getWindpowerstationId,
+                    meterInfoBottomcode.setWindpowerstationId(meterPoint.getWindpowerstationId());
+
+
+                    QueryWrapper<MeterInfoBottomcode> queryWrapper = new QueryWrapper<>();
+                    queryWrapper.eq("start_time", startDateTime.toLocalDateTime()).eq("code", meterPoint.getNemCode());
+                    List<MeterInfoBottomcode> list = meterInfoBottomcodeService.list(queryWrapper);
+                    System.out.println(list.size());
+                    if (list.size() > 0) {
+                        meterInfoBottomcode.update(queryWrapper);
+                    } else {
+                        meterInfoBottomcode.insert();
+                    }
+
+                }
+
+
+            }
+        }
+    }
+
+
+}
+
+
+

+ 168 - 0
electricity/meter/src/main/java/com/gyee/gaia/meter/service/SaveMeterInfoCalculating10MinTest.java

@@ -0,0 +1,168 @@
+package com.gyee.gaia.meter.service;
+
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.gaia.meter.adapter.Adapter;
+import com.gyee.gaia.meter.entity.MeterInfoBottomcode;
+import com.gyee.gaia.meter.entity.MeterPoint;
+import com.gyee.gaia.meter.entity.PointData;
+import com.gyee.gaia.meter.entity.PowerStation;
+import com.gyee.gaia.meter.service.impl.MeterInfoBottomcodeServiceImpl;
+import com.gyee.gaia.meter.service.impl.MeterPointServiceImpl;
+import com.gyee.gaia.meter.service.impl.PowerStationServiceImpl;
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+import javax.annotation.Resource;
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Author: malijun
+ * Data  : 2023: 05: 09
+ **/
+
+@SpringBootTest
+public class SaveMeterInfoCalculating10MinTest {
+
+
+    @Resource
+    PowerStationServiceImpl powerStationService;
+
+    @Resource
+    MeterPointServiceImpl meterPointService;
+
+    @Resource
+    MeterInfoBottomcodeServiceImpl meterInfoBottomcodeService;
+
+    @Resource
+    Adapter adapter;
+
+    @Test
+    void saveCalculating() {
+
+        //获取当前日期,当日开始时间
+        String nowString = DateUtil.now();
+        DateTime nowDateTime = DateUtil.parse(nowString);
+        DateTime startDateTime = DateUtil.beginOfDay(nowDateTime);
+
+        //类似之前代码,获取场站,遍历场站,根据场站ID获取测点code
+        //1,查询所有风电场
+        List<PowerStation> powerStationList = powerStationService.list(new QueryWrapper<PowerStation>().like("nem_code", "_FDC_"));
+
+        for (PowerStation powerStation : powerStationList) {
+
+            //2,根据场站ID得到场站下所有测点
+            List<MeterPoint> meterPointList = meterPointService.list(new QueryWrapper<MeterPoint>().eq("windpowerstation_id", powerStation.getId()));
+            System.out.println(powerStation.getNemCode() + "场站测点数量" + meterPointList.size());
+
+            //3,遍历测点,拿到每个测点的nem_code
+            for (MeterPoint meterPoint : meterPointList) {
+                //获取测点code
+                String pointcode = meterPoint.getNemCode();
+
+                if (null == pointcode) {
+
+                    BigDecimal bigDecimal1 = meterPoint.getInitialValue();
+                    bigDecimal1 = bigDecimal1.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                    BigDecimal bigDecimal2 = meterPoint.getInitialValue();
+                    bigDecimal2 = bigDecimal2.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                    BigDecimal rfdl = bigDecimal2.subtract(bigDecimal1).multiply(meterPoint.getMagnification());
+
+                    MeterInfoBottomcode meterInfoBottomcode = new MeterInfoBottomcode();
+                    //name
+                    meterInfoBottomcode.setName(meterPoint.getName());
+                    //开始时间,当日开始时间
+                    meterInfoBottomcode.setStartTime(startDateTime.toLocalDateTime());
+                    //开始值,section接口获取当日00:00:01数据
+                    meterInfoBottomcode.setStartValue(bigDecimal1);
+                    //最新时间,latest返回的时间
+                    meterInfoBottomcode.setEndTime(startDateTime.toLocalDateTime());
+                    //最新值,latest返回的值
+                    meterInfoBottomcode.setEndValue(bigDecimal2);
+                    //日电量
+                    meterInfoBottomcode.setDayValue(rfdl);
+                    //code,meter.getCode
+                    meterInfoBottomcode.setCode(null);
+                    //windpowerstation_id,meter.getWindpowerstationId,
+                    meterInfoBottomcode.setWindpowerstationId(meterPoint.getWindpowerstationId());
+
+//                    QueryWrapper<MeterInfoBottomcode> queryWrapper = new QueryWrapper<>();
+//                    queryWrapper.eq("start_time", startDateTime.toLocalDateTime()).eq("name", meterPoint.getName()).eq("end_time",startDateTime.toLocalDateTime()).eq("windpowerstation_id", meterPoint.getWindpowerstationId());
+//                    List<MeterInfoBottomcode> list = meterInfoBottomcodeService.list(queryWrapper);
+//                    System.out.println(list.size());
+//                    if (list.size() > 0) {
+//                        meterInfoBottomcode.update(queryWrapper);
+//                    }else {
+//                        meterInfoBottomcode.insert();
+//                    }
+
+                } else {
+                    //根据测点code,用适配器section接口获取当日00:00:01数据,存入数据库当天开始值
+                    Map<String, PointData> historySection1 = adapter.getHistorySection(pointcode, startDateTime.getTime());
+                    double value1 = 0;
+                    if (historySection1.size() > 0) {
+                        value1 = historySection1.get(pointcode).getValue();
+                    }
+                    BigDecimal bigDecimal1 = BigDecimal.valueOf(value1);
+                    bigDecimal1 = bigDecimal1.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+
+                    //根据测点code,用适配器latest接口获取最新数据和时间,存入数据库结束值
+                    Map<String, PointData> historyLatest2 = adapter.getHistoryLatest(pointcode);
+                    double value2 = 0;
+                    long ts = 0;
+                    if (historyLatest2.size() > 0) {
+                        value2 = historyLatest2.get(pointcode).getValue();
+                        ts = historyLatest2.get(pointcode).getTs();
+                    }
+                    BigDecimal bigDecimal2 = BigDecimal.valueOf(value2);
+                    bigDecimal2 = bigDecimal2.divide(meterPoint.getXs(), 4, RoundingMode.HALF_EVEN);
+                    DateTime enddateTime = new DateTime(ts);
+                    //计算日电量
+                    BigDecimal rfdl = bigDecimal2.subtract(bigDecimal1).multiply(meterPoint.getMagnification());
+
+                    MeterInfoBottomcode meterInfoBottomcode = new MeterInfoBottomcode();
+
+                    //name
+                    meterInfoBottomcode.setName(meterPoint.getName());
+                    //开始时间,当日开始时间
+                    meterInfoBottomcode.setStartTime(startDateTime.toLocalDateTime());
+                    //开始值,section接口获取当日00:00:01数据
+                    meterInfoBottomcode.setStartValue(bigDecimal1);
+                    //最新时间,latest返回的时间
+                    meterInfoBottomcode.setEndTime(enddateTime.toLocalDateTime());
+                    //最新值,latest返回的值
+                    meterInfoBottomcode.setEndValue(bigDecimal2);
+                    //日电量
+                    meterInfoBottomcode.setDayValue(rfdl);
+                    //code,meter.getCode
+                    meterInfoBottomcode.setCode(meterPoint.getNemCode());
+                    //windpowerstation_id,meter.getWindpowerstationId,
+                    meterInfoBottomcode.setWindpowerstationId(meterPoint.getWindpowerstationId());
+
+
+                    QueryWrapper<MeterInfoBottomcode> queryWrapper = new QueryWrapper<>();
+                    queryWrapper.eq("start_time", startDateTime.toLocalDateTime()).eq("code", meterPoint.getNemCode());
+                    List<MeterInfoBottomcode> list = meterInfoBottomcodeService.list(queryWrapper);
+                    System.out.println(list.size());
+                    if (list.size() > 0) {
+                        meterInfoBottomcode.update(queryWrapper);
+                    } else {
+                        meterInfoBottomcode.insert();
+                    }
+
+                }
+
+
+            }
+        }
+    }
+
+
+}
+
+
+

+ 127 - 0
electricity/meter/src/main/java/com/gyee/gaia/meter/service/SaveMeterInfoEquipment10MinTest.java

@@ -0,0 +1,127 @@
+package com.gyee.gaia.meter.service;
+
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.core.date.LocalDateTimeUtil;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.gaia.meter.adapter.Adapter;
+import com.gyee.gaia.meter.entity.Equipment;
+import com.gyee.gaia.meter.entity.MeterInfoEquipment;
+import com.gyee.gaia.meter.entity.PointData;
+import com.gyee.gaia.meter.entity.TestingPoint;
+import com.gyee.gaia.meter.service.impl.EquipmentServiceImpl;
+import com.gyee.gaia.meter.service.impl.TestingPointServiceImpl;
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.test.context.SpringBootTest;
+
+import javax.annotation.Resource;
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+import java.time.temporal.ChronoUnit;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Author: malijun
+ * Data  : 2023: 05: 09
+ **/
+
+@SpringBootTest
+public class SaveMeterInfoEquipment10MinTest {
+
+    @Resource
+    Adapter adapter;
+
+    @Resource
+    TestingPointServiceImpl testingPointService;
+
+    @Resource
+    EquipmentServiceImpl equipmentService;
+
+    @Value("${start.time}")
+    private String startTimeString;
+
+    @Value("${end.time}")
+    private String endTimeString;
+
+    @Test
+    void saveEquipmentRfdl() {
+
+
+        //1,在testingpoint中根据 uniform_code=AI064 和code like "%_FJ_%" 取出所有风机的电量测点code
+        List<TestingPoint> list = testingPointService.list(new QueryWrapper<TestingPoint>().eq("uniform_code", "AI064").like("code", "%_FJ_%"));
+
+        //所有风机总共407个电量测点code
+        System.out.println(list.size());
+
+        //2,遍历list,每次取出一个code
+        for (TestingPoint testingPoint : list) {
+            //获取测点code
+            String pointcode = testingPoint.getCode();
+            //获取设备ID
+            String thingId = testingPoint.getThingId();
+
+            //设置取值开始时间
+            String startString = startTimeString;
+            DateTime startDateTime = DateUtil.parse(startString);
+
+            //设置取值结束时间
+            String endDateString = endTimeString;
+            DateTime endDateTime = DateUtil.parse(endDateString);
+
+            //指定开始日期到结束日期的天数
+            LocalDateTime day1 = LocalDateTimeUtil.of(startDateTime);
+            LocalDateTime day2 = LocalDateTimeUtil.of(endDateTime);
+            long between = ChronoUnit.DAYS.between(day1, day2);
+            System.out.println(between);
+
+            for (int i = 1; i < between; i++) {
+
+
+                //开始时间00:00:01
+                DateTime dateTime1 = DateUtil.offsetSecond(DateUtil.offsetDay(startDateTime, i), 1);
+                //结束时间第二天00:00:01
+                DateTime dateTime2 = DateUtil.offsetSecond(DateUtil.offsetDay(startDateTime, i+1), 1);
+
+                //6,根据code和日期开始时间00:00:00获取日期开始点发电量
+                Map<String, PointData> historySection1 = adapter.getHistorySection(pointcode, dateTime1.getTime());
+                double value1 = historySection1.get(pointcode).getValue();
+
+                //7,根据code和日期结束时间23:59:59获取日期结束点发电量
+                Map<String, PointData> historySection2 = adapter.getHistorySection(pointcode, dateTime2.getTime());
+                double value2 = historySection2.get(pointcode).getValue();
+
+                //8,结束点发电量减去开始点发电量得到日发电量(单位Kwh)
+                BigDecimal bigDecimal1 = new BigDecimal(Double.toString(value1));
+                BigDecimal bigDecimal2 = new BigDecimal(Double.toString(value2));
+                BigDecimal rfdl = bigDecimal2.subtract(bigDecimal1);
+                System.out.println(rfdl + "Kwh");
+
+
+                //9,company_nem_code   (powerstation_nem_code project_nem_code line_nem_code equipment_nem_code )都在basic equipment中叫project_id    name date rfdl 存入meterInfo表中
+                Equipment thingId1 = equipmentService.getOne(new QueryWrapper<Equipment>().eq("nem_code", thingId));
+
+
+                MeterInfoEquipment meterInfoEquipment = new MeterInfoEquipment();
+                meterInfoEquipment.setCompanyNemCode("NX_GDDL_ZGS");
+                meterInfoEquipment.setPowerstationNemCode(thingId1.getWindpowerstationId());
+                meterInfoEquipment.setProjectNemCode(thingId1.getProjectId());
+                meterInfoEquipment.setLineNemCode(thingId1.getLineId());
+                meterInfoEquipment.setEquipmentNemCode(thingId1.getNemCode());
+                meterInfoEquipment.setName(thingId1.getName());
+                meterInfoEquipment.setDate(DateUtil.format(dateTime2, "yyyy-MM-dd"));
+                meterInfoEquipment.setRfdl(rfdl);
+                meterInfoEquipment.insert();
+
+
+            }
+        }
+
+    }
+
+
+}
+
+
+

+ 7 - 3
electricity/meter/src/main/resources/application.properties

@@ -1,11 +1,15 @@
 ##需要动态配置的属性##
 
 #动态配置适配器的地址
-adapter.url=http://192.168.10.18:8011/ts
+#adapter.url=http://192.168.10.18:8011/ts
 #adapter.url=http://192.168.1.82:8011/ts
+adapter.url=http://192.168.10.18:8013/ts
 
-#动态配置开始日期前一天
-start.time="2023-04-30"
+#动态配置开始日期
+start.time=2023-05-01 00:00:00
+
+#动态配置结束日期
+end.time=2023-05-08 00:00:00
 
 meter.stations=MHS_FDC,NSS_FDC