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
f36ede1a
Commit
f36ede1a
authored
Nov 21, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
208c0460
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/entity/ThirdPhotovoltaicPowerEnt.java
...pps/core/prediction/entity/ThirdPhotovoltaicPowerEnt.java
+2
-2
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/entity/ThirdPhotovoltaicPowerView.java
...ps/core/prediction/entity/ThirdPhotovoltaicPowerView.java
+1
-1
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/ThirdDataAccessCloudServiceImpl.java
...e/prediction/service/ThirdDataAccessCloudServiceImpl.java
+2
-0
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdPhotovoltaicPowerViewMapper.xml
.../pps/core/prediction/ThirdPhotovoltaicPowerViewMapper.xml
+2
-1
No files found.
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/entity/ThirdPhotovoltaicPowerEnt.java
View file @
f36ede1a
...
...
@@ -21,8 +21,8 @@ import java.util.Date;
@TableName
(
"THIRD_PHOTOVOLTAIC_POWER"
)
public
class
ThirdPhotovoltaicPowerEnt
implements
Serializable
{
@XText
(
"ID"
)
@TableId
(
type
=
IdType
.
A
UTO
)
private
Lo
ng
id
;
@TableId
(
type
=
IdType
.
A
SSIGN_UUID
)
private
Stri
ng
id
;
@XText
(
"井组名称(线路/光伏电站)"
)
@TableField
...
...
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/entity/ThirdPhotovoltaicPowerView.java
View file @
f36ede1a
...
...
@@ -24,7 +24,7 @@ import java.util.Date;
public
class
ThirdPhotovoltaicPowerView
implements
Serializable
{
@XText
(
"ID"
)
@TableField
private
Lo
ng
id
;
private
Stri
ng
id
;
@XText
(
"井组名称(线路/光伏电站)"
)
@TableField
...
...
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/ThirdDataAccessCloudServiceImpl.java
View file @
f36ede1a
...
...
@@ -355,6 +355,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
photovoltaicPower
=
photovoltaicPower
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
?
BigDecimal
.
ZERO
:
photovoltaicPower
;
dtoList
.
add
(
ThirdPhotovoltaicPowerView
.
builder
()
.
id
(
BaseUtils
.
randomUUIDString
())
.
stationName
(
output
.
getStationName
())
.
createDate
(
output
.
getCreateDate
())
.
photovoltaicPower
(
photovoltaicPower
)
...
...
@@ -418,6 +419,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
photovoltaicPower
=
photovoltaicPower
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
?
BigDecimal
.
ZERO
:
photovoltaicPower
;
dtoList
.
add
(
ThirdPhotovoltaicPowerView
.
builder
()
.
id
(
BaseUtils
.
randomUUIDString
())
.
stationName
(
output
.
getStationName
())
.
createDate
(
output
.
getCreateDate
())
.
photovoltaicPower
(
photovoltaicPower
)
...
...
C12-prediction/pps-core-prediction/src/main/resources/mybatis/mapper/pps/core/prediction/ThirdPhotovoltaicPowerViewMapper.xml
View file @
f36ede1a
...
...
@@ -37,10 +37,11 @@
</select>
<insert
id=
"batchInsertList"
parameterType=
"list"
>
INSERT INTO THIRD_PHOTOVOLTAIC_POWER (STATION_NAME, CREATE_DATE, PHOTOVOLTAIC_POWER, SYSTEM_SOURCE)
INSERT INTO THIRD_PHOTOVOLTAIC_POWER (
ID,
STATION_NAME, CREATE_DATE, PHOTOVOLTAIC_POWER, SYSTEM_SOURCE)
VALUES
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
#{item.id},
#{item.stationName},
#{item.createDate},
#{item.photovoltaicPower},
...
...
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