This commit is contained in:
linfso 2024-08-31 06:36:28 +08:00
parent a63e2fcafa
commit 5822e72ca2

View File

@ -491,17 +491,22 @@
and a.customer_code=#{customerCode}
</if>
<!-- 收件 -->
<if test="params.omsOrderTab != null and params.omsOrderTab == 2 ">
and exists (select 1 from emis_customer_user ecu where a.del_flag='0' and a.receive_mobile=ecu.phone and ecu.customer_code=#{customerCode} )
</if>
<!-- 待付款 -->
<if test="params.omsOrderTab != null and params.omsOrderTab == 3 ">
and a.payment_status='0'
</if>
<!-- 其他 -->
<if test="params.omsOrderTab != null ( and params.omsOrderTab != 1 and params.omsOrderTab != 2 and params.omsOrderTab != 3 )">
and a.customer_code=#{customerCode}
</if>
<if test="params.omsOrderTab != null and params.omsOrderTab == 3 ">
and a.customer_code=#{customerCode}
</if>
and not exists(