| | |
| | | continue; |
| | | } |
| | | } |
| | | // for (Map<String, Object> m : (List<Map<String, Object>>) result0.get("list")) { |
| | | // if (((String) m.get("teamId")).equals(((String) map.get("teamId")))) { |
| | | // map.put("count", Integer.parseInt((String) m.get("carNum"))); |
| | | // } |
| | | // } |
| | | map.put("count", carList.size()); |
| | | List<String> carIdList = new ArrayList();//存放车队下全部车辆主键 |
| | | for(Map<String, Object> carMap : carList){ |
| | | carIdList.add((String) carMap.get("carId")); |
| | | } |
| | | //map.put("count", carList.size()); |
| | | if(carIdList.size() == 0){ |
| | | map.put("count", 0); |
| | | }else{ |
| | | Long count = ardSyCarMapper.getCountByCarIdList(carIdList); |
| | | map.put("count", count); |
| | | } |
| | | map.put("online", online); |
| | | online = 0; |
| | | } |
| | |
| | | break; |
| | | } |
| | | } |
| | | if(!isCar){ |
| | | /*if(!isCar){ |
| | | list.remove(list.get(i)); |
| | | } |
| | | }*/ |
| | | } |
| | | return list; |
| | | } |