left join dc_base_transfer_info_skus as t2 on t1.dataid =t2.dataid
left join (select system_order_no,max(expectarrivaltime) as 'expectarrivaltime' from dc_lms_order_transfer_current_node GROUP BY system_order_no ) as t3 on t1.`code` = t3.system_order_no
where t1.stateid!=5 and t1.isdeleted=0 and t2.deliverycount>t2.storagecount ").ToList();
where t1.isdeleted=0 and t1.stateid not in (5,11,12)
and t2.deliverycount > t2.storagecount
and t1.isexception = 0
and t1.expectarrivaltime >='1991-01-01' ",commandTimeout:0).ToList();