|
|
@@ -23,6 +23,7 @@
|
|
|
<result property="depositPrice" column="deposit_price"/>
|
|
|
<result property="finalPaymentPrice" column="final_payment_price"/>
|
|
|
<result property="downPaymentPrice" column="down_payment_price"/>
|
|
|
+ <result property="realDownPaymentPrice" column="real_down_payment_price"/>
|
|
|
<result property="loanPrice" column="loan_price"/>
|
|
|
<result property="monthlyInstallmentPaymentPrice" column="monthly_installment_payment_price"/>
|
|
|
<result property="name" column="name"/>
|
|
|
@@ -35,10 +36,11 @@
|
|
|
<result property="orderCancelTime" column="order_cancel_time"/>
|
|
|
<result property="payDepositTime" column="pay_deposit_time"/>
|
|
|
<result property="onlineAuditTime" column="online_audit_time"/>
|
|
|
+ <result property="offlineAuditTime" column="offline_audit_time"/>
|
|
|
<result property="orderFinishTime" column="order_finish_time"/>
|
|
|
<result property="url" column="url"/>
|
|
|
<result property="cancelReason" column="cancel_reason"/>
|
|
|
- <result property="delFlag" column="del_flag"/>
|
|
|
+ <result property="isSend" column="is_send"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -60,6 +62,7 @@
|
|
|
deposit_price,
|
|
|
final_payment_price,
|
|
|
down_payment_price,
|
|
|
+ real_down_payment_price,
|
|
|
loan_price,
|
|
|
monthly_installment_payment_price,
|
|
|
name,
|
|
|
@@ -72,10 +75,11 @@
|
|
|
order_cancel_time,
|
|
|
pay_deposit_time,
|
|
|
online_audit_time,
|
|
|
+ offline_audit_time,
|
|
|
order_finish_time,
|
|
|
url,
|
|
|
cancel_reason,
|
|
|
- del_flag </sql>
|
|
|
+ is_send </sql>
|
|
|
<!-- 根据Id查询-->
|
|
|
<select id="selectByPrimaryKey" resultMap="entityMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
@@ -113,6 +117,7 @@
|
|
|
<if test="depositPrice != null">deposit_price,</if>
|
|
|
<if test="finalPaymentPrice != null">final_payment_price,</if>
|
|
|
<if test="downPaymentPrice != null">down_payment_price,</if>
|
|
|
+ <if test="realDownPaymentPrice != null">real_down_payment_price,</if>
|
|
|
<if test="loanPrice != null">loan_price,</if>
|
|
|
<if test="monthlyInstallmentPaymentPrice != null">monthly_installment_payment_price,</if>
|
|
|
<if test="name != null">name,</if>
|
|
|
@@ -125,10 +130,11 @@
|
|
|
<if test="orderCancelTime != null">order_cancel_time,</if>
|
|
|
<if test="payDepositTime != null">pay_deposit_time,</if>
|
|
|
<if test="onlineAuditTime != null">online_audit_time,</if>
|
|
|
+ <if test="offlineAuditTime != null">offline_audit_time,</if>
|
|
|
<if test="orderFinishTime != null">order_finish_time,</if>
|
|
|
<if test="url != null">url,</if>
|
|
|
<if test="cancelReason != null">cancel_reason,</if>
|
|
|
- <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="isSend != null">is_send,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@@ -149,6 +155,7 @@
|
|
|
<if test="depositPrice != null">#{depositPrice},</if>
|
|
|
<if test="finalPaymentPrice != null">#{finalPaymentPrice},</if>
|
|
|
<if test="downPaymentPrice != null">#{downPaymentPrice},</if>
|
|
|
+ <if test="realDownPaymentPrice != null">#{realDownPaymentPrice},</if>
|
|
|
<if test="loanPrice != null">#{loanPrice},</if>
|
|
|
<if test="monthlyInstallmentPaymentPrice != null">#{monthlyInstallmentPaymentPrice},</if>
|
|
|
<if test="name != null">#{name},</if>
|
|
|
@@ -161,10 +168,11 @@
|
|
|
<if test="orderCancelTime != null">#{orderCancelTime},</if>
|
|
|
<if test="payDepositTime != null">#{payDepositTime},</if>
|
|
|
<if test="onlineAuditTime != null">#{onlineAuditTime},</if>
|
|
|
+ <if test="offlineAuditTime != null">#{offlineAuditTime},</if>
|
|
|
<if test="orderFinishTime != null">#{orderFinishTime},</if>
|
|
|
<if test="url != null">#{url},</if>
|
|
|
<if test="cancelReason != null">#{cancelReason},</if>
|
|
|
- <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="isSend != null">#{isSend},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -190,6 +198,7 @@
|
|
|
<if test="depositPrice != null">deposit_price = #{depositPrice},</if>
|
|
|
<if test="finalPaymentPrice != null">final_payment_price = #{finalPaymentPrice},</if>
|
|
|
<if test="downPaymentPrice != null">down_payment_price = #{downPaymentPrice},</if>
|
|
|
+ <if test="realDownPaymentPrice != null">real_down_payment_price = #{realDownPaymentPrice},</if>
|
|
|
<if test="loanPrice != null">loan_price = #{loanPrice},</if>
|
|
|
<if test="monthlyInstallmentPaymentPrice != null">monthly_installment_payment_price =
|
|
|
#{monthlyInstallmentPaymentPrice},
|
|
|
@@ -204,10 +213,11 @@
|
|
|
<if test="orderCancelTime != null">order_cancel_time = #{orderCancelTime},</if>
|
|
|
<if test="payDepositTime != null">pay_deposit_time = #{payDepositTime},</if>
|
|
|
<if test="onlineAuditTime != null">online_audit_time = #{onlineAuditTime},</if>
|
|
|
+ <if test="offlineAuditTime != null">offline_audit_time = #{offlineAuditTime},</if>
|
|
|
<if test="orderFinishTime != null">order_finish_time = #{orderFinishTime},</if>
|
|
|
<if test="url != null">url = #{url},</if>
|
|
|
<if test="cancelReason != null">cancel_reason = #{cancelReason},</if>
|
|
|
- <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="isSend != null">is_send = #{isSend},</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -219,7 +229,7 @@
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from ls_car_order
|
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
+
|
|
|
<if test="record.id != null and !"".equals(record.id)">
|
|
|
and id = #{record.id}
|
|
|
</if>
|
|
|
@@ -274,6 +284,9 @@
|
|
|
<if test="record.downPaymentPrice != null and !"".equals(record.downPaymentPrice)">
|
|
|
and down_payment_price = #{record.downPaymentPrice}
|
|
|
</if>
|
|
|
+ <if test="record.realDownPaymentPrice != null and !"".equals(record.realDownPaymentPrice)">
|
|
|
+ and real_down_payment_price = #{record.realDownPaymentPrice}
|
|
|
+ </if>
|
|
|
<if test="record.loanPrice != null and !"".equals(record.loanPrice)">
|
|
|
and loan_price = #{record.loanPrice}
|
|
|
</if>
|
|
|
@@ -310,6 +323,9 @@
|
|
|
<if test="record.onlineAuditTime != null and !"".equals(record.onlineAuditTime)">
|
|
|
and online_audit_time = #{record.onlineAuditTime}
|
|
|
</if>
|
|
|
+ <if test="record.offlineAuditTime != null and !"".equals(record.offlineAuditTime)">
|
|
|
+ and offline_audit_time = #{record.offlineAuditTime}
|
|
|
+ </if>
|
|
|
<if test="record.orderFinishTime != null and !"".equals(record.orderFinishTime)">
|
|
|
and order_finish_time = #{record.orderFinishTime}
|
|
|
</if>
|
|
|
@@ -319,8 +335,8 @@
|
|
|
<if test="record.cancelReason != null and !"".equals(record.cancelReason)">
|
|
|
and cancel_reason = #{record.cancelReason}
|
|
|
</if>
|
|
|
- <if test="record.delFlag != null and !"".equals(record.delFlag)">
|
|
|
- and del_flag = #{record.delFlag}
|
|
|
+ <if test="record.isSend != null and !"".equals(record.isSend)">
|
|
|
+ and is_send = #{record.isSend}
|
|
|
</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
@@ -333,7 +349,7 @@
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from ls_car_order
|
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
+
|
|
|
<if test="id != null and !"".equals(id)">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
@@ -388,6 +404,9 @@
|
|
|
<if test="downPaymentPrice != null and !"".equals(downPaymentPrice)">
|
|
|
and down_payment_price = #{downPaymentPrice}
|
|
|
</if>
|
|
|
+ <if test="realDownPaymentPrice != null and !"".equals(realDownPaymentPrice)">
|
|
|
+ and real_down_payment_price = #{realDownPaymentPrice}
|
|
|
+ </if>
|
|
|
<if test="loanPrice != null and !"".equals(loanPrice)">
|
|
|
and loan_price = #{loanPrice}
|
|
|
</if>
|
|
|
@@ -424,6 +443,9 @@
|
|
|
<if test="onlineAuditTime != null and !"".equals(onlineAuditTime)">
|
|
|
and online_audit_time = #{onlineAuditTime}
|
|
|
</if>
|
|
|
+ <if test="offlineAuditTime != null and !"".equals(offlineAuditTime)">
|
|
|
+ and offline_audit_time = #{offlineAuditTime}
|
|
|
+ </if>
|
|
|
<if test="orderFinishTime != null and !"".equals(orderFinishTime)">
|
|
|
and order_finish_time = #{orderFinishTime}
|
|
|
</if>
|
|
|
@@ -433,8 +455,8 @@
|
|
|
<if test="cancelReason != null and !"".equals(cancelReason)">
|
|
|
and cancel_reason = #{cancelReason}
|
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
- and del_flag = #{delFlag}
|
|
|
+ <if test="isSend != null and !"".equals(isSend)">
|
|
|
+ and is_send = #{isSend}
|
|
|
</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
@@ -447,7 +469,7 @@
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from ls_car_order
|
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
+
|
|
|
<if test="id != null and !"".equals(id)">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
@@ -502,6 +524,9 @@
|
|
|
<if test="downPaymentPrice != null and !"".equals(downPaymentPrice)">
|
|
|
and down_payment_price = #{downPaymentPrice}
|
|
|
</if>
|
|
|
+ <if test="realDownPaymentPrice != null and !"".equals(realDownPaymentPrice)">
|
|
|
+ and real_down_payment_price = #{realDownPaymentPrice}
|
|
|
+ </if>
|
|
|
<if test="loanPrice != null and !"".equals(loanPrice)">
|
|
|
and loan_price = #{loanPrice}
|
|
|
</if>
|
|
|
@@ -538,6 +563,9 @@
|
|
|
<if test="onlineAuditTime != null and !"".equals(onlineAuditTime)">
|
|
|
and online_audit_time = #{onlineAuditTime}
|
|
|
</if>
|
|
|
+ <if test="offlineAuditTime != null and !"".equals(offlineAuditTime)">
|
|
|
+ and offline_audit_time = #{offlineAuditTime}
|
|
|
+ </if>
|
|
|
<if test="orderFinishTime != null and !"".equals(orderFinishTime)">
|
|
|
and order_finish_time = #{orderFinishTime}
|
|
|
</if>
|
|
|
@@ -547,8 +575,8 @@
|
|
|
<if test="cancelReason != null and !"".equals(cancelReason)">
|
|
|
and cancel_reason = #{cancelReason}
|
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
- and del_flag = #{delFlag}
|
|
|
+ <if test="isSend != null and !"".equals(isSend)">
|
|
|
+ and is_send = #{isSend}
|
|
|
</if>
|
|
|
</where>
|
|
|
LIMIT 1
|