| | |
| | | import com.xiaopeng.map.dto.NearestDto; |
| | | import com.xiaopeng.map.dto.StationDetailQueryDto; |
| | | import com.xiaopeng.map.mapper.XpPointMapper; |
| | | import com.xiaopeng.map.mapper.XpElectronicFenceMapper; |
| | | import com.xiaopeng.map.mapper.XpRegionMapper; |
| | | import com.xiaopeng.map.mapper.XpSystemSettingMapper; |
| | | import com.xiaopeng.map.query.PointByNameQuery; |
| | | import com.xiaopeng.map.service.XpElectronicFenceService; |
| | | import com.xiaopeng.map.service.XpElectronicFenceAreaService; |
| | | import com.xiaopeng.map.service.XpPointService; |
| | | import com.xiaopeng.map.service.XpStationService; |
| | |
| | | private XpElectronicFenceAreaService xpElectronicFenceAreaService; |
| | | |
| | | @Resource |
| | | private XpElectronicFenceService xpElectronicFenceService; |
| | | private XpElectronicFenceMapper xpElectronicFenceMapper; |
| | | |
| | | @Resource |
| | | private XpStationService xpStationService; |
| | |
| | | if (CollUtil.isEmpty(fenceIds)) { |
| | | return Collections.emptyMap(); |
| | | } |
| | | return xpElectronicFenceService.listByIds(fenceIds).stream() |
| | | return xpElectronicFenceMapper.selectBatchIds(fenceIds).stream() |
| | | .collect(Collectors.toMap(XpElectronicFence::getId, fence -> fence, (a, b) -> a)); |
| | | } |
| | | |
| | |
| | | if (area == null || !Integer.valueOf(1).equals(area.getAreaStatus()) || area.getElectronicId() == null) { |
| | | return false; |
| | | } |
| | | XpElectronicFence fence = xpElectronicFenceService.getById(area.getElectronicId()); |
| | | XpElectronicFence fence = xpElectronicFenceMapper.selectById(area.getElectronicId()); |
| | | return isFenceAvailable(fence); |
| | | } |
| | | if (Integer.valueOf(2).equals(station.getOperationType()) |