select 货主省份,'省份' as type from 订单
where 1=1
and 货主省份 not in('北京','上海','重庆','天津')
group by 货主省份
union all
select 货主省份,'直辖市' as type from 订单
and 货主省份 in('北京','上海','重庆','天津')