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
a7d4eb02
Commit
a7d4eb02
authored
Sep 28, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发电量乘系数
parent
32d1551b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+2
-1
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+3
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/constants/CommonConstans.java
View file @
a7d4eb02
...
@@ -4,7 +4,8 @@ import java.util.HashMap;
...
@@ -4,7 +4,8 @@ import java.util.HashMap;
public
class
CommonConstans
{
public
class
CommonConstans
{
//光伏发电量系数
//光伏发电量系数
public
static
final
Double
pvGenPoweActor
=
0.000001
;
public
static
final
Double
pvGenPoweActor
=
0.00001
;
public
static
final
Double
pvGenPoweActorDay
=
0.1
;
// 风电站:
// 风电站:
// (日/月/年)发电量=场站所有风机(日/月/年)发电量总和
// (日/月/年)发电量=场站所有风机(日/月/年)发电量总和
// 装机容量=场站所有风机装机容量总和
// 装机容量=场站所有风机装机容量总和
...
...
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 @
a7d4eb02
...
@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.mapper.StationPlanMapper;
...
@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.mapper.StationPlanMapper;
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.ESEquipments
;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESEquipments
;
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.constants.CommonConstans
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.SeriesData
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.SeriesData
;
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.utils.DateUtil
;
import
com.yeejoin.amos.boot.module.jxiop.biz.utils.DateUtil
;
...
@@ -303,7 +304,7 @@ public class LargeScreenImpl {
...
@@ -303,7 +304,7 @@ public class LargeScreenImpl {
List
<
String
>
listdate
=
dayReportnq
(
new
Date
());
List
<
String
>
listdate
=
dayReportnq
(
new
Date
());
seriesData
.
setAxisData
(
listdate
);
seriesData
.
setAxisData
(
listdate
);
try
{
try
{
emqKeeper
.
getMqttClient
().
publish
(
"country"
,
JSON
.
toJSONString
(
seriesData
).
getBytes
(),
0
,
false
);
emqKeeper
.
getMqttClient
().
publish
(
"country
Fd
"
,
JSON
.
toJSONString
(
seriesData
).
getBytes
(),
0
,
false
);
}
catch
(
MqttException
e
)
{
}
catch
(
MqttException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -397,7 +398,7 @@ public class LargeScreenImpl {
...
@@ -397,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
));
listdate
.
add
(
mapdta
.
get
(
s
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
);
}
else
{
}
else
{
listdate
.
add
(
0
d
);
listdate
.
add
(
0
d
);
}
}
...
...
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