This commit is contained in:
linfso 2025-01-15 17:16:11 +08:00
parent 743f58a951
commit 432eca663e

View File

@ -552,9 +552,21 @@
<!-- 收件 -->
<if test="params.omsOrderTab != null and params.omsOrderTab == 2 ">
<if test="params.queryPhone != null and params.queryPhone != '' ">
a.receive_mobile=#{params.queryPhone}
</if>
<if test="params.queryPhone == null or ( params.queryPhone != null and params.queryPhone == '' ) ">
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>
<!-- 待付款 -->
<if test="params.omsOrderTab != null and params.omsOrderTab == 3 ">
and a.payment_status='0'