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
33e60e16
Commit
33e60e16
authored
Dec 17, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
185c4902
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
136 additions
and
3 deletions
+136
-3
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/PlantPredictedPowerDataViewMapper.xml
...apper/pps/core/base/PlantPredictedPowerDataViewMapper.xml
+65
-1
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/WeatherBureauDataViewMapper.xml
...atis/mapper/pps/core/base/WeatherBureauDataViewMapper.xml
+33
-1
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/WindPredictionFutureViewMapper.xml
...s/mapper/pps/core/base/WindPredictionFutureViewMapper.xml
+38
-1
No files found.
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/PlantPredictedPowerDataViewMapper.xml
View file @
33e60e16
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pps.core.base.mapper.PlantPredictedPowerDataViewMapper"
>
<mapper
namespace=
"pps.core.base.mapper.PlantPredictedPowerDataViewMapper"
>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
databaseId=
"MySQL"
>
INSERT INTO PLANT_PREDICTED_POWER_DATA
INSERT INTO PLANT_PREDICTED_POWER_DATA
(
(
ID,
ID,
...
@@ -51,4 +51,68 @@
...
@@ -51,4 +51,68 @@
)
)
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO PLANT_PREDICTED_POWER_DATA (
ID,
PLANT_ID,
DATA_DATE,
YEAR_TIME,
MONTH_TIME,
DAY_TIME,
HOUR_TIME,
MIN_TIME,
TEMPERATURE,
HUMIDITY,
WIND_SPEED,
WIND_DIRECTION,
PRESSURE,
<if
test=
"item.planeIrradiance != null"
>
PLANE_IRRADIANCE,
</if>
<if
test=
"item.horizontalIrradiance != null"
>
HORIZONTAL_IRRADIANCE,
</if>
<if
test=
"item.power != null"
>
POWER,
</if>
CREATE_TIME,
PLANT_NAME,
WEATHER_TYPE,
PRECIPITATION,
AREA_CODE
) VALUES (
#{item.id},
#{item.plantId},
#{item.dataDate},
#{item.yearTime},
#{item.monthTime},
#{item.dayTime},
#{item.hourTime},
#{item.minTime},
#{item.temperature},
#{item.humidity},
#{item.windSpeed},
#{item.windDirection},
#{item.pressure},
<if
test=
"item.planeIrradiance != null"
>
#{item.planeIrradiance},
</if>
<if
test=
"item.horizontalIrradiance != null"
>
#{item.horizontalIrradiance},
</if>
<if
test=
"item.power != null"
>
#{item.power},
</if>
#{item.createTime},
#{item.plantName},
#{item.weatherType},
#{item.precipitation},
#{item.areaCode}
)
</foreach>
SELECT * FROM DUAL
</insert>
</mapper>
</mapper>
\ No newline at end of file
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/WeatherBureauDataViewMapper.xml
View file @
33e60e16
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
AND #{end}
AND #{end}
</delete>
</delete>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
databaseId=
"MySQL"
>
INSERT INTO WEATHER_BUREAU_DATA (
INSERT INTO WEATHER_BUREAU_DATA (
ID,
ID,
DATA_TIME,
DATA_TIME,
...
@@ -86,4 +86,36 @@
...
@@ -86,4 +86,36 @@
)
)
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO WEATHER_BUREAU_DATA (
ID,
DATA_TIME,
WEATHER_ICON,
AIR_TEMPERATURE,
PRECIPITATION,
WIND_SPEED,
WIND_DIRECTION,
PRESSURE,
HUMIDITY,
CLOUD_COVER,
AREA_CODE
) VALUES (
#{item.id},
#{item.dataTime},
#{item.weatherIcon},
#{item.airTemperature},
#{item.precipitation},
#{item.windSpeed},
#{item.windDirection},
#{item.pressure},
#{item.humidity},
#{item.cloudCover},
#{item.areaCode}
)
</foreach>
SELECT * FROM DUAL
</insert>
</mapper>
</mapper>
\ No newline at end of file
C09-base/pps-core-base/src/main/resources/mybatis/mapper/pps/core/base/WindPredictionFutureViewMapper.xml
View file @
33e60e16
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
AND #{end}
AND #{end}
</delete>
</delete>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
databaseId=
"MySQL"
>
INSERT INTO WIND_PREDICTION_FUTURE (ID, STATION_ID, DATA_TIME, WIND_DIRECTION, WIND_SPEED, AIR_TEMPERATURE,
INSERT INTO WIND_PREDICTION_FUTURE (ID, STATION_ID, DATA_TIME, WIND_DIRECTION, WIND_SPEED, AIR_TEMPERATURE,
HUMIDITY, PRESSURE ,ACTUAL_WIND_SPEED ,ACTUAL_POWER ,PREDICTED_POWER) VALUES
HUMIDITY, PRESSURE ,ACTUAL_WIND_SPEED ,ACTUAL_POWER ,PREDICTED_POWER) VALUES
<foreach
collection=
"list"
separator=
","
item=
"item"
>
<foreach
collection=
"list"
separator=
","
item=
"item"
>
...
@@ -76,4 +76,41 @@
...
@@ -76,4 +76,41 @@
)
)
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
databaseId=
"Oracle"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO WIND_PREDICTION_FUTURE (ID, STATION_ID, DATA_TIME, WIND_DIRECTION, WIND_SPEED, AIR_TEMPERATURE,
HUMIDITY, PRESSURE
<if
test=
"item.actualWindSpeed != null"
>
,ACTUAL_WIND_SPEED
</if>
<if
test=
"item.actualPower != null"
>
,ACTUAL_POWER
</if>
<if
test=
"item.predictedPower != null"
>
,PREDICTED_POWER
</if>
) VALUES (
#{item.id},
#{item.stationId},
#{item.dataTime},
#{item.windDirection},
#{item.windSpeed},
#{item.airTemperature},
#{item.humidity},
#{item.pressure}
<if
test=
"item.actualWindSpeed != null"
>
,#{item.actualWindSpeed}
</if>
<if
test=
"item.actualPower != null"
>
,#{item.actualPower}
</if>
<if
test=
"item.predictedPower != null"
>
,#{item.predictedPower}
</if>
)
</foreach>
SELECT * FROM DUAL
</insert>
</mapper>
</mapper>
\ No newline at end of file
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