|
|
@ -89,6 +89,7 @@ |
|
|
|
sum(if(t.is_abnormal_loading = 1, 0, 1)) exLoadedNum, |
|
|
|
sum(if(t.is_abnormal_loading = 1, 0, 1)) exLoadedNum, |
|
|
|
sum(if(t.is_abnormal_signing = 1, 0, 1)) exReNum |
|
|
|
sum(if(t.is_abnormal_signing = 1, 0, 1)) exReNum |
|
|
|
from logpm_distribution_loadscan t |
|
|
|
from logpm_distribution_loadscan t |
|
|
|
|
|
|
|
where t.scan_status != 1 |
|
|
|
group by t.delivery_id) loadScan on loadScan.delivery_id = d.id |
|
|
|
group by t.delivery_id) loadScan on loadScan.delivery_id = d.id |
|
|
|
|
|
|
|
|
|
|
|
left join (select t.delivery_id, |
|
|
|
left join (select t.delivery_id, |
|
|
@ -215,6 +216,7 @@ |
|
|
|
sum(if(t.is_abnormal_loading = 1, 0, 1)) exLoadedNum, |
|
|
|
sum(if(t.is_abnormal_loading = 1, 0, 1)) exLoadedNum, |
|
|
|
sum(if(t.is_abnormal_signing = 1, 0, 1)) exReNum |
|
|
|
sum(if(t.is_abnormal_signing = 1, 0, 1)) exReNum |
|
|
|
from logpm_distribution_loadscan t |
|
|
|
from logpm_distribution_loadscan t |
|
|
|
|
|
|
|
where t.scan_status != 1 |
|
|
|
group by t.delivery_id) loadScan on loadScan.delivery_id = lddl.id |
|
|
|
group by t.delivery_id) loadScan on loadScan.delivery_id = lddl.id |
|
|
|
|
|
|
|
|
|
|
|
left join (select t.delivery_id, |
|
|
|
left join (select t.delivery_id, |
|
|
|