varsql="select sum((amount - had_pay + ifnull(compensate, 0)) * to_rmb_rate) amount from dc_daily_fee where cost_status>-1 and recoed_time='"+date.ToString("yyyy-MM-dd")+"'";
//只取百伦主体的
varsql="select sum((amount - had_pay + ifnull(compensate, 0)) * to_rmb_rate) amount from dc_daily_fee where company_value in (53,3,5,60,66,59,50,8,1,61,2,70) and cost_status>-1 and recoed_time='"+date.ToString("yyyy-MM-dd")+"'";