diff --git a/Epost.DAL/OrdersDAL.cs b/Epost.DAL/OrdersDAL.cs index efbbf05..3f49e3f 100644 --- a/Epost.DAL/OrdersDAL.cs +++ b/Epost.DAL/OrdersDAL.cs @@ -2551,7 +2551,7 @@ namespace Epost.DAL public DataTable GetOrderMatchidInfo(string block, string area) { - string sql = string.Format("select distinct matchid,ControlIP from v_orders where tolocation!='' and block='" + block + "' and area='" + area + "' "); + string sql = string.Format("select distinct matchid,ControlIP from v_orders where (tolocation!='' or tolocation is not null) and block='" + block + "' and area='" + area + "' "); DataTable dt = db.GetsqlForDT(sql); return dt; }