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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
14 deletions
+31
-14
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+31
-14
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
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
java.lang.reflect.Array
;
import
java.lang.reflect.Array
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
org.apache.commons.lang3.time.DateUtils
;
import
org.apache.commons.lang3.time.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -52,20 +54,35 @@ public class TdHygfJpInverterWarnServiceImpl
...
@@ -52,20 +54,35 @@ public class TdHygfJpInverterWarnServiceImpl
String
[]
s
=
tdHygfJpInverterWarnDto
.
getState
().
split
(
","
);
String
[]
s
=
tdHygfJpInverterWarnDto
.
getState
().
split
(
","
);
tdHygfJpInverterWarnDto
.
setStates
(
Arrays
.
asList
(
s
));
tdHygfJpInverterWarnDto
.
setStates
(
Arrays
.
asList
(
s
));
}
}
List
<
TdHygfJpInverterWarnDto
>
list
=
this
.
baseMapper
.
list
(
tdHygfJpInverterWarnDto
);
if
(
tdHygfJpInverterWarnDto
.
getStationName
()
!=
null
)
{
if
(!
list
.
isEmpty
())
{
LambdaQueryWrapper
<
JpStation
>
wapper
=
new
LambdaQueryWrapper
<
JpStation
>().
like
(
JpStation:
:
getName
,
list
.
forEach
(
i
->
{
tdHygfJpInverterWarnDto
.
getStationName
());
JpStation
jpStation
=
jpStationServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
JpStation
>()
if
(!
tdHygfJpInverterWarnDto
.
getStationIds
().
isEmpty
())
{
.
eq
(
JpStation:
:
getThirdStationId
,
i
.
getThirdStationId
()));
wapper
.
in
(
JpStation:
:
getThirdStationId
,
tdHygfJpInverterWarnDto
.
getStationIds
());
if
(
jpStation
!=
null
)
{
}
i
.
setAddress
(
jpStation
.
getAddress
());
List
<
JpStation
>
sList
=
jpStationServiceImpl
.
list
(
wapper
);
i
.
setStationName
(
jpStation
.
getName
());
List
<
String
>
ids
=
sList
.
stream
().
map
(
i
->
i
.
getThirdStationId
()).
collect
(
Collectors
.
toList
());
i
.
setArea
(
jpStation
.
getArea
());
tdHygfJpInverterWarnDto
.
setStationIds
(
ids
);
}
}
if
(
i
.
getStartTime
()
!=
null
)
{
List
<
TdHygfJpInverterWarnDto
>
list
=
new
ArrayList
<>();
i
.
setStartTimeFormat
(
TimeUtil
.
dateFormat
(
i
.
getStartTime
()));
if
(
tdHygfJpInverterWarnDto
.
getStationIds
().
isEmpty
())
{
}
});
}
else
{
list
=
this
.
baseMapper
.
list
(
tdHygfJpInverterWarnDto
);
if
(!
list
.
isEmpty
())
{
list
.
forEach
(
i
->
{
JpStation
jpStation
=
jpStationServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
JpStation
>()
.
eq
(
JpStation:
:
getThirdStationId
,
i
.
getThirdStationId
()));
if
(
jpStation
!=
null
)
{
i
.
setAddress
(
jpStation
.
getAddress
());
i
.
setStationName
(
jpStation
.
getName
());
i
.
setArea
(
jpStation
.
getArea
());
}
if
(
i
.
getStartTime
()
!=
null
)
{
i
.
setStartTimeFormat
(
TimeUtil
.
dateFormat
(
i
.
getStartTime
()));
}
});
}
}
}
PageInfo
<
TdHygfJpInverterWarnDto
>
page
=
new
PageInfo
(
list
);
PageInfo
<
TdHygfJpInverterWarnDto
>
page
=
new
PageInfo
(
list
);
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>();
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
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