Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
abfd05fd
Commit
abfd05fd
authored
Mar 15, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序端权限报错问题修改。
parent
a7804cc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
21 deletions
+19
-21
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.java
+19
-21
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInverterWarnController.java
View file @
abfd05fd
...
@@ -131,32 +131,30 @@ public class TdHygfJpInverterWarnController extends BaseController {
...
@@ -131,32 +131,30 @@ public class TdHygfJpInverterWarnController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘逆变器报警表分页查询"
,
notes
=
"户用光伏监盘逆变器报警表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘逆变器报警表分页查询"
,
notes
=
"户用光伏监盘逆变器报警表分页查询"
)
public
ResponseModel
<
Page
<
TdHygfJpInverterWarnDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
public
ResponseModel
<
Page
<
TdHygfJpInverterWarnDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
)
{
@RequestParam
(
value
=
"size"
)
int
size
,
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
)
{
// List<JpPersonStation> pPersonStation =null;
List
<
JpPersonStation
>
pPersonStation
=
null
;
// if(tdHygfJpInverterWarnDto.getName()!=null&&!"".equals(tdHygfJpInverterWarnDto.getName())){
if
(
tdHygfJpInverterWarnDto
.
getName
()!=
null
&&!
""
.
equals
(
tdHygfJpInverterWarnDto
.
getName
())){
// LambdaQueryWrapper<JpPersonStation> qug1=new LambdaQueryWrapper<>();
LambdaQueryWrapper
<
JpPersonStation
>
qug1
=
new
LambdaQueryWrapper
<>();
// qug1.like(JpPersonStation::getStationName,tdHygfJpInverterWarnDto.getName());
qug1
.
like
(
JpPersonStation:
:
getStationName
,
tdHygfJpInverterWarnDto
.
getName
());
// pPersonStation=pPersonStationMapper.selectList(qug1);
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug1
);
// }else{
}
else
{
// LambdaQueryWrapper<JpPersonStation> qug = new LambdaQueryWrapper<>();
LambdaQueryWrapper
<
JpPersonStation
>
qug
=
new
LambdaQueryWrapper
<>();
// qug.eq(JpPersonStation::getPersonId, getUserInfo().getUserId());
qug
.
eq
(
JpPersonStation:
:
getPersonId
,
getUserInfo
().
getUserId
());
// pPersonStation = pPersonStationMapper.selectList(qug);
pPersonStation
=
pPersonStationMapper
.
selectList
(
qug
);
//
//
// }
}
if
(!
pPersonStation
.
isEmpty
())
{
// if (!pPersonStation.isEmpty()) {
Page
<
TdHygfJpInverterWarnDto
>
page
=
new
Page
<
TdHygfJpInverterWarnDto
>();
Page
<
TdHygfJpInverterWarnDto
>
page
=
new
Page
<
TdHygfJpInverterWarnDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
//
List<String> ids = pPersonStation.stream().map(i -> i.getStationId()).collect(Collectors.toList());
List
<
String
>
ids
=
pPersonStation
.
stream
().
map
(
i
->
i
.
getStationId
()).
collect
(
Collectors
.
toList
());
//
tdHygfJpInverterWarnDto.setStationIds(ids);
tdHygfJpInverterWarnDto
.
setStationIds
(
ids
);
return
ResponseHelper
.
buildResponse
(
return
ResponseHelper
.
buildResponse
(
tdHygfJpInverterWarnServiceImpl
.
queryForTdHygfJpInverterWarnPage
(
page
,
tdHygfJpInverterWarnDto
));
tdHygfJpInverterWarnServiceImpl
.
queryForTdHygfJpInverterWarnPage
(
page
,
tdHygfJpInverterWarnDto
));
//
} else {
}
else
{
//
return ResponseHelper.buildResponse(new Page<TdHygfJpInverterWarnDto>());
return
ResponseHelper
.
buildResponse
(
new
Page
<
TdHygfJpInverterWarnDto
>());
//
}
}
}
}
...
...
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