Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
a839016a
Commit
a839016a
authored
Aug 07, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
6678f082
4784ec5d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
40 deletions
+37
-40
IdxBizFanHealthIndexServiceImpl.java
...iop/biz/service/impl/IdxBizFanHealthIndexServiceImpl.java
+16
-7
application-kingbase8.properties
...e-biz/src/main/resources/application-kingbase8.properties
+19
-17
application.properties
...iop-analyse-biz/src/main/resources/application.properties
+2
-2
SjglZsjZsbtzMapper.xml
.../src/main/resources/mapper/cluster/SjglZsjZsbtzMapper.xml
+0
-14
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/IdxBizFanHealthIndexServiceImpl.java
View file @
a839016a
...
...
@@ -99,20 +99,29 @@ public class IdxBizFanHealthIndexServiceImpl extends BaseService<IdxBizFanHealth
);
tdid
=
address
+
"_"
+
idxBizFanPointProcessVariableClassification
.
getGatewayId
();
}
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Calendar
calendar
=
Calendar
.
getInstance
(
TimeZone
.
getTimeZone
(
"UTC"
));
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
);
//限制必须是区间时间段
if
(
startTime
==
null
||
endTime
==
null
){
Date
currentDayStartTime
=
DateUtils
.
getCurrentDayStartTime
(
new
Date
());
Date
currentDayEndTime
=
DateUtils
.
getCurrentDayEndTime
(
new
Date
());
startTime
=
sdf
.
format
(
currentDayStartTime
);
endTime
=
sdf
.
format
(
currentDayEndTime
);
}
else
{
Date
currentDayStartTime
=
DateUtils
.
dateParse
(
startTime
);
Date
currentDayEndTime
=
DateUtils
.
dateParse
(
endTime
);
if
(
startTime
.
length
()
==
10
)
{
startTime
=
startTime
.
concat
(
" 00:00:00"
);
endTime
=
endTime
.
concat
(
" 23:59:59"
);
}
else
if
(
startTime
.
length
()
==
13
)
{
startTime
=
startTime
.
concat
(
":00:00"
);
endTime
=
endTime
.
concat
(
":50:59"
);
}
else
if
(
startTime
.
length
()
==
16
)
{
startTime
=
startTime
.
concat
(
":00"
);
endTime
=
endTime
.
concat
(
":59"
);
}
else
{
startTime
=
startTime
.
concat
(
" 00:00:00"
);
endTime
=
endTime
.
concat
(
" 23:59:59"
);
}
Date
currentDayStartTime
=
DateUtils
.
dateAddHours
(
DateUtils
.
dateParse
(
startTime
),
-
8
);
Date
currentDayEndTime
=
DateUtils
.
dateAddHours
(
DateUtils
.
dateParse
(
endTime
),
-
8
);
startTime
=
sdf
.
format
(
currentDayStartTime
);
endTime
=
sdf
.
format
(
currentDayEndTime
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/application-kingbase8.properties
View file @
a839016a
...
...
@@ -26,14 +26,15 @@ spring.db6.datasource.password=Yeejoin@2020
spring.db6.datasource.driver-class-name
=
com.kingbase8.Driver
## eureka properties:
eureka.instance.hostname
=
10.20.1.160
eureka.instance.hostname
=
47.92.234.253
eureka.client.serviceUrl.defaultZone
=
http://admin:a1234560@${eureka.instance.hostname}:10001/eureka/
## redis properties:
spring.redis.database
=
1
spring.redis.host
=
10.20.
0.169
spring.redis.host
=
10.20.
1.210
spring.redis.port
=
6379
spring.redis.password
=
yeejoin@2020
openHealth
=
false
spring.cache.type
=
GENERIC
j2cache.open-spring-cache
=
true
j2cache.cache-clean-mode
=
passive
...
...
@@ -78,13 +79,13 @@ emqx.client-password=public
tdengine-server
:
driver-class-name
:
com.taosdata.jdbc.rs.RestfulDriver
jdbc-url
:
jdbc:TAOS-RS://10.20.0.
169
:6041/iot_data_1?user=root&password=taosdata&timezone=GMT%2b8&allowMultiQueries=true
jdbc-url
:
jdbc:TAOS-RS://10.20.0.
203
:6041/iot_data_1?user=root&password=taosdata&timezone=GMT%2b8&allowMultiQueries=true
username
:
root
password
:
taosdata
#spring.db3.datasource.type: com.alibaba.druid.pool.DruidDataSource
spring.db3.datasource.url
=
jdbc:TAOS-RS://10.20.0.
169
:6041/iot_data?user=root&password=taosdata&timezone=GMT%2b8&allowMultiQueries=true
spring.db3.datasource.url
=
jdbc:TAOS-RS://10.20.0.
203
:6041/iot_data?user=root&password=taosdata&timezone=GMT%2b8&allowMultiQueries=true
spring.db3.datasource.username
=
root
spring.db3.datasource.password
=
taosdata
spring.db3.datasource.driver-class-name
:
com.taosdata.jdbc.rs.RestfulDriver
...
...
@@ -92,7 +93,7 @@ spring.db3.datasource.driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
# ����ר��td���ݿ� analyse_data
#spring.db4.datasource.type: com.alibaba.druid.pool.DruidDataSource
spring.db4.datasource.url
=
jdbc:TAOS-RS://10.20.0.
169
:6041/analysis_data?user=root&password=taosdata&timezone=GMT%2b8&allowMultiQueries=true
spring.db4.datasource.url
=
jdbc:TAOS-RS://10.20.0.
203
:6041/analysis_data?user=root&password=taosdata&timezone=GMT%2b8&allowMultiQueries=true
spring.db4.datasource.username
=
root
spring.db4.datasource.password
=
taosdata
spring.db4.datasource.driver-class-name
:
com.taosdata.jdbc.rs.RestfulDriver
...
...
@@ -149,7 +150,7 @@ amos.secret.key=qaz
#eureka.instance.ip-address=172.16.3.122
spring.activemq.broker-url
=
tcp://10.20.
0.169
:61616
spring.activemq.broker-url
=
tcp://10.20.
1.210
:61616
spring.activemq.user
=
admin
spring.activemq.password
=
admin
spring.jms.pub-sub-domain
=
false
...
...
@@ -165,16 +166,16 @@ pictureUrl=upload/jxiop/syz/
#kafka
spring.kafka.bootstrap-servers
=
10.20.0.
169:9092
spring.kafka.bootstrap-servers
=
10.20.0.
223:9092,10.20.0.133:9200
spring.kafka.producer.retries
=
1
spring.kafka.producer.bootstrap-servers
=
10.20.0.
169:9092
spring.kafka.producer.bootstrap-servers
=
10.20.0.
223:9092,10.20.0.133:9200
spring.kafka.producer.batch-size
=
16384
spring.kafka.producer.buffer-memory
=
33554432
spring.kafka.producer.acks
=
1
spring.kafka.producer.key-serializer
=
org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.value-serializer
=
org.apache.kafka.common.serialization.StringSerializer
spring.kafka.consumer.group-id
=
consumerGroup
spring.kafka.consumer.bootstrap-servers
=
10.20.0.
169:9092
spring.kafka.consumer.bootstrap-servers
=
10.20.0.
223:9092,10.20.0.133:9200
spring.kafka.consumer.enable-auto-commit
=
false
spring.kafka.consumer.auto-offset-reset
=
earliest
spring.kafka.consumer.key-deserializer
=
org.apache.kafka.common.serialization.StringDeserializer
...
...
@@ -182,21 +183,22 @@ spring.kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.S
spring.kafka.listener.ack-mode
=
manual_immediate
spring.kafka.listener.type
=
batch
#һ����ȡ���� && �߳�����
spring.kafka.consumer.max-poll-records
=
3
0
#
spring.kafka.consumer.fetch-max-wait= 10000
spring.kafka.consumer.max-poll-records
=
5
0
spring.kafka.consumer.fetch-max-wait
=
10000
#��ǰʱ����ǰƫ������ ����ʷƫ������
last.month.num
=
12
#����� �㷨����
base.url.XGX
=
http://1
39.9.171.247
:8052/intelligent-analysis/correlation
base.url.XGX
=
http://1
0.20.1.29
:8052/intelligent-analysis/correlation
#�������� �㷨���õ�ַ
base.url.GKHF
=
http://1
39.9.171.247
:8052/intelligent-analysis/working-condition-division
base.url.GKHF
=
http://1
0.20.1.29
:8052/intelligent-analysis/working-condition-division
#����� �㷨����
base.url.ZXZ
=
http://1
39.9.171.247
:8052/intelligent-analysis/central-value
base.url.ZXZ
=
http://1
0.20.1.29
:8052/intelligent-analysis/central-value
#ָ���������㷨����
base.url.zsfx
:
http://1
39.9.171.247
:8052/intelligent-analysis/index-analysis
base.url.zsfx
:
http://1
0.20.1.29
:8052/intelligent-analysis/index-analysis
forecast.url
=
logic
=
\ No newline at end of file
analyse.cycle.offset
=
5
logic
=
false
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/application.properties
View file @
a839016a
...
...
@@ -2,7 +2,7 @@ spring.application.name=AMOS-JXIOP-ANALYSE-CZ
server.servlet.context-path
=
/jxiop-analyse
server.port
=
33400
server.uri-encoding
=
UTF-8
spring.profiles.active
=
dev1
spring.profiles.active
=
kingbase8
spring.jackson.time-zone
=
GMT+8
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
logging.config
=
classpath:logback-${spring.profiles.active}.xml
...
...
@@ -75,7 +75,7 @@ station.section=10
gl.sum.column
=
日发电量,月发电量,年发电量
gl.avg.column
=
有功功率,日利用小时,瞬时风速
spring.elasticsearch.rest.uris
=
http://10.20.0.
169
:9200
spring.elasticsearch.rest.uris
=
http://10.20.0.
223
:9200
spring.elasticsearch.rest.connection-timeout
=
30000
spring.elasticsearch.rest.username
=
elastic
spring.elasticsearch.rest.password
=
Yeejoin@2020
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper/cluster/SjglZsjZsbtzMapper.xml
View file @
a839016a
...
...
@@ -26,21 +26,7 @@
FROM
sjgl_zsj_zsbtz
WHERE
FSB IN (
SELECT
DBID
FROM
sjgl_zsj_zsbtz
WHERE
MACHGENRE = (
SELECT
DATAID
FROM
tpri_dmp_databook
WHERE
MACHGENRE = #{DATAID} and WERKS = #{WERKS}
)
)
</select>
<select
id=
"getStationInfoMapByStationGFWerks"
resultType=
"map"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment