This commit is contained in:
jl
2025-06-30 10:14:05 +08:00
parent 722f16a77e
commit fb2aa4f239
10 changed files with 146 additions and 138 deletions

View File

@ -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);