Commit 2ddd6202 authored by wux's avatar wux

bug186:应收款查询屏蔽管理订单不存在的数据2

parent 637f56f4
...@@ -172,18 +172,19 @@ ...@@ -172,18 +172,19 @@
SELECT r.currency_id, SELECT r.currency_id,
SUM(r.total_amount) AS total_amount SUM(r.total_amount) AS total_amount
FROM ecw_receivable r FROM ecw_receivable r
<if test="query.status != null <!--<if test="query.status != null
or query.customsType != null or query.customsType != null
or query.transportId != null or query.transportId != null
or query.isCargoControl != null or query.isCargoControl != null
or ( query.marks != null and query.marks != '' ) or ( query.marks != null and query.marks != '' )
or ( query.tidanNo != null and query.tidanNo != '' ) or ( query.tidanNo != null and query.tidanNo != '' )
or query.customerId != null or query.customerId != null
or query.orderNo != null and query.orderNo != ''
or ( query.containerNumber != null and query.containerNumber != '' ) or ( query.containerNumber != null and query.containerNumber != '' )
or query.departureId != null or query.departureId != null
or query.objectiveId != null"> or query.objectiveId != null">-->
LEFT JOIN ecw_order o ON o.order_id = r.order_id LEFT JOIN ecw_order o ON o.order_id = r.order_id
</if> <!--</if>-->
<if test="query.departureId != null or query.objectiveId != null"> <if test="query.departureId != null or query.objectiveId != null">
LEFT JOIN ecw_warehouse_line de ON o.line_id = de.id LEFT JOIN ecw_warehouse_line de ON o.line_id = de.id
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment