Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
8234caa5
Commit
8234caa5
authored
Oct 18, 2023
by
tianchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1光伏预测调整,预测算法页面
parent
d8fdc167
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PlantPredictedPowerLongTermDataCloudServiceImpl.java
...vice/PlantPredictedPowerLongTermDataCloudServiceImpl.java
+4
-1
No files found.
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PlantPredictedPowerLongTermDataCloudServiceImpl.java
View file @
8234caa5
...
@@ -69,7 +69,7 @@ public class PlantPredictedPowerLongTermDataCloudServiceImpl implements PlantPre
...
@@ -69,7 +69,7 @@ public class PlantPredictedPowerLongTermDataCloudServiceImpl implements PlantPre
PlantPowerDataEnt
lastEnt
=
powerDataMapper
.
selectOne
(
queryWrapper
);
PlantPowerDataEnt
lastEnt
=
powerDataMapper
.
selectOne
(
queryWrapper
);
//获取同比 = 当前/同期
//获取同比 = 当前/同期
BigDecimal
compare
=
new
BigDecimal
(
1
);
BigDecimal
compare
=
new
BigDecimal
(
1
);
if
(
lastEnt
.
getPower
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
if
(
lastEnt
.
getPower
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
currentEnt
.
getPower
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
)
compare
=
currentEnt
.
getPower
().
divide
(
lastEnt
.
getPower
()
,
6
,
BigDecimal
.
ROUND_HALF_UP
);
compare
=
currentEnt
.
getPower
().
divide
(
lastEnt
.
getPower
()
,
6
,
BigDecimal
.
ROUND_HALF_UP
);
//获取同期30天数据
//获取同期30天数据
queryWrapper
.
clear
();
queryWrapper
.
clear
();
...
@@ -115,4 +115,7 @@ public class PlantPredictedPowerLongTermDataCloudServiceImpl implements PlantPre
...
@@ -115,4 +115,7 @@ public class PlantPredictedPowerLongTermDataCloudServiceImpl implements PlantPre
}
}
return
XServiceResult
.
OK
;
return
XServiceResult
.
OK
;
}
}
}
}
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