Commit f534ab9e authored by liudong1993's avatar liudong1993

预定日期

parent d7aad9b5
...@@ -35,5 +35,13 @@ namespace Mall.Model.Entity.Product ...@@ -35,5 +35,13 @@ namespace Mall.Model.Entity.Product
/// 可预定日期 /// 可预定日期
/// </summary> /// </summary>
public DateTime? Date { get; set; } public DateTime? Date { get; set; }
/// <summary>
/// 是否可以预定 1是 2否
/// </summary>
public int IsReserve { get; set; }
/// <summary>
/// 已预定的座位数量
/// </summary>
public int ReserveNum { get; set; }
} }
} }
...@@ -740,7 +740,9 @@ namespace Mall.Module.Product ...@@ -740,7 +740,9 @@ namespace Mall.Module.Product
{ {
Id = 0, Id = 0,
GoodsId = demodel.Id, GoodsId = demodel.Id,
Date = item.Date Date = item.Date,
IsReserve = 1,
ReserveNum = 0
}); });
} }
foreach (var item in tddeleteList) foreach (var item in tddeleteList)
...@@ -921,7 +923,9 @@ namespace Mall.Module.Product ...@@ -921,7 +923,9 @@ namespace Mall.Module.Product
{ {
Id = 0, Id = 0,
GoodsId = Id, GoodsId = Id,
Date = item.Date Date = item.Date,
IsReserve = 1,
ReserveNum = 0
}); });
} }
//插入分类 //插入分类
...@@ -1637,7 +1641,7 @@ namespace Mall.Module.Product ...@@ -1637,7 +1641,7 @@ namespace Mall.Module.Product
video_url = model.VideoAddress, video_url = model.VideoAddress,
level_show = (userModel?.MemberGrade ?? 0) > 0 ? 1 : 2,//是否显示会员价 level_show = (userModel?.MemberGrade ?? 0) > 0 ? 1 : 2,//是否显示会员价
is_sales = model.GoodsStatus,//是否可购买 ______根据日期判断 。。。。。。。。。。。。。。。。。。。。。。。。。。 is_sales = model.GoodsStatus,//是否可购买 ______根据日期判断 。。。。。。。。。。。。。。。。。。。。。。。。。。
attr = priceList, //attr = priceList,
pic_url = model.CarouselImageList.Select(x => new pic_url = model.CarouselImageList.Select(x => new
{ {
id = x.Id, id = x.Id,
......
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