|
|
@@ -391,16 +391,17 @@
|
|
|
<if test="record.offlinePayType == 2">
|
|
|
and status = 3
|
|
|
</if>
|
|
|
- and loan_status != 2
|
|
|
+-- and loan_status != 2
|
|
|
and status != 1
|
|
|
</where>
|
|
|
order by id desc
|
|
|
</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` =
|
|
|
+ select lco.*, lcbo.status backStatus from ls_car_order lco JOIN ls_car_back_order lcbo on lco.`code` =
|
|
|
lcbo.order_code
|
|
|
<where>
|
|
|
+ and lco.status != 1 and lco.status !=4
|
|
|
<if test="record.code != null and !"".equals(record.code)">
|
|
|
and lco.code = #{record.code}
|
|
|
</if>
|
|
|
@@ -452,8 +453,6 @@
|
|
|
<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>
|
|
|
@@ -466,6 +465,8 @@
|
|
|
from ls_car_order lco
|
|
|
LEFT JOIN ls_offline_payments lof ON lco.id = lof.car_order_id
|
|
|
<where>
|
|
|
+ and lco.status != 1 and lco.status !=4
|
|
|
+
|
|
|
<if test="record.code != null and !"".equals(record.code)">
|
|
|
and lco.code = #{record.code}
|
|
|
</if>
|
|
|
@@ -561,9 +562,6 @@
|
|
|
and lof.car_order_id is null
|
|
|
AND lco.status !=3
|
|
|
</if>
|
|
|
-
|
|
|
- and lco.loan_status != 2
|
|
|
- and lco.status != 1
|
|
|
</where>
|
|
|
order by lco.id desc
|
|
|
</select>
|