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
10db9e61
Commit
10db9e61
authored
Sep 12, 2023
by
ZWT
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d7256cca
686ff1ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
C09-base/pps-core-base/src/main/java/pps/core/base/service/BasePhotovoltaicPlantService.java
...a/pps/core/base/service/BasePhotovoltaicPlantService.java
+1
-1
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWatherCloudServiceImpl.java
...ava/pps/core/base/service/BaseWatherCloudServiceImpl.java
+2
-1
No files found.
C09-base/pps-core-base/src/main/java/pps/core/base/service/BasePhotovoltaicPlantService.java
View file @
10db9e61
...
...
@@ -170,7 +170,7 @@ public class BasePhotovoltaicPlantService extends BaseService {
ouId
=
input
.
getParentOuId
();
viewList
=
mapper
.
selectOuSonByParentOuId
(
record
);
}
queryWrapper
.
lambda
().
eq
(
BasePhotovoltaicPlantEnt:
:
getOuId
,
ouId
).
eq
(
BasePhotovoltaicPlantEnt:
:
getIsDeleted
,
0
);
queryWrapper
.
lambda
().
eq
(
BasePhotovoltaicPlantEnt:
:
getOuId
,
ouId
).
eq
(
BasePhotovoltaicPlantEnt:
:
getIsDeleted
,
BusinessConstant
.
ONE
);
List
<
BasePhotovoltaicPlantEnt
>
plantList
=
plantMapper
.
selectList
(
queryWrapper
);
plantList
.
forEach
(
item
->
{
SysOrganizationView
view
=
new
SysOrganizationView
();
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWatherCloudServiceImpl.java
View file @
10db9e61
...
...
@@ -18,6 +18,7 @@ import pps.core.base.mapper.BasePhotovoltaicPlantViewMapper;
import
pps.core.base.mapper.PlantPredictedPowerDataMapper
;
import
pps.core.base.mapper.WeatherDataMapper
;
import
pps.core.base.utils.HttpUtils
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.utils.DateUtil
;
import
xstartup.annotation.XService
;
import
xstartup.base.XContext
;
...
...
@@ -50,7 +51,7 @@ public class BaseWatherCloudServiceImpl implements BaseWatherCloudService {
//1.获取电站数据,并根据电站数据,获取到电站所在城市,然后获取到天气数据
BasePhotovoltaicPlantViewMapper
mapper
=
context
.
getBean
(
BasePhotovoltaicPlantViewMapper
.
class
);
BasePhotovoltaicPlantView
view
=
new
BasePhotovoltaicPlantView
();
view
.
setIsDeleted
(
ScadaConstant
.
IS_DELETE_FLAS
E
);
view
.
setIsDeleted
(
BusinessConstant
.
ON
E
);
List
<
BasePhotovoltaicPlantView
>
plantList
=
mapper
.
selectPlantDetailList
(
view
);
for
(
BasePhotovoltaicPlantView
item
:
plantList
){
if
(
XStringUtils
.
isNotEmpty
(
item
.
getCityCode
())
&&
XStringUtils
.
isNotEmpty
(
item
.
getProvinceCode
())){
...
...
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