| | |
| | | on oi.order_id=o.id |
| | | where oi.status in ('abnormal','reduce','lack','back') |
| | | and o.transfer_id is null |
| | | and o.status in ('COLLECTION','SEND') |
| | | and o.status in ('COLLECTION','SEND','RECEIVE') |
| | | ) |
| | | </if> |
| | | |
| | |
| | | on oi.order_id=o.id |
| | | where oi.status in ('abnormal','reduce','lack','back') |
| | | and o.transfer_id is null |
| | | and o.status in ('COLLECTION','SEND') |
| | | and o.status in ('COLLECTION','SEND','RECEIVE') |
| | | ) |
| | | </if> |
| | | |
| | |
| | | on oi.order_id=o.id |
| | | where oi.status in ('abnormal','reduce','lack','back') |
| | | and o.transfer_id is null |
| | | and o.status in ('COLLECTION','SEND') |
| | | and o.status in ('COLLECTION','SEND','RECEIVE') |
| | | ) |
| | | |
| | | union |
| | |
| | | on oi.order_id=o.id |
| | | where oi.status in ('abnormal','reduce','lack','back') |
| | | and o.transfer_id is null |
| | | and o.status in ('COLLECTION','SEND') |
| | | and o.status in ('COLLECTION','SEND','RECEIVE') |
| | | ) |
| | | |
| | | </select> |