|
|
|
@ -686,11 +686,11 @@
|
|
|
|
|
lww.destination_warehouse_name destinationWarehouseName, |
|
|
|
|
ldsa.warehouse warehouseName, |
|
|
|
|
ldsa.brand brand, |
|
|
|
|
sum(ldsa.total_number) incomingNum, |
|
|
|
|
sum(ldsa.incoming_num) incomingNum, |
|
|
|
|
IFNULL(sum(ltcls.num),0) outNum, |
|
|
|
|
sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),1,0)) outOnTimeNum, |
|
|
|
|
IFNULL(round(sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),1,0))/sum(ltcls.num)*100,2),'0.00') outOnTimeRate, |
|
|
|
|
round(sum(TIMESTAMPDIFF(SECOND, ldsa.create_time, ltcll.start_date))/sum(ltcls.num)/3600,1) avgTime |
|
|
|
|
sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),ltcls.num,0)) outOnTimeNum, |
|
|
|
|
IFNULL(round(sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),ltcls.num,0))/sum(ldsa.incoming_num)*100,2),'0.00') outOnTimeRate, |
|
|
|
|
round(sum(TIMESTAMPDIFF(SECOND, ldsa.create_time, ltcll.start_date)*ltcls.num)/sum(ltcls.num)/3600,1) avgTime |
|
|
|
|
from logpm_distribution_stock_article ldsa |
|
|
|
|
left join logpm_warehouse_warehouse waw on waw.id = ldsa.warehouse_id |
|
|
|
|
left join logpm_warehouse_waybill lww on lww.waybill_no = ldsa.order_code |
|
|
|
@ -750,11 +750,11 @@
|
|
|
|
|
lww.destination_warehouse_name destinationWarehouseName, |
|
|
|
|
ldsa.warehouse warehouseName, |
|
|
|
|
ldsa.brand brand, |
|
|
|
|
sum(ldsa.total_number) incomingNum, |
|
|
|
|
sum(ldsa.incoming_num) incomingNum, |
|
|
|
|
IFNULL(sum(ltcls.num),0) outNum, |
|
|
|
|
sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),1,0)) outOnTimeNum, |
|
|
|
|
IFNULL(concat(round(sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),1,0))/sum(ltcls.num)*100,2),'%'),'0.00%') outOnTimeRate, |
|
|
|
|
round(sum(TIMESTAMPDIFF(SECOND, ldsa.create_time, ltcll.start_date))/sum(ltcls.num)/3600,1) avgTime |
|
|
|
|
sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),ltcls.num,0)) outOnTimeNum, |
|
|
|
|
IFNULL(concat(round(sum(if(ltcll.start_date <= DATE_ADD( ldsa.create_time, INTERVAL #{param.hoursTime} HOUR ),ltcls.num,0))/sum(ldsa.incoming_num)*100,2),'%'),'0.00%') outOnTimeRate, |
|
|
|
|
round(sum(TIMESTAMPDIFF(SECOND, ldsa.create_time, ltcll.start_date)*ltcls.num)/sum(ltcls.num)/3600,1) avgTime |
|
|
|
|
from logpm_distribution_stock_article ldsa |
|
|
|
|
left join logpm_warehouse_warehouse waw on waw.id = ldsa.warehouse_id |
|
|
|
|
left join logpm_warehouse_waybill lww on lww.waybill_no = ldsa.order_code |
|
|
|
|