Commit 31a0426a by java-温文海

修改bug

parent efd25dfb
......@@ -150,11 +150,10 @@ public class StatisticalService extends BaseService<StatisticalDao> {
//使用迭代器进行筛选
Iterator<StatisticalListEntity> iter = lists.iterator();
while (iter.hasNext()) {
StatisticalListEntity s = iter.next();
//当此对象状态与传入状态不一致时remove对象
if (s.getAirlineStatus() != statisticalListBean.getAirlineStatus()){
lists.remove(s);
if (iter.next().getAirlineStatus() != statisticalListBean.getAirlineStatus()){
iter.remove();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment