Commit b9ade25e authored by wux's avatar wux

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

parent feca9768
......@@ -172,18 +172,19 @@
SELECT r.currency_id,
SUM(r.total_amount) AS total_amount
FROM ecw_receivable r
<if test="query.status != null
<!--<if test="query.status != null
or query.customsType != null
or query.transportId != null
or query.isCargoControl != null
or ( query.marks != null and query.marks != '' )
or ( query.tidanNo != null and query.tidanNo != '' )
or query.customerId != null
or query.orderNo != null and query.orderNo != ''
or ( query.containerNumber != null and query.containerNumber != '' )
or query.departureId != null
or query.objectiveId != null">
or query.objectiveId != null">-->
LEFT JOIN ecw_order o ON o.order_id = r.order_id
</if>
<!--</if>-->
<if test="query.departureId != null or query.objectiveId != null">
LEFT JOIN ecw_warehouse_line de ON o.line_id = de.id
</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