|  |  |  | 
|---|
|  |  |  | List<Long> startTimeList = platformLogList.stream().filter(i->Objects.nonNull(i.getParam1())) | 
|---|
|  |  |  | .filter(i->Objects.nonNull(i.getParam1())&&i.getParam1().indexOf(today)>=0) | 
|---|
|  |  |  | .map(i->DateUtil.fromStringToDate("yyyy-MM-dd HH:mm:ss",i.getParam1()).getTime()).collect(Collectors.toList()); | 
|---|
|  |  |  | Long startTime  = Collections.min(startTimeList); | 
|---|
|  |  |  | Long startTime  = null ; | 
|---|
|  |  |  | if(CollectionUtils.isNotEmpty(startTimeList)){ | 
|---|
|  |  |  | startTime = Collections.min(startTimeList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //获取结束时间 | 
|---|
|  |  |  | List<Long> endTimeList = platformLogList.stream() | 
|---|
|  |  |  | .filter(i->Objects.nonNull(i.getParam2())&&i.getParam2().indexOf(today)>=0) | 
|---|
|  |  |  | .map(i->DateUtil.fromStringToDate("yyyy-MM-dd HH:mm:ss",i.getParam2()).getTime()).collect(Collectors.toList()); | 
|---|
|  |  |  | Long endTime = Collections.max(endTimeList); | 
|---|
|  |  |  | Long endTime = null ; | 
|---|
|  |  |  | if(CollectionUtils.isNotEmpty(endTimeList)){ | 
|---|
|  |  |  | endTime = Collections.max(endTimeList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(Objects.isNull(startTime) | 
|---|
|  |  |  | || Objects.isNull(endTime) || (startTime>=endTime)){ | 
|---|
|  |  |  | return BigDecimal.ZERO; | 
|---|
|  |  |  | 
|---|
|  |  |  | data.setInParkCarTotal( | 
|---|
|  |  |  | (int) retentionList.stream().filter(i->Constants.equalsInteger(i.getType(),Constants.THREE)).count() | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | //2025年8月4日09:24:23 更换数据源 不从海康取 | 
|---|
|  |  |  | data.setFreeParkingLot(data.getParkingLotTotal()<data.getInParkCarTotal()?Constants.ZERO:data.getParkingLotTotal() - data.getInParkCarTotal()); | 
|---|
|  |  |  | //当前在园货车司机总数 | 
|---|
|  |  |  | data.setInParkCarUserTotal( | 
|---|
|  |  |  | (int) retentionList.stream().filter(i->Constants.equalsInteger(i.getType(),Constants.FIVE)).count() | 
|---|