wanglizhong
2025-05-03 a296c6bfa83cd0a4bbc92d93c015a010248e8455
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VehicleGpsServiceImpl.java
@@ -38,11 +38,7 @@
    @Override
    public int insertVehicleGps(VehicleGps vehicleGps) {
        // 根据车牌号获取车辆ID
        Long vehicleId = vehicleGpsMapper.getVehicleIdByNo(vehicleGps.getVehicleNo());
        if (vehicleId == null) {
            throw new ServiceException("未找到对应的车辆信息");
        }
        vehicleGps.setVehicleId(vehicleId);
       ;
        return vehicleGpsMapper.insertVehicleGps(vehicleGps);
    }