}\r
#{\r
from = condition.last_order_from\r
- to = condition.last_order_from\r
+ to = condition.last_order_to\r
unless from.blank? && to.blank?\r
if !from.blank? && !to.blank?\r
"and (#{MergeAdapterUtil.convert_time_to_yyyymmdd('last_order_at')} >= '#{from.strftime("%Y%m%d")}'\r