Browse Source

修复查询报错

GOIAggregation
sanji 2 years ago
parent
commit
8f434327f5
  1. 2
      SiNan.API/Program.cs
  2. 2
      SiNan.Business/GOIBusiness.cs

2
SiNan.API/Program.cs

@ -9,6 +9,7 @@ using SiNan.Common.Extensions;
using SiNan.Common.Http;
using SiNan.Common.Log;
using SiNan.Common.Models;
using SiNan.Model;
using System.Reflection;
using System.Text;
using Yitter.IdGenerator;
@ -65,6 +66,7 @@ services.AddControllers(c =>
//setupAction.SerializerSettings.DefaultValueHandling = Newtonsoft.Json.DefaultValueHandling.Include;
});
services.AddMapper(new MappingProfiles());
services.AddEndpointsApiExplorer();
services.AddSwaggerGen(c =>
{

2
SiNan.Business/GOIBusiness.cs

@ -215,7 +215,7 @@ namespace SiNan.Business
return new ListResponse<ProductGOIResponse>() { ItemList = new List<ProductGOIResponse>() };
var productIdList = productList.Select(p => p.Id).ToList();
var skuList = fsql.Select<ProductSku>().Where(ps => productIdList.Contains(ps.Id)).ToList<ProductSkuResponse>();
var skuList = fsql.Select<ProductSku>().Where(ps => productIdList.Contains(ps.ProductId)).ToList<ProductSkuResponse>();
var skuIdList = skuList.Select(s => s.Id).ToList();
var startDate_yestoday = DateTime.Now.Date.AddDays(-1);

Loading…
Cancel
Save