|
@@ -396,6 +396,67 @@
|
|
|
</where>
|
|
</where>
|
|
|
order by id desc
|
|
order by id desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <!-- 查询退订订单 -->
|
|
|
|
|
+ <select id="queryBackByPage" parameterType="java.util.Map" resultMap="offlinePayments">
|
|
|
|
|
+ select lco.* from ls_car_order lco JOIN ls_car_back_order lcbo on lco.`code` =
|
|
|
|
|
+ lcbo.order_code
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="record.code != null and !"".equals(record.code)">
|
|
|
|
|
+ and lco.code = #{record.code}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.payType != null and !"".equals(record.payType)">
|
|
|
|
|
+ and lco.pay_type = #{record.payType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.status != null and !"".equals(record.status)">
|
|
|
|
|
+ and lco.status = #{record.status}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.loanStatus != null and !"".equals(record.loanStatus)">
|
|
|
|
|
+ and lco.loan_status = #{record.loanStatus}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.carId != null and !"".equals(record.carId)">
|
|
|
|
|
+ and lco.car_id = #{record.carId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.pickedCarInformation != null and !"".equals(record.pickedCarInformation)">
|
|
|
|
|
+ and lco.picked_car_information = #{record.pickedCarInformation}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.loanInstalmentCount != null and !"".equals(record.loanInstalmentCount)">
|
|
|
|
|
+ and lco.loan_instalment_count = #{record.loanInstalmentCount}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.loanRate != null and !"".equals(record.loanRate)">
|
|
|
|
|
+ and lco.loan_rate = #{record.loanRate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.downPaymentRate != null and !"".equals(record.downPaymentRate)">
|
|
|
|
|
+ and lco.down_payment_rate = #{record.downPaymentRate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.realDownPaymentRate != null and !"".equals(record.realDownPaymentRate)">
|
|
|
|
|
+ and lco.real_down_payment_rate = #{record.realDownPaymentRate}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.name != null and !"".equals(record.name)">
|
|
|
|
|
+ and lco.name = #{record.name}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.mobile != null and !"".equals(record.mobile)">
|
|
|
|
|
+ and lco.mobile = #{record.mobile}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.idCard != null and !"".equals(record.idCard)">
|
|
|
|
|
+ and lco.id_card = #{record.idCard}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.pickCity != null and !"".equals(record.pickCity)">
|
|
|
|
|
+ and lco.pick_city = #{record.pickCity}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.carSupplier != null and !"".equals(record.carSupplier)">
|
|
|
|
|
+ and lco.car_supplier = #{record.carSupplier}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.carSupplierNo != null and !"".equals(record.carSupplierNo)">
|
|
|
|
|
+ and lco.car_supplier_no = #{record.carSupplierNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.cancelReason != null and !"".equals(record.cancelReason)">
|
|
|
|
|
+ and lco.cancel_reason = #{record.cancelReason}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ and lco.loan_status != 2
|
|
|
|
|
+ and lco.status != 1
|
|
|
|
|
+ </where>
|
|
|
|
|
+ order by lco.id desc
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
<!-- 查询未支付和线下支付的 -->
|
|
<!-- 查询未支付和线下支付的 -->
|
|
|
<select id="queryOfflineByPage" parameterType="java.util.Map"
|
|
<select id="queryOfflineByPage" parameterType="java.util.Map"
|