Browse Source

同步

trusteeshipTask
shanji 2 years ago
parent
commit
b86825d241
  1. 2
      SBF.Business/TrusteeshipBusiness.cs
  2. 0
      SBF.Model/Db/Trusteeship/Sbf_TrusteeshipTask.cs
  3. 5
      SBF.Model/Dto/Request/QueryTrusteeshipRequest.cs

2
SBF.Business/TrusteeshipBusiness.cs

@ -90,7 +90,7 @@ namespace SBF.Business
var list = fsql.Select<Sbf_TrusteeshipTask, Product, ProductSku>() var list = fsql.Select<Sbf_TrusteeshipTask, Product, ProductSku>()
.InnerJoin((t, p, ps) => t.SpuId == p.Id) .InnerJoin((t, p, ps) => t.SpuId == p.Id)
.InnerJoin((t, p, ps) => t.SkuId == ps.Id) .InnerJoin((t, p, ps) => t.SkuId == ps.Id)
.Where((t, p, ps) => t.ShopId == request.ShopId) .Where((t, p, ps) => t.ShopId == request.ShopId && t.BusinessType == request.BusinessType)
.WhereIf(request.Stage != null, (t, p, ps) => p.Stage == request.Stage) .WhereIf(request.Stage != null, (t, p, ps) => p.Stage == request.Stage)
.WhereIf(!string.IsNullOrEmpty(request.Spu), (t, p, ps) => t.SpuId == request.Spu) .WhereIf(!string.IsNullOrEmpty(request.Spu), (t, p, ps) => t.SpuId == request.Spu)
.WhereIf(!string.IsNullOrEmpty(request.Sku), (t, p, ps) => t.SkuId == request.Sku) .WhereIf(!string.IsNullOrEmpty(request.Sku), (t, p, ps) => t.SkuId == request.Sku)

0
SBF.Model/Sbf_TrusteeshipTask.cs → SBF.Model/Db/Trusteeship/Sbf_TrusteeshipTask.cs

5
SBF.Model/Dto/Request/QueryTrusteeshipRequest.cs

@ -4,6 +4,11 @@
{ {
public Enums.Stage? Stage { get; set; } public Enums.Stage? Stage { get; set; }
/// <summary>
/// 业务类型/渠道 快车=2,智能投放=134217728
/// </summary>
public int BusinessType { get; set; }
public long? ShopId { get; set; } public long? ShopId { get; set; }
public string Spu { get; set; } public string Spu { get; set; }

Loading…
Cancel
Save