Commit 54c03d7f authored by 黄奎's avatar 黄奎

页面修改

parent d2e55c81
...@@ -58,6 +58,12 @@ namespace Mall.Model.Extend.Product ...@@ -58,6 +58,12 @@ namespace Mall.Model.Extend.Product
/// 售价 /// 售价
/// </summary> /// </summary>
public decimal Price { get; set; } public decimal Price { get; set; }
/// <summary>
/// 原价
/// </summary>
public decimal Original_Price { get; set; }
/// <summary> /// <summary>
/// 默认规格名称 /// 默认规格名称
/// </summary> /// </summary>
......
...@@ -51,7 +51,7 @@ namespace Mall.Repository.Product ...@@ -51,7 +51,7 @@ namespace Mall.Repository.Product
string sql = $@" string sql = $@"
select sc.*,g.Name as GoodsName,g.GoodsStatus,g.CarouselImage,g.SellingPrice as Price,g.IsCustomSpecification,g.DefaultSpecificationName select sc.*,g.Name as GoodsName,g.GoodsStatus,g.CarouselImage,g.SellingPrice as Price,g.IsCustomSpecification,g.DefaultSpecificationName
,g.EnjoyMember,g.SeparateSetMember,g.InventoryNum,g.FullNumPinkage,g.FullMoneyPinkage,g.MarketingLogo,g.CourseScore,g.GoodsClassify ,g.EnjoyMember,g.SeparateSetMember,g.InventoryNum,g.FullNumPinkage,g.FullMoneyPinkage,g.MarketingLogo,g.CourseScore,g.GoodsClassify
,g.EduJsonData ,g.EduJsonData,IFNULL(g.OriginalPrice,0) AS Original_Price
from RB_Goods_ShoppingCart sc inner join RB_Goods g on sc.GoodsId=g.Id from RB_Goods_ShoppingCart sc inner join RB_Goods g on sc.GoodsId=g.Id
where {where} order by g.GoodsStatus asc,sc.CreateDate desc"; where {where} order by g.GoodsStatus asc,sc.CreateDate desc";
return GetPage<RB_Goods_ShoppingCart_Extend>(pageIndex, pageSize, out rowCount, sql).ToList(); return GetPage<RB_Goods_ShoppingCart_Extend>(pageIndex, pageSize, out rowCount, sql).ToList();
......
...@@ -90,6 +90,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -90,6 +90,7 @@ namespace Mall.WebApi.Controllers.MallBase
x.CourseScore, x.CourseScore,
x.GoodsRelevanceList, x.GoodsRelevanceList,
x.EduData, x.EduData,
x.Original_Price,
}); });
List<object> robj = new List<object>() List<object> robj = new List<object>()
{ {
......
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