Browse Source

提交

groupmealmanage
gwbvipvip 8 months ago
parent
commit
2609404328
5 changed files with 15 additions and 11 deletions
  1. +2
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs
  2. +3
    -3
      BPA.SAAS.Manage.Application/DataBase/GoodsServices.cs
  3. +1
    -1
      BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsService.cs
  4. +2
    -2
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs
  5. +7
    -5
      BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs

+ 2
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs View File

@@ -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();

////获取商品属性价格


+ 3
- 3
BPA.SAAS.Manage.Application/DataBase/GoodsServices.cs View File

@@ -154,10 +154,10 @@ namespace BPA.SAAS.Manage.Application.DataBase
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
[HttpGet("/api/goods/GetGoodsList")]
public async Task<List<GoodsInfoBaseView>> GetGoodsList(List<string> ids)
[HttpPost("/api/goods/GetGoodsListByIds")]
public async Task<List<GoodsInfoBaseView>> GetGoodsListByIds(List<string> ids)
{
return await _goodsService.GetGoodsList(ids);
return await _goodsService.GetGoodsListByIds(ids);
}

///// <summary>


+ 1
- 1
BPA.SAAS.Manage.Application/DataBase/Interface/IGoodsService.cs View File

@@ -80,7 +80,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Interface
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
Task<List<GoodsInfoBaseView>> GetGoodsList(List<string> ids);
Task<List<GoodsInfoBaseView>> GetGoodsListByIds(List<string> ids);


///// <summary>


+ 2
- 2
BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs View File

@@ -460,7 +460,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
GoodsUintName = SqlFunc.Subqueryable<BPA_GoodsUint>().Where(s => s.Id == a.GoodsUintId && s.IsDeleted == 0).Select(s => s.Name),
//GoodsAttributeList = new List<GoodsAttributeList>()
}).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
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
public async Task<List<GoodsInfoBaseView>> GetGoodsList(List<string> ids)
public async Task<List<GoodsInfoBaseView>> GetGoodsListByIds(List<string> ids)
{
var res = await _db.Queryable<BPA_GoodsInfo>()
.Where((a) => a.IsDeleted == 0 && ids.Contains(a.Id))


+ 7
- 5
BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs View File

@@ -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<PropertyInfo> proplist = new List<PropertyInfo>();
if (parameters.Count<=0)
{


Loading…
Cancel
Save