From e21119007e7d9899376c0dce4ed406a4c2901310 Mon Sep 17 00:00:00 2001 From: wzp <2040239371@qq.com> Date: 星期一, 12 五月 2025 16:34:05 +0800 Subject: [PATCH] fix:新增订单-车牌号关联表。修复bug --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VehicleGpsServiceImpl.java | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VehicleGpsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VehicleGpsServiceImpl.java index 7dcfb56..8697cbe 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VehicleGpsServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/VehicleGpsServiceImpl.java @@ -38,11 +38,7 @@ @Override public int insertVehicleGps(VehicleGps vehicleGps) { // 鏍规嵁杞︾墝鍙疯幏鍙栬溅杈咺D - Long vehicleId = vehicleGpsMapper.getVehicleIdByNo(vehicleGps.getVehicleNo()); - if (vehicleId == null) { - throw new ServiceException("鏈壘鍒板搴旂殑杞﹁締淇℃伅"); - } - vehicleGps.setVehicleId(vehicleId); + ; return vehicleGpsMapper.insertVehicleGps(vehicleGps); } -- Gitblit v1.9.1