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
3a8a411c
Commit
3a8a411c
authored
Sep 28, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发电量乘系数
parent
a7d4eb02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+1
-1
PowerGenerationImpl.java
...ot/module/jxiop/biz/service/impl/PowerGenerationImpl.java
+5
-0
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 @
3a8a411c
...
@@ -398,7 +398,7 @@ public class LargeScreenImpl {
...
@@ -398,7 +398,7 @@ public class LargeScreenImpl {
List
<
String
>
list
=
dayReport
(
date
);
List
<
String
>
list
=
dayReport
(
date
);
for
(
String
s
:
list
)
{
for
(
String
s
:
list
)
{
if
(
mapdta
!=
null
&&
mapdta
.
containsKey
(
s
)){
if
(
mapdta
!=
null
&&
mapdta
.
containsKey
(
s
)){
listdate
.
add
(
mapdta
.
get
(
s
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
);
listdate
.
add
(
mapdta
.
get
(
s
));
}
else
{
}
else
{
listdate
.
add
(
0
d
);
listdate
.
add
(
0
d
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PowerGenerationImpl.java
View file @
3a8a411c
...
@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto;
...
@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESDailyPowerGeneration
;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESDailyPowerGeneration
;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESMoonPowerGeneration
;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESMoonPowerGeneration
;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESYearPowerGeneration
;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESYearPowerGeneration
;
import
com.yeejoin.amos.boot.module.jxiop.biz.constants.CommonConstans
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.StationCacheInfoDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.StationCacheInfoDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.repository.ESDailyPowerGenerationRepository
;
import
com.yeejoin.amos.boot.module.jxiop.biz.repository.ESDailyPowerGenerationRepository
;
import
com.yeejoin.amos.boot.module.jxiop.biz.repository.ESMoonPowerGenerationRepository
;
import
com.yeejoin.amos.boot.module.jxiop.biz.repository.ESMoonPowerGenerationRepository
;
...
@@ -55,6 +56,10 @@ public class PowerGenerationImpl {
...
@@ -55,6 +56,10 @@ public class PowerGenerationImpl {
querySql
=
String
.
format
(
querySql
,
gatewayId
,
value
,
daty
,
daty
);
querySql
=
String
.
format
(
querySql
,
gatewayId
,
value
,
daty
,
daty
);
List
<
IndexDto
>
queryList
=
influxDButils
.
getListData
(
querySql
,
IndexDto
.
class
);
List
<
IndexDto
>
queryList
=
influxDButils
.
getListData
(
querySql
,
IndexDto
.
class
);
queryList
.
forEach
(
item
->
{
item
.
setValue
(
String
.
valueOf
(
Double
.
parseDouble
(
item
.
getValue
())
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
item
.
setValueLabel
(
String
.
valueOf
(
Double
.
parseDouble
(
item
.
getValueLabel
())
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
});
return
queryList
;
return
queryList
;
}
}
//更新es 数据
//更新es 数据
...
...
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