varsqlwhere=$" where t1.day>='{start.ToString("yyyy-MM-dd")}' and t1.day<'{end.AddDays(1).ToString("yyyy-MM-dd")}' group by t1.warehouse_code,t1.bailun_sku";
varsqlwhere="";
if(!string.IsNullOrEmpty(warehousetype))
{
sqlwhere+=" join dc_base_warehouse t2 on t1.warehouse_code=t2.warehouse_code and t2.hq_type=@hq_type";