|
|
@ -190,9 +190,9 @@ |
|
|
|
driver_name, |
|
|
|
driver_name, |
|
|
|
task_time, |
|
|
|
task_time, |
|
|
|
COUNT(DISTINCT order_code) as orderCount, |
|
|
|
COUNT(DISTINCT order_code) as orderCount, |
|
|
|
COUNT(DISTINCT order_package_code) as orderPackageCodeCount, |
|
|
|
sum( quantity ) as orderPackageCodeCount, |
|
|
|
sum(case when order_package_loading_status =20 then 1 else 0 end ) as loadCarCount, |
|
|
|
sum( load_num ) as loadCarCount, |
|
|
|
sum(case when in_warehouse =1 then 1 else 0 end ) as inWarehouseCount |
|
|
|
sum( unload_num ) as inWarehouseCount |
|
|
|
|
|
|
|
|
|
|
|
from logpm_business_pre_order |
|
|
|
from logpm_business_pre_order |
|
|
|
<where> |
|
|
|
<where> |
|
|
@ -218,9 +218,9 @@ |
|
|
|
driver_name, |
|
|
|
driver_name, |
|
|
|
task_time, |
|
|
|
task_time, |
|
|
|
COUNT(DISTINCT order_code) as orderCount, |
|
|
|
COUNT(DISTINCT order_code) as orderCount, |
|
|
|
COUNT(DISTINCT order_package_code) as orderPackageCodeCount, |
|
|
|
sum(quantity) as orderPackageCodeCount, |
|
|
|
sum(case when order_package_loading_status =20 then 1 else 0 end ) as loadCarCount, |
|
|
|
sum(load_num ) as loadCarCount, |
|
|
|
sum(case when in_warehouse =1 then 1 else 0 end ) as inWarehouseCount |
|
|
|
sum(unload_num ) as inWarehouseCount |
|
|
|
from logpm_business_pre_order |
|
|
|
from logpm_business_pre_order |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
is_deleted=0 |
|
|
|
is_deleted=0 |
|
|
|