1、直接通过SQL查询出按条件分组后的结果;
2、通过map来实现按条件查询;
Map<Integer,PskmSeat> group = new HashMap<>();
for (PskmSeat ps: list_seat) {
Integer placeid = ps.getPlaceid();
group.put(placeid, ps);
}
PskmSeat seat = group.get(key);
-------------------------------------------------
其他方式待补充;