Skip to content

Commit c95d925

Browse files
committed
1.针对【商品促销秒杀功能出现的一件商品可以同时出现在多个秒杀栏目】的现象进行修复
1 parent 55fba09 commit c95d925

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CoreCms.Net.Web.Admin/Controllers/PinTuan/CoreCmsPintuanRuleController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ public async Task<AdminUiCallBack> DoCreate([FromBody] CoreCmsPinTuanRule entity
242242
if (entity!=null&&entity.goods.Any())
243243
{
244244
var list = new List<CoreCmsPinTuanGoods>();
245+
//循环列表得到所选的值
245246
foreach (var good in entity.goods)
246247
{
248+
247249
//根据商品id查询商品是否存在
248250
var istrue = await _coreCmsPinTuanRuleServices.GetPinTuanInfo(good);
249251
//istrue不为空时存在该商品提示:拼团商品不能重复

0 commit comments

Comments
 (0)