From bba327b6699c833819a391c7223c0fb69c47955c Mon Sep 17 00:00:00 2001 From: chenwenkai <1084072318@qq.com> Date: Mon, 13 Jan 2025 14:59:24 +0800 Subject: [PATCH] 1 --- TradeManage/HuoWuServiceNew.asmx.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/TradeManage/HuoWuServiceNew.asmx.cs b/TradeManage/HuoWuServiceNew.asmx.cs index 2aea6a7..fbc2346 100644 --- a/TradeManage/HuoWuServiceNew.asmx.cs +++ b/TradeManage/HuoWuServiceNew.asmx.cs @@ -447,7 +447,15 @@ namespace TradeManage public JsonModel> GetGoodsDetailListNew22(int platid, int MUserId, int cpzt, int GNum, int TJ1, int IsYC, int IsJQ, int StoreId, int AQNum, int AQNum2, string Name, string Supplier, int TJ2, int SNum, int ENum, int cgjh,int kh, int PageIndex, int PageSize, string Sort) { HuoWuData data = new HuoWuData(); - int num = Convert.ToInt32(base.Session["CompanyId"]); + int num = 0; + if (base.Session["CompanyId"] != null) + { + num = Convert.ToInt32(base.Session["CompanyId"]); + } + else + { + num = 1; + } RefParameterCollection where = new RefParameterCollection(); if (IsYC == 0) { @@ -475,7 +483,8 @@ namespace TradeManage where.Add("b.guserid_wayfair", "=", MUserId, DbType.Int32); else if (MUserId != 0 && platid == 21) where.Add("b.guserid_sheIn", "=", MUserId, DbType.Int32); - + else if (MUserId != 0 && platid == 23) + where.Add("b.guserid_temu", "=", MUserId, DbType.Int32); if (AQNum == 1) { where.Add("isnull(a.WestNum,0)-isnull(a.GoodsHJNum12,0)", "<", 0, DbType.Int32);