| | |
| | | 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> |
| | | |