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
ea552446
Commit
ea552446
authored
Sep 22, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加筛选
parent
5d2a94e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+18
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
View file @
ea552446
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
java.lang.reflect.Array
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
org.apache.commons.lang3.time.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -52,7 +54,21 @@ public class TdHygfJpInverterWarnServiceImpl
String
[]
s
=
tdHygfJpInverterWarnDto
.
getState
().
split
(
","
);
tdHygfJpInverterWarnDto
.
setStates
(
Arrays
.
asList
(
s
));
}
List
<
TdHygfJpInverterWarnDto
>
list
=
this
.
baseMapper
.
list
(
tdHygfJpInverterWarnDto
);
if
(
tdHygfJpInverterWarnDto
.
getStationName
()
!=
null
)
{
LambdaQueryWrapper
<
JpStation
>
wapper
=
new
LambdaQueryWrapper
<
JpStation
>().
like
(
JpStation:
:
getName
,
tdHygfJpInverterWarnDto
.
getStationName
());
if
(!
tdHygfJpInverterWarnDto
.
getStationIds
().
isEmpty
())
{
wapper
.
in
(
JpStation:
:
getThirdStationId
,
tdHygfJpInverterWarnDto
.
getStationIds
());
}
List
<
JpStation
>
sList
=
jpStationServiceImpl
.
list
(
wapper
);
List
<
String
>
ids
=
sList
.
stream
().
map
(
i
->
i
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
tdHygfJpInverterWarnDto
.
setStationIds
(
ids
);
}
List
<
TdHygfJpInverterWarnDto
>
list
=
new
ArrayList
<>();
if
(
tdHygfJpInverterWarnDto
.
getStationIds
().
isEmpty
())
{
}
else
{
list
=
this
.
baseMapper
.
list
(
tdHygfJpInverterWarnDto
);
if
(!
list
.
isEmpty
())
{
list
.
forEach
(
i
->
{
JpStation
jpStation
=
jpStationServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
JpStation
>()
...
...
@@ -67,6 +83,7 @@ public class TdHygfJpInverterWarnServiceImpl
}
});
}
}
PageInfo
<
TdHygfJpInverterWarnDto
>
page
=
new
PageInfo
(
list
);
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>();
pagenew
.
setCurrent
(
pageNum
);
...
...
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