(SELECT COALESCE (count(*),0) FROM logpm_warehouse_goods_allocation lwga WHERE goods_area.id = lwga.goods_area_id and lwga.is_deleted =0) cargoNub,
(SELECT COALESCE (count(*),0) FROM logpm_warehouse_goods_allocation lwga WHERE goods_area.id = lwga.goods_area_id and lwga.is_deleted =0 and lwga.allocation_status =2 ) employNub,
(SELECT COALESCE (count(*),0) FROM logpm_warehouse_goods_allocation lwga WHERE goods_area.id = lwga.goods_area_id and lwga.is_deleted =0 and lwga.enable_status =2 ) disableNub,
(SELECT COALESCE (count(*),0) FROM logpm_warehouse_goods_allocation lwga WHERE goods_area.id = lwga.goods_area_id and lwga.is_deleted =0 and lwga.enable_status =1 and lwga.allocation_status =1 ) unusedNub
FROM
logpm_warehouse_goods_area AS goods_area
INNER JOIN logpm_warehouse_warehouse AS warehouse ON goods_area.warehouse_id = warehouse.id