Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
Overview
Overview
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
首航-临时账号
api
Commits
efd25dfb
Commit
efd25dfb
authored
Nov 16, 2020
by
java-温文海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
fbd86118
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
StatisticalListBean.java
src/com/ejweb/modules/airport/bean/StatisticalListBean.java
+3
-3
StatisticalService.java
src/com/ejweb/modules/airport/service/StatisticalService.java
+6
-11
No files found.
src/com/ejweb/modules/airport/bean/StatisticalListBean.java
View file @
efd25dfb
...
...
@@ -18,7 +18,7 @@ public class StatisticalListBean extends GenericBean {
@Min
(
value
=
1
,
message
=
"pageSize必须大于等于1"
)
private
int
pageSize
=
GConstants
.
PAGE_SIZE
;
//每页条数
private
String
benchmarkingTime
;
private
int
airlineStatus
;
private
Integer
airlineStatus
;
public
String
getDepIata
()
{
return
depIata
;
...
...
@@ -68,11 +68,11 @@ public class StatisticalListBean extends GenericBean {
this
.
benchmarkingTime
=
benchmarkingTime
;
}
public
int
getAirlineStatus
()
{
public
Integer
getAirlineStatus
()
{
return
airlineStatus
;
}
public
void
setAirlineStatus
(
int
airlineStatus
)
{
public
void
setAirlineStatus
(
Integer
airlineStatus
)
{
this
.
airlineStatus
=
airlineStatus
;
}
}
src/com/ejweb/modules/airport/service/StatisticalService.java
View file @
efd25dfb
...
...
@@ -146,23 +146,18 @@ public class StatisticalService extends BaseService<StatisticalDao> {
PageInfo
<
StatisticalListEntity
>
pageInfo
=
null
;
List
<
StatisticalListEntity
>
lists
=
null
;
lists
=
statisticalDao
.
getList
(
statisticalListBean
);
if
(
Objects
.
nonNull
(
statisticalListBean
.
getAirlineStatus
())){
//使用迭代器进行筛选
Iterator
<
StatisticalListEntity
>
iter
=
lists
.
iterator
();
while
(
iter
.
hasNext
())
{
StatisticalListEntity
s
=
iter
.
next
();
//使用迭代器进行筛选
Iterator
<
StatisticalListEntity
>
iter
=
lists
.
iterator
();
while
(
iter
.
hasNext
())
{
StatisticalListEntity
s
=
iter
.
next
();
if
(
Objects
.
nonNull
(
statisticalListBean
.
getAirlineStatus
())){
//当此对象状态与传入状态不一致时remove对象
if
(
s
.
getAirlineStatus
()
!=
statisticalListBean
.
getAirlineStatus
()){
lists
.
remove
(
s
);
}
}
}
for
(
StatisticalListEntity
s:
lists
)
{
}
}
pageInfo
=
new
PageInfo
<
StatisticalListEntity
>(
lists
);
page
.
setPageNo
(
pageInfo
.
getPageNum
());
...
...
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