From b8bf2507bc7b23c90bc6dc71ea2460e277d3800a Mon Sep 17 00:00:00 2001
From: chengf <cgf12138@163.com>
Date: 星期五, 30 一月 2026 19:23:44 +0800
Subject: [PATCH] 导入测试

---
 java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
index 2a321d9..fcac68a 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
@@ -12,7 +12,18 @@
         car_type, start_time, end_time, state, community_id, member_id, b_id,lease_type,
         first_payment_date, payment_deadline_date, unit_price_per_month, annual_receivable_amount)
         values (#{carBrand}, #{carNum}, #{psId}, #{remark}, #{ownerId}, #{carTypeCd}, #{userId}, #{carId}, #{carColor},
-        #{carType}, #{startTime}, #{endTime}, #{state}, #{communityId}, #{memberId}, '-1',#{leaseType},
+        #{carType},
+        <!-- 姝g‘澶勭悊start_time锛氫负绌哄垯璧嬪�糔ULL锛屽惁鍒欏彇鍙傛暟鍊� -->
+        <choose>
+            <when test="startTime == null or startTime == ''">NULL</when>
+            <otherwise>#{startTime}</otherwise>
+        </choose>,
+        <!-- 姝g‘澶勭悊end_time锛氫负绌哄垯璧嬪�糔ULL锛屽惁鍒欏彇鍙傛暟鍊� -->
+        <choose>
+            <when test="endTime == null or endTime == ''">NULL</when>
+            <otherwise>#{endTime}</otherwise>
+        </choose>,
+        #{state}, #{communityId}, #{memberId}, '-1',#{leaseType},
         #{firstPaymentDate}, #{paymentDeadlineDate}, #{unitPricePerMonth}, #{annualReceivableAmount})
     </insert>
 

--
Gitblit v1.8.0