chengf
2026-01-30 b8bf2507bc7b23c90bc6dc71ea2460e277d3800a
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},
        <!-- 正确处理start_time:为空则赋值NULL,否则取参数值 -->
        <choose>
            <when test="startTime == null or startTime == ''">NULL</when>
            <otherwise>#{startTime}</otherwise>
        </choose>,
        <!-- 正确处理end_time:为空则赋值NULL,否则取参数值 -->
        <choose>
            <when test="endTime == null or endTime == ''">NULL</when>
            <otherwise>#{endTime}</otherwise>
        </choose>,
        #{state}, #{communityId}, #{memberId}, '-1',#{leaseType},
        #{firstPaymentDate}, #{paymentDeadlineDate}, #{unitPricePerMonth}, #{annualReceivableAmount})
    </insert>