This commit is contained in:
@ -83,7 +83,7 @@ namespace Epost.DAL
|
||||
|
||||
|
||||
#region 获取回显订单信息
|
||||
public DataTable GetOrderList_echo(string matchid, string sku, string area, string block)
|
||||
public DataTable GetOrderList_echo(string matchid, string sku, string area, string block,string usercode="")
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -92,6 +92,10 @@ namespace Epost.DAL
|
||||
{
|
||||
strwhere = "and matchid= '" + matchid + "'";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(usercode))
|
||||
{
|
||||
strwhere += "and info= '" + usercode + "'";
|
||||
}
|
||||
string sql = string.Empty;
|
||||
if (!string.IsNullOrEmpty(area))
|
||||
{
|
||||
@ -1171,13 +1175,11 @@ namespace Epost.DAL
|
||||
#endregion
|
||||
|
||||
#region 删除订单信息
|
||||
public bool DelOrder(string matchid, string orderid)
|
||||
public bool DelOrder(string strwhere)
|
||||
{
|
||||
try
|
||||
{
|
||||
string sql = string.Format(" delete from orders where orderid ='{0}' and matchid='{1}' and oprationstate=3 and state =3 ",
|
||||
orderid,
|
||||
matchid);
|
||||
string sql = string.Format(" delete from orders where state =3 "+strwhere);
|
||||
LogHelper.WriteLogInfo("-删除订单信息:" + sql);
|
||||
long x = db.DeleteSql(sql);
|
||||
if (x > 0)
|
||||
@ -1229,7 +1231,7 @@ namespace Epost.DAL
|
||||
#region 查询标签所在区
|
||||
public DataTable getArea(string address, string ip)
|
||||
{
|
||||
string sql = string.Format("select area,block,way,type from v_address where address='{0}' and ControlIP='{1}' group by block,area,way,type",
|
||||
string sql = string.Format("select area,block,way,type,info from v_address where address='{0}' and ControlIP='{1}' group by block,area,way,type,info",
|
||||
address,
|
||||
ip);
|
||||
LogHelper.WriteLogInfo("查询标签所在区getArea:" + sql);
|
||||
|
Reference in New Issue
Block a user