From 23e5eaa3ffde198acc8dd4f91f834203cfcb9988 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 28 十一月 2019 00:48:52 +0800
Subject: [PATCH] 优化设备添加时加入位置信息
---
java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
index 0578267..67ae3af 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
@@ -101,12 +101,11 @@
<!-- 鏌ヨ杞﹁締绠$悊淇℃伅 add by wuxw 2018-07-03 -->
<select id="getOwnerCarInfo" parameterType="Map" resultType="Map">
- select t.car_color,t.car_color carColor,t.car_brand,t.car_brand carBrand,t.car_type,t.car_type carType,
+ select t.car_color,t.car_color carColor,t.car_brand,t.car_brand carBrand,t1.name car_type,t1.name carType,
t.car_num,t.car_num carNum,t.ps_id,t.ps_id psId,t.remark,t.status_cd,t.status_cd statusCd,t.owner_id,
t.owner_id ownerId,t.b_id,t.b_id bId,t.user_id,t.user_id userId,t.car_id,t.car_id carId ,t.create_time
createTime
- from owner_car t
- where 1 =1
+ from owner_car t,t_dict t1 where t.car_type=t1.status_cd and t1.table_name='owner_car'
<if test="carColor !=null and carColor != ''">
and t.car_color= #{carColor}
</if>
--
Gitblit v1.8.0