|
|
@ -447,7 +447,15 @@ namespace TradeManage
|
|
|
|
public JsonModel<List<HW_GoodsDetailNew2>> 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)
|
|
|
|
public JsonModel<List<HW_GoodsDetailNew2>> 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();
|
|
|
|
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();
|
|
|
|
RefParameterCollection where = new RefParameterCollection();
|
|
|
|
if (IsYC == 0)
|
|
|
|
if (IsYC == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -475,7 +483,8 @@ namespace TradeManage
|
|
|
|
where.Add("b.guserid_wayfair", "=", MUserId, DbType.Int32);
|
|
|
|
where.Add("b.guserid_wayfair", "=", MUserId, DbType.Int32);
|
|
|
|
else if (MUserId != 0 && platid == 21)
|
|
|
|
else if (MUserId != 0 && platid == 21)
|
|
|
|
where.Add("b.guserid_sheIn", "=", MUserId, DbType.Int32);
|
|
|
|
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)
|
|
|
|
if (AQNum == 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
where.Add("isnull(a.WestNum,0)-isnull(a.GoodsHJNum12,0)", "<", 0, DbType.Int32);
|
|
|
|
where.Add("isnull(a.WestNum,0)-isnull(a.GoodsHJNum12,0)", "<", 0, DbType.Int32);
|
|
|
|