Commit 17f02105 authored by liudong1993's avatar liudong1993

店铺价格设置

parent 275c5845
...@@ -1142,7 +1142,7 @@ namespace Mall.Module.User ...@@ -1142,7 +1142,7 @@ namespace Mall.Module.User
{ {
return false; return false;
} }
var splist = smallShops_PriceRepository.GetList(new RB_SmallShops_Price_Extend() { SmallShopsId = model.Id, TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId }); var splist = smallShops_PriceRepository.GetList(new RB_SmallShops_Price_Extend() { SmallShopsId = model.Id, GoodsId = goodsId, TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId });
if (splist.Any()) if (splist.Any())
{ {
//修改 //修改
......
...@@ -5588,7 +5588,7 @@ namespace Mall.Module.User ...@@ -5588,7 +5588,7 @@ namespace Mall.Module.User
int IsNormalServer = Convert.ToInt32(new ConfigurationBuilder().Add(new JsonConfigurationSource { Path = "appsettings.json" }).Build().GetSection("IsNormalServer").Value); int IsNormalServer = Convert.ToInt32(new ConfigurationBuilder().Add(new JsonConfigurationSource { Path = "appsettings.json" }).Build().GetSection("IsNormalServer").Value);
if (IsNormalServer != 1) if (IsNormalServer != 1)
{ {
token = "36_7plNC5YmFK1u5gYfNLO54mfqfF60wdmxHMMzdK1R7Br1hCPAPLP5VZqYj3Iasj1sv1DS4kTlnmHbhxP86NLoaANmHxVZLwC8wGtEn3FZkepvq-bU9nH1laKKM6dgxafaRKEcehQH9F_lSMRwWIIfABAKWW"; token = "36_h7IHGhiGidxjkK2dBvc-H_9EEfB9vkzOWrB0NqY6NDtvEvZm8yAQS7HaeT4qBfNETZBYWxTNr3yiBAGmyZuS6dakDmsRz_HzgflabycgFBpL3vutNhLzul77OCjFAaK3vTqXXbR5hUY5MRXIAAXaAIASSP";
} }
if (string.IsNullOrEmpty(token)) if (string.IsNullOrEmpty(token))
{ {
......
...@@ -33,6 +33,10 @@ namespace Mall.Repository.User ...@@ -33,6 +33,10 @@ namespace Mall.Repository.User
{ {
where += $@" and di.{nameof(RB_SmallShops_Price_Extend.SmallShopsId)}={dmodel.SmallShopsId}"; where += $@" and di.{nameof(RB_SmallShops_Price_Extend.SmallShopsId)}={dmodel.SmallShopsId}";
} }
if (dmodel.GoodsId > 0)
{
where += $@" and di.{nameof(RB_SmallShops_Price_Extend.GoodsId)}={dmodel.GoodsId}";
}
if (!string.IsNullOrEmpty(dmodel.SmallShopsIds)) { if (!string.IsNullOrEmpty(dmodel.SmallShopsIds)) {
where += $@" and di.{nameof(RB_SmallShops_Price_Extend.SmallShopsId)} in({dmodel.SmallShopsIds})"; where += $@" and di.{nameof(RB_SmallShops_Price_Extend.SmallShopsId)} in({dmodel.SmallShopsIds})";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment