select
id,
page.sum
from BizPostOrder list
join
(
select
count(*) sum
from BizPostOrder
where
MerchantCode= "eventec" and LoadingBuildingId= "9006_a60e492942af4e1c" and LoadingPeople = "张三"
) as page
where
list.MerchantCode= "eventec" and list.LoadingBuildingId= "9006_a60e492942af4e1c" and list.LoadingPeople = "张三" group by list.Id