|
@@ -244,7 +244,7 @@
|
|
,o.org_id as orgId,o.source_type as sourceType,org.name as orgName,a.delivery_way as deliveryWay
|
|
,o.org_id as orgId,o.source_type as sourceType,org.name as orgName,a.delivery_way as deliveryWay
|
|
from order_cloth o
|
|
from order_cloth o
|
|
left join app_user b on o.take_cloth_app_user_id = b.id
|
|
left join app_user b on o.take_cloth_app_user_id = b.id
|
|
- left join order_delivery as a on a.order_sn=o.order_no
|
|
|
|
|
|
+ left join order_delivery a on a.order_sn=o.order_no
|
|
<if test="takeClothWay != null and takeClothWay == '1'.toString()">
|
|
<if test="takeClothWay != null and takeClothWay == '1'.toString()">
|
|
and a.cloth_order_type=0
|
|
and a.cloth_order_type=0
|
|
</if>
|
|
</if>
|
|
@@ -252,7 +252,7 @@
|
|
and a.cloth_order_type=1
|
|
and a.cloth_order_type=1
|
|
</if>
|
|
</if>
|
|
left join sys_org as org on org.id=o.org_id and org.source_type=o.source_type and org.id is not null
|
|
left join sys_org as org on org.id=o.org_id and org.source_type=o.source_type and org.id is not null
|
|
- where o.del_flag='0' and o.order_status != '100'
|
|
|
|
|
|
+ where o.del_flag='0' and o.is_appointment = 'Y' and o.order_status != '100'
|
|
<if test="orderType != null and orderType != ''">
|
|
<if test="orderType != null and orderType != ''">
|
|
and o.order_type=#{orderType}
|
|
and o.order_type=#{orderType}
|
|
</if>
|
|
</if>
|
|
@@ -278,10 +278,10 @@
|
|
and o.order_no = #{orderNo}
|
|
and o.order_no = #{orderNo}
|
|
</if>
|
|
</if>
|
|
<if test="contactName != null and contactName != ''">
|
|
<if test="contactName != null and contactName != ''">
|
|
- and o.contact_name = #{contactName}
|
|
|
|
|
|
+ and a.user_name = #{contactName}
|
|
</if>
|
|
</if>
|
|
<if test="contactPhone != null and contactPhone != ''">
|
|
<if test="contactPhone != null and contactPhone != ''">
|
|
- and o.contact_phone = #{contactPhone}
|
|
|
|
|
|
+ and a.user_phone = #{contactPhone}
|
|
</if>
|
|
</if>
|
|
<if test="appointmentTime != null and appointmentTime != ''">
|
|
<if test="appointmentTime != null and appointmentTime != ''">
|
|
and o.appointment_time >= DATE_FORMAT(#{appointmentTime},'%Y-%m-%d 00:00:00')
|
|
and o.appointment_time >= DATE_FORMAT(#{appointmentTime},'%Y-%m-%d 00:00:00')
|