select
COUNT(DISTINCT(orderTable.merchantId))
from
ph_member_order_unline as orderTable
left join
ph_merchant as merchantTable on merchantTable.id = orderTable.merchantId
where
merchantTable.countyId = #{countyId}
AND
orderTable.createTime BETWEEN DATE_ADD(NOW(), INTERVAL - 120 MINUTE) AND NOW()