sql=$@"select t1.receive_unit as company_name,sum(t1.amount_rmb) as merchant_shipment_cost_cny from dc_base_finance_logistics t1
join dc_base_finance_fee t2 on t1.no=t2.cost_no and t2.logistics_supplier_id is not null
where
t1.pay_time>='{day.ToString("yyyy-MM-dd")}'
and t1.pay_time<'{day.AddDays(1).ToString("yyyy-MM-dd")}'
and t1.amount_rmb>=0
group by t1.receive_unit";
sql=$@"select sum(cashier_paymoneyrmb) as merchant_shipment_cost_cny,tradeb_bjectname as company_name from dc_base_finance_cashier t1 where t1.cashier_status=1 and t1.cashier_type=1 and t1.type_name='销售费用/物流费' and t1.sourcecode='newCost' and t1.cashier_time>='{day.ToString("yyyy-MM-dd")}' and t1.cashier_time<'{day.AddDays(1).ToString("yyyy-MM-dd")}' group by tradeb_bjectname";
sql=$@"select t1.receive_unit as company_name,sum(t1.amount_rmb) as merchant_shipment_cost_cny from dc_base_finance_logistics t1
join dc_base_finance_fee t2 on t1.no=t2.cost_no and t2.logistics_supplier_id is not null
where
t1.pay_time>='{day.ToString("yyyy-MM-dd")}'
and t1.pay_time<'{day.AddDays(1).ToString("yyyy-MM-dd")}'
and t1.amount_rmb<0
group by t1.receive_unit";
sql=$@"select sum(cashier_paymoneyrmb) as merchant_shipment_cost_cny,tradeb_bjectname as company_name from dc_base_finance_cashier t1 where t1.cashier_status=1 and t1.cashier_type=2 and t1.type_name='销售费用/物流费' and t1.sourcecode='newCost' and t1.cashier_time>='{day.ToString("yyyy-MM-dd")}' and t1.cashier_time<'{day.AddDays(1).ToString("yyyy-MM-dd")}' group by tradeb_bjectname";