From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml | 33 ++++++++++++++++-----------------
1 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
index cafa8da..22642c6 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
@@ -7,11 +7,10 @@
<!-- 淇濆瓨杞﹁締淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveOwnerCarInfo" parameterType="Map">
- insert into owner_car(
- car_brand,car_num,ps_id,remark,owner_id,car_type_cd,user_id,car_id,car_color,car_type,start_time,end_time,state,community_id,member_id,b_id
- ) values (
- #{carBrand},#{carNum},#{psId},#{remark},#{ownerId},#{carTypeCd},#{userId},#{carId},#{carColor},#{carType},#{startTime},#{endTime},#{state},#{communityId},#{memberId},'-1'
- )
+ insert into owner_car(car_brand, car_num, ps_id, remark, owner_id, car_type_cd, user_id, car_id, car_color,
+ car_type, start_time, end_time, state, community_id, member_id, b_id)
+ values (#{carBrand}, #{carNum}, #{psId}, #{remark}, #{ownerId}, #{carTypeCd}, #{userId}, #{carId}, #{carColor},
+ #{carType}, #{startTime}, #{endTime}, #{state}, #{communityId}, #{memberId}, '-1')
</insert>
@@ -101,14 +100,8 @@
<if test="ownerId !=null and ownerId != ''">
, t.owner_id= #{ownerId}
</if>
- <if test="carTypeCd !=null and carTypeCd != ''">
- , t.car_type_cd= #{carTypeCd}
- </if>
<if test="userId !=null and userId != ''">
, t.user_id= #{userId}
- </if>
- <if test="carId !=null and carId != ''">
- , t.car_id= #{carId}
</if>
<if test="carColor !=null and carColor != ''">
, t.car_color= #{carColor}
@@ -125,14 +118,22 @@
<if test="state !=null and state != ''">
, t.state= #{state}
</if>
- <if test="communityId !=null and communityId != ''">
- , t.community_id= #{communityId}
- </if>
where 1=1
+ <if test="bId !=null and bId != ''">
+ and t.b_id= #{bId}
+ </if>
+ <if test="carId !=null and carId != ''">
+ and t.car_id= #{carId}
+ </if>
<if test="memberId !=null and memberId != ''">
and t.member_id= #{memberId}
</if>
-
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+ <if test="carTypeCd !=null and carTypeCd != ''">
+ and t.car_type_cd= #{carTypeCd}
+ </if>
</update>
<!-- 鏌ヨ杞﹁締鏁伴噺 add by wuxw 2018-07-03 -->
@@ -188,8 +189,6 @@
<if test="memberId !=null and memberId != ''">
and t.member_id= #{memberId}
</if>
-
-
</select>
</mapper>
--
Gitblit v1.8.0