From 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 28 三月 2025 19:57:56 +0800 Subject: [PATCH] 修改bug --- DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/CarMapper.xml | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/CarMapper.xml b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/CarMapper.xml index f425ce8..e54bf12 100644 --- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/CarMapper.xml +++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/CarMapper.xml @@ -17,6 +17,7 @@ <result column="drivingLicensePhoto" property="drivingLicensePhoto"/> <result column="annualInspectionTime" property="annualInspectionTime"/> <result column="insurancePhoto" property="insurancePhoto" /> + <result column="peopleAndCarsPhone" property="peopleAndCarsPhone"/> <result column="commercialInsuranceTime" property="commercialInsuranceTime"/> <result column="insertTime" property="insertTime"/> <result column="state" property="state"/> @@ -52,8 +53,7 @@ from t_car a left join t_car_model b on (a.carModelId = b.id) left join t_car_brand c on (b.brandId = c.id) - where a.state = 1 - and a.driverId=#{driverId} + where a.state = 1 and authState != 4 and a.driverId=#{driverId} and a.id != (select carId from t_driver where id = #{driverId}) </select> <select id="query" resultType="com.stylefeng.guns.modular.system.model.Car"> @@ -76,6 +76,6 @@ state as state, addType as addType, addObjectId as addObjectId - from t_car where state = 1 and carLicensePlate = #{licensePlate} + from t_car where state = 1 and carLicensePlate = #{licensePlate} and authState != 4 </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1