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
51c54e82
Commit
51c54e82
authored
Nov 21, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
18488d5e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
4 deletions
+8
-4
C09-base/pps-core-base/src/main/java/pps/core/base/entity/WindPredictionHistoryEnt.java
...n/java/pps/core/base/entity/WindPredictionHistoryEnt.java
+2
-2
C09-base/pps-core-base/src/main/java/pps/core/base/entity/WindPredictionHistoryView.java
.../java/pps/core/base/entity/WindPredictionHistoryView.java
+1
-1
C09-base/pps-core-base/src/main/java/pps/core/base/excel/ThirdApiWeatherDataListener2.java
...ava/pps/core/base/excel/ThirdApiWeatherDataListener2.java
+1
-0
C09-base/pps-core-base/src/main/java/pps/core/base/excel/WindPredictionDataListener.java
.../java/pps/core/base/excel/WindPredictionDataListener.java
+1
-0
C09-base/pps-core-base/src/main/java/pps/core/base/service/WindPredictionHistoryCloudServiceImpl.java
...e/base/service/WindPredictionHistoryCloudServiceImpl.java
+1
-0
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/WindPredictionHistoryViewMapper.xml
.../mapper/pps/core/base/WindPredictionHistoryViewMapper.xml
+2
-1
No files found.
C09-base/pps-core-base/src/main/java/pps/core/base/entity/WindPredictionHistoryEnt.java
View file @
51c54e82
...
...
@@ -21,8 +21,8 @@ import java.util.Date;
@TableName
(
"WIND_PREDICTION_HISTORY"
)
public
class
WindPredictionHistoryEnt
implements
Serializable
{
@XText
(
"ID"
)
@TableId
(
type
=
IdType
.
A
UTO
)
private
Lo
ng
id
;
@TableId
(
type
=
IdType
.
A
SSIGN_UUID
)
private
Stri
ng
id
;
@XText
(
"风电站ID"
)
@TableField
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/entity/WindPredictionHistoryView.java
View file @
51c54e82
...
...
@@ -24,7 +24,7 @@ import java.util.Date;
public
class
WindPredictionHistoryView
implements
Serializable
{
@XText
(
"ID"
)
@TableField
private
Lo
ng
id
;
private
Stri
ng
id
;
@XText
(
"风电站ID"
)
@TableField
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/excel/ThirdApiWeatherDataListener2.java
View file @
51c54e82
...
...
@@ -81,6 +81,7 @@ public class ThirdApiWeatherDataListener2 implements ReadListener<ThirdApiWeathe
break
;
}
WindPredictionHistoryView
historyView
=
new
WindPredictionHistoryView
();
historyView
.
setId
(
BaseUtils
.
randomUUIDString
());
historyView
.
setStationId
(
stationId
);
historyView
.
setDataTime
(
dateTime
);
historyView
.
setWindDirection
(
data
.
getWnd
());
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/excel/WindPredictionDataListener.java
View file @
51c54e82
...
...
@@ -95,6 +95,7 @@ public class WindPredictionDataListener implements ReadListener<WindPredictionEx
//去重
if
(
historyList
.
stream
()
.
noneMatch
(
item
->
DateUtil
.
compare
(
item
.
getDataTime
(),
build
.
getDataTime
())
==
0
))
{
build
.
setId
(
BaseUtils
.
randomUUIDString
());
historyList
.
add
(
build
);
}
}
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/WindPredictionHistoryCloudServiceImpl.java
View file @
51c54e82
...
...
@@ -108,6 +108,7 @@ public class WindPredictionHistoryCloudServiceImpl implements IWindPredictionHis
ThirdWindPowerGenerationEnt
ent
;
for
(
WindPredictionFutureEnt
future
:
list
)
{
WindPredictionHistoryView
view
=
new
WindPredictionHistoryView
();
view
.
setId
(
BaseUtils
.
randomUUIDString
());
view
.
setStationId
(
future
.
getStationId
());
view
.
setDataTime
(
future
.
getDataTime
());
view
.
setWindDirection
(
future
.
getWindDirection
());
...
...
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/WindPredictionHistoryViewMapper.xml
View file @
51c54e82
...
...
@@ -62,11 +62,12 @@
</delete>
<insert
id=
"batchInsert"
parameterType=
"list"
>
INSERT INTO WIND_PREDICTION_HISTORY (STATION_ID, DATA_TIME, WIND_DIRECTION, WIND_SPEED, AIR_TEMPERATURE,
INSERT INTO WIND_PREDICTION_HISTORY (
ID,
STATION_ID, DATA_TIME, WIND_DIRECTION, WIND_SPEED, AIR_TEMPERATURE,
HUMIDITY, PRESSURE, ACTUAL_WIND_DIRECTION, ACTUAL_WIND_SPEED, ACTUAL_POWER, PREDICTED_POWER, WND_100M,
WNS_100M, WNS_GRD_100M) VALUES
<foreach
collection=
"list"
separator=
","
item=
"item"
>
(
#{item.id},
#{item.stationId},
#{item.dataTime},
#{item.windDirection},
...
...
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