Commit 18716bd3 authored by liudong1993's avatar liudong1993

购物车调整

parent 385c46e9
...@@ -44,7 +44,7 @@ namespace Mall.Repository.Product ...@@ -44,7 +44,7 @@ namespace Mall.Repository.Product
where += $@" and g.{nameof(RB_Goods_Extend.GoodsStatus)}={dmodel.GoodsStatus}"; where += $@" and g.{nameof(RB_Goods_Extend.GoodsStatus)}={dmodel.GoodsStatus}";
} }
string sql = $@"select sc.*,g.Name,g.GoodsStatus,g.CarouselImage,g.SellingPrice as Price,g.IsCustomSpecification,g.DefaultSpecificationName, string sql = $@"select sc.*,g.Name as GoodsName,g.GoodsStatus,g.CarouselImage,g.SellingPrice as Price,g.IsCustomSpecification,g.DefaultSpecificationName,
g.EnjoyMember,g.SeparateSetMember,g.InventoryNum from RB_Goods_ShoppingCart sc g.EnjoyMember,g.SeparateSetMember,g.InventoryNum from RB_Goods_ShoppingCart sc
inner join RB_Goods g on sc.GoodsId=g.Id 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";
......
...@@ -360,7 +360,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -360,7 +360,7 @@ namespace Mall.WebApi.Controllers.MallBase
if (GoodsId <= 0) { if (GoodsId <= 0) {
return ApiResult.ParamIsNull(); return ApiResult.ParamIsNull();
} }
int UserId = prams.GetInt("UserId", 0); int UserId = req.UserId;
var Robj = productModule.GetAppletGoodsInfo_V2(GoodsId, UserId, req.TenantId, req.MallBaseId); var Robj = productModule.GetAppletGoodsInfo_V2(GoodsId, UserId, req.TenantId, req.MallBaseId);
return ApiResult.Success("", Robj); return ApiResult.Success("", Robj);
......
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