From 35b0088fa28dab8a28758dcbcc056620c1ea5e2c Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 30 五月 2025 11:02:35 +0800 Subject: [PATCH] 修改公交公司的事件订阅功能 --- ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CarController.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CarController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CarController.java index 496c808..1111a36 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CarController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CarController.java @@ -111,6 +111,7 @@ Driver driver = driverService.getOne(new LambdaQueryWrapper<Driver>().eq(Driver::getVehicleNumber, car.getVehicleNumber()).eq(Driver::getStatus, 1)); Enterprise enterprise = enterpriseService.getById(car.getEnterpriseId()); car.setEnterpriseName(enterprise.getName()); + car.setCompanyCode(enterprise.getCode()); if (null != driver) { car.setDriverName(driver.getName()); car.setDriverPhone(driver.getPhone()); -- Gitblit v1.7.1