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
0f865058
Commit
0f865058
authored
Dec 18, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
e33691e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PlantPowerDataService.java
...va/pps/core/prediction/service/PlantPowerDataService.java
+2
-15
No files found.
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PlantPowerDataService.java
View file @
0f865058
...
...
@@ -13,7 +13,6 @@ import pps.core.common.excel.util.EasyExcelUtil;
import
pps.core.common.excel.util.ExcelStyleTool
;
import
pps.core.prediction.entity.PlantPowerDataEnt
;
import
pps.core.prediction.entity.PlantPowerDataView
;
import
pps.core.prediction.enums.ImportFieldDic
;
import
pps.core.prediction.mapper.PlantPowerDataMapper
;
import
pps.core.prediction.mapper.PlantPowerDataViewMapper
;
import
pps.core.prediction.service.data.plant_power_data.ExcelPlantPowerTemplate
;
...
...
@@ -34,8 +33,8 @@ import xstartup.feature.api.annotation.XApiUpload;
import
xstartup.feature.mybatis.helper.XMapperHelper
;
import
java.math.BigDecimal
;
import
java.util.
*
;
import
java.util.
stream.Collectors
;
import
java.util.
ArrayList
;
import
java.util.
List
;
@XService
@XText
(
"电站实际发电数据"
)
...
...
@@ -143,18 +142,6 @@ public class PlantPowerDataService {
return
XServiceResult
.
OK
;
}
private
List
<
String
>
getExcelHeaderList
()
{
List
<
Map
<
String
,
Object
>>
fieldList
=
new
ArrayList
<>();
for
(
ImportFieldDic
value
:
ImportFieldDic
.
values
())
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"col"
,
value
.
getCol
());
map
.
put
(
"sort"
,
value
.
getSort
());
fieldList
.
add
(
map
);
}
fieldList
.
sort
(
Comparator
.
comparing
(
o
->
((
Integer
)
o
.
get
(
"sort"
))));
return
fieldList
.
stream
().
map
(
x
->
((
String
)
x
.
get
(
"col"
))).
collect
(
Collectors
.
toList
());
}
public
void
doTrainData
(
XContext
context
,
String
plantId
)
{
try
{
XHttpUtils
.
postAsJson
(
"http://127.0.0.1:10098/aiprediction/xgbtrain?plantId="
+
plantId
,
10000
);
...
...
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