Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
83ed02a0
Commit
83ed02a0
authored
Sep 20, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加判断
parent
a3b1d597
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
TdHygfJpInverterWarnMapper.xml
.../resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
+0
-0
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+13
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
View file @
83ed02a0
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
83ed02a0
...
@@ -133,7 +133,11 @@ public class JpStationController extends BaseController {
...
@@ -133,7 +133,11 @@ public class JpStationController extends BaseController {
LambdaQueryWrapper
<
JpPersonStation
>
qug
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
JpPersonStation
>
qug
=
new
LambdaQueryWrapper
<>();
qug
.
eq
(
JpPersonStation:
:
getPersonId
,
getUserInfo
().
getUserId
());
qug
.
eq
(
JpPersonStation:
:
getPersonId
,
getUserInfo
().
getUserId
());
List
<
JpPersonStation
>
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug
);
List
<
JpPersonStation
>
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug
);
if
(
pPersonStation
!=
null
&&!
pPersonStation
.
isEmpty
()){
reviewDto
.
setStatioId
(
pPersonStation
.
isEmpty
()?
null
:
pPersonStation
);
reviewDto
.
setStatioId
(
pPersonStation
.
isEmpty
()?
null
:
pPersonStation
);
}
else
{
ResponseHelper
.
buildResponse
(
null
);
}
// }
// }
Page
<
JpStationDto
>
page
=
jpStationServiceImpl
.
queryForJpStationPage
(
current
,
size
,
reviewDto
);
Page
<
JpStationDto
>
page
=
jpStationServiceImpl
.
queryForJpStationPage
(
current
,
size
,
reviewDto
);
return
ResponseHelper
.
buildResponse
(
page
);
return
ResponseHelper
.
buildResponse
(
page
);
...
@@ -162,7 +166,12 @@ public class JpStationController extends BaseController {
...
@@ -162,7 +166,12 @@ public class JpStationController extends BaseController {
LambdaQueryWrapper
<
JpPersonStation
>
qug
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
JpPersonStation
>
qug
=
new
LambdaQueryWrapper
<>();
qug
.
eq
(
JpPersonStation:
:
getPersonId
,
getUserInfo
().
getUserId
());
qug
.
eq
(
JpPersonStation:
:
getPersonId
,
getUserInfo
().
getUserId
());
List
<
JpPersonStation
>
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug
);
List
<
JpPersonStation
>
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug
);
if
(
pPersonStation
!=
null
&&!
pPersonStation
.
isEmpty
()){
reviewDto
.
setStatioId
(
pPersonStation
.
isEmpty
()?
null
:
pPersonStation
);
reviewDto
.
setStatioId
(
pPersonStation
.
isEmpty
()?
null
:
pPersonStation
);
}
else
{
ResponseHelper
.
buildResponse
(
null
);
}
List
<
Map
<
String
,
Object
>>
listCollector
=
jpCollectorMapper
.
queryCollectorCountStatus
(
reviewDto
);
List
<
Map
<
String
,
Object
>>
listCollector
=
jpCollectorMapper
.
queryCollectorCountStatus
(
reviewDto
);
List
<
Map
<
String
,
Object
>>
listInverter
=
jpInverterMapper
.
queryInverterCountStatus
(
reviewDto
);
List
<
Map
<
String
,
Object
>>
listInverter
=
jpInverterMapper
.
queryInverterCountStatus
(
reviewDto
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
@@ -223,7 +232,11 @@ public class JpStationController extends BaseController {
...
@@ -223,7 +232,11 @@ public class JpStationController extends BaseController {
LambdaQueryWrapper
<
JpPersonStation
>
qug
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
JpPersonStation
>
qug
=
new
LambdaQueryWrapper
<>();
qug
.
eq
(
JpPersonStation:
:
getPersonId
,
getUserInfo
().
getUserId
());
qug
.
eq
(
JpPersonStation:
:
getPersonId
,
getUserInfo
().
getUserId
());
List
<
JpPersonStation
>
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug
);
List
<
JpPersonStation
>
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug
);
if
(
pPersonStation
!=
null
&&!
pPersonStation
.
isEmpty
()){
reviewDto
.
setStatioId
(
pPersonStation
.
isEmpty
()?
null
:
pPersonStation
);
reviewDto
.
setStatioId
(
pPersonStation
.
isEmpty
()?
null
:
pPersonStation
);
}
else
{
ResponseHelper
.
buildResponse
(
null
);
}
}
}
return
ResponseHelper
.
buildResponse
(
jpStationMapper
.
queryCount
(
reviewDto
));
return
ResponseHelper
.
buildResponse
(
jpStationMapper
.
queryCount
(
reviewDto
));
}
}
...
...
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