Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
00e19eff
Commit
00e19eff
authored
Oct 07, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改大屏区域接入
parent
675f68aa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+4
-4
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+2
-0
application.properties
...p-bigscreen-biz/src/main/resources/application.properties
+5
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
View file @
00e19eff
...
@@ -75,7 +75,7 @@ public class LargeScreenImpl {
...
@@ -75,7 +75,7 @@ public class LargeScreenImpl {
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>();
map
.
put
(
"equipmentIndexName.keyword"
,
value
);
map
.
put
(
"equipmentIndexName.keyword"
,
value
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupavg
(
map
,
"value
Double
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupavg
(
map
,
"value
F
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
for
(
Terms
.
Bucket
bucket
:
lidate
)
{
for
(
Terms
.
Bucket
bucket
:
lidate
)
{
Aggregations
aggregation
=
bucket
.
getAggregations
();
Aggregations
aggregation
=
bucket
.
getAggregations
();
...
@@ -104,7 +104,7 @@ public class LargeScreenImpl {
...
@@ -104,7 +104,7 @@ public class LargeScreenImpl {
value
.
add
(
RSD
);
value
.
add
(
RSD
);
value
.
add
(
YFD
);
value
.
add
(
YFD
);
value
.
add
(
NFD
);
value
.
add
(
NFD
);
List
<?
extends
Terms
.
Bucket
>
lidatesum
=
commonServiceImpl
.
getgroupsum
(
map
,
"value
Double
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
List
<?
extends
Terms
.
Bucket
>
lidatesum
=
commonServiceImpl
.
getgroupsum
(
map
,
"value
F
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
for
(
Terms
.
Bucket
bucket
:
lidatesum
)
{
for
(
Terms
.
Bucket
bucket
:
lidatesum
)
{
Aggregations
aggregation
=
bucket
.
getAggregations
();
Aggregations
aggregation
=
bucket
.
getAggregations
();
...
@@ -192,7 +192,7 @@ public class LargeScreenImpl {
...
@@ -192,7 +192,7 @@ public class LargeScreenImpl {
map
.
put
(
"equipmentIndexName.keyword"
,
value
);
map
.
put
(
"equipmentIndexName.keyword"
,
value
);
map
.
put
(
"gatewayId.keyword"
,
gatewayId
);
map
.
put
(
"gatewayId.keyword"
,
gatewayId
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupavg
(
map
,
"value
Double
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupavg
(
map
,
"value
F
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
for
(
Terms
.
Bucket
bucket
:
lidate
)
{
for
(
Terms
.
Bucket
bucket
:
lidate
)
{
Aggregations
aggregation
=
bucket
.
getAggregations
();
Aggregations
aggregation
=
bucket
.
getAggregations
();
...
@@ -221,7 +221,7 @@ public class LargeScreenImpl {
...
@@ -221,7 +221,7 @@ public class LargeScreenImpl {
value
.
add
(
RSD
);
value
.
add
(
RSD
);
value
.
add
(
YFD
);
value
.
add
(
YFD
);
value
.
add
(
NFD
);
value
.
add
(
NFD
);
List
<?
extends
Terms
.
Bucket
>
lidatesum
=
commonServiceImpl
.
getgroupsum
(
map
,
"value
Double
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
List
<?
extends
Terms
.
Bucket
>
lidatesum
=
commonServiceImpl
.
getgroupsum
(
map
,
"value
F
"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
for
(
Terms
.
Bucket
bucket
:
lidatesum
)
{
for
(
Terms
.
Bucket
bucket
:
lidatesum
)
{
Aggregations
aggregation
=
bucket
.
getAggregations
();
Aggregations
aggregation
=
bucket
.
getAggregations
();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceImpl.java
View file @
00e19eff
...
@@ -15,6 +15,7 @@ import org.slf4j.Logger;
...
@@ -15,6 +15,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
...
@@ -781,6 +782,7 @@ public class MonitoringServiceImpl {
...
@@ -781,6 +782,7 @@ public class MonitoringServiceImpl {
return
page
;
return
page
;
}
}
@Scheduled
(
cron
=
"${large.cron}"
)
public
void
getTotalData
()
{
public
void
getTotalData
()
{
//计算所有场站年计划完成量
//计算所有场站年计划完成量
int
year
=
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
);
int
year
=
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/application.properties
View file @
00e19eff
...
@@ -75,12 +75,15 @@ station.section=10
...
@@ -75,12 +75,15 @@ station.section=10
gl.sum.column
=
日发电量,月发电量,年发电量
gl.sum.column
=
日发电量,月发电量,年发电量
gl.avg.column
=
有功功率,日利用小时,瞬时风速
gl.avg.column
=
有功功率,日利用小时,瞬时风速
spring.elasticsearch.rest.uris
=
http://
39.98.224.23
:9200
spring.elasticsearch.rest.uris
=
http://
139.9.173.44
:9200
spring.elasticsearch.rest.connection-timeout
=
30000
spring.elasticsearch.rest.connection-timeout
=
30000
spring.elasticsearch.rest.username
=
elastic
spring.elasticsearch.rest.username
=
elastic
spring.elasticsearch.rest.password
=
123456
spring.elasticsearch.rest.password
=
Yeejoin@2020
spring.elasticsearch.rest.read-timeout
=
30000
spring.elasticsearch.rest.read-timeout
=
30000
daily.power.generation.cron
=
*/30 * * * * ?
daily.power.generation.cron
=
*/30 * * * * ?
moon.power.generation.cron
=
*/30 * * * * ?
moon.power.generation.cron
=
*/30 * * * * ?
year.power.generation.cron
=
*/30 * * * * ?
year.power.generation.cron
=
*/30 * * * * ?
large.cron
=
0 0/15 * * * ?
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