diff --git a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs index 7ac5e7e..03196ae 100644 --- a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs +++ b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs @@ -37,6 +37,8 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.WeighingService. Sort = x.Sort, Cover = x.ImgUrl, GoodsTypeId = x.GoodsTypeId, + Price = x.Price, + VipPrice=x.Price }).ToListAsync(); ////获取商品属性价格 diff --git a/BPA.SAAS.Manage.Application/DataBase/GoodsServices.cs b/BPA.SAAS.Manage.Application/DataBase/GoodsServices.cs index 35d8378..2a348c6 100644 --- a/BPA.SAAS.Manage.Application/DataBase/GoodsServices.cs +++ b/BPA.SAAS.Manage.Application/DataBase/GoodsServices.cs @@ -154,10 +154,10 @@ namespace BPA.SAAS.Manage.Application.DataBase /// /// /// - [HttpGet("/api/goods/GetGoodsList")] - public async Task> GetGoodsList(List ids) + [HttpPost("/api/goods/GetGoodsListByIds")] + public async Task> GetGoodsListByIds(List ids) { - return await _goodsService.GetGoodsList(ids); + return await _goodsService.GetGoodsListByIds(ids); } ///// diff --git a/BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsService.cs b/BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsService.cs index 6ced0ac..55370d0 100644 --- a/BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsService.cs +++ b/BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsService.cs @@ -80,7 +80,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Interface /// /// /// - Task> GetGoodsList(List ids); + Task> GetGoodsListByIds(List ids); ///// diff --git a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs index d33ea2c..94d8dd4 100644 --- a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs +++ b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs @@ -460,7 +460,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services GoodsUintName = SqlFunc.Subqueryable().Where(s => s.Id == a.GoodsUintId && s.IsDeleted == 0).Select(s => s.Name), //GoodsAttributeList = new List() }).FirstAsync(); - if (!res.IsAttrubute) + if (res!=null&&!res.IsAttrubute) { res.GoodsAttributeList = await _goodsAttributeService.GetByNameAttribute("默认属性"); } @@ -477,7 +477,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services /// /// /// - public async Task> GetGoodsList(List ids) + public async Task> GetGoodsListByIds(List ids) { var res = await _db.Queryable() .Where((a) => a.IsDeleted == 0 && ids.Contains(a.Id)) diff --git a/BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs b/BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs index 8ca0268..a08944a 100644 --- a/BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs +++ b/BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs @@ -69,16 +69,18 @@ namespace BPA.SAAS.Manage.Web.Core // var vvvv = stingA; //} + var groupId = httpRequest.Headers["GroupId"]; + if (!string.IsNullOrEmpty(groupId)) + { + CurrentUser.GroupId = groupId; + } + if (requestUrl.ToUpper().Contains("ExternalPlatform".ToUpper())) { var key = httpRequest.Headers["key"]; var sign = httpRequest.Headers["sign"]; - var groupId = httpRequest.Headers["GroupId"]; - if (!string.IsNullOrEmpty(groupId)) - { - CurrentUser.GroupId = groupId; - } + List proplist = new List(); if (parameters.Count<=0) {