|
|
|
@ -31391,17 +31391,21 @@ delete from TemuShopGoodActiveDetail where Id=@Id";
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#region 返回列表
|
|
|
|
|
public static List<TemuShopGoodActiveDetail> GetListTemuShopGoodActiveDetail(string ids, string Sku)
|
|
|
|
|
public static List<TemuShopGoodActiveDetail> GetListTemuShopGoodActiveDetail(string ids, string Sku, string SkuId)
|
|
|
|
|
{
|
|
|
|
|
string tsql = string.Empty;
|
|
|
|
|
string where= string.Empty;
|
|
|
|
|
string order = " order by id";
|
|
|
|
|
tsql = "select * from TemuShopGoodActiveDetail where ActiveId in (" + ids + ") ";
|
|
|
|
|
if (!string.IsNullOrEmpty(Sku))
|
|
|
|
|
{
|
|
|
|
|
tsql = "select * from TemuShopGoodActiveDetail where ActiveId in (" + ids + ") and sku like '%" + Sku + "%' order by id";
|
|
|
|
|
where = " and sku like '%" + Sku + "%' ";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (!string.IsNullOrEmpty(SkuId))
|
|
|
|
|
{
|
|
|
|
|
tsql = "select * from TemuShopGoodActiveDetail where ActiveId in (" + ids + ") order by id";
|
|
|
|
|
where = " and SKUId = '" + SkuId + "' ";
|
|
|
|
|
}
|
|
|
|
|
tsql = tsql + where + order;
|
|
|
|
|
//string tsql = "select a.ID,a.Shopid,a.SKU,a.SPUID,a.BasePrice,a.CreateUserId,a.CreateTime,a.PostPrice,a.State from TemuShopGoodActive";
|
|
|
|
|
//string tsql = "select * from TemuShopGoodActiveDetail where ActiveId in (" + ids + ") and sku like '%"+ Sku + "%' order by id";
|
|
|
|
|
Database db = DatabaseFactory.CreateDatabase();
|
|
|
|
|