varsql="select * from dc_daily_fee where company_value in (53,3,5,60,66,59,50,8,1,61,2) and cost_status>-1 and recoed_time='"+date.ToString("yyyy-MM-dd")+"'";
varsql="select * from dc_daily_fee where company_value not in (78,72,71,67,58,54) and 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) and 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 not in (78,72,71,67,58,54) and cost_status>-1 and recoed_time='"+date.ToString("yyyy-MM-dd")+"'";
varsql=$"select cost_no,company_name,create_username,((amount - ifnull(had_pay, 0) + ifnull(compensate, 0)) * to_rmb_rate) as amount,recoed_time from dc_daily_fee where is_lend=1 and lend_balance>0 and recoed_time = '{date.ToString("yyyy-MM-dd")}' and company_value in (53,3,5,60,66,59,50,8,1,61,2,70)";
varsql=$"select cost_no,company_name,create_username,((amount - ifnull(had_pay, 0) + ifnull(compensate, 0)) * to_rmb_rate) as amount,recoed_time from dc_daily_fee where is_lend=1 and lend_balance>0 and recoed_time = '{date.ToString("yyyy-MM-dd")}' and company_value not in (78,72,71,67,58,54)";