Browse Source

完善任务模型

master
shanji 2 years ago
parent
commit
dba5812db2
  1. 4
      SBF.Business/TrusteeshipBusiness.cs
  2. 49
      SBF.Model/Dto/Response/TrusteeshipTaskResponse.cs

4
SBF.Business/TrusteeshipBusiness.cs

@ -91,6 +91,8 @@ namespace SBF.Business
{
if (request.ShopId == null || request.ShopId == 0)
throw new BusinessException("缺少ShopId");
if (request.PageSize > 20)
request.PageSize = 20;
var list = fsql.Select<Sbf_TrusteeshipTask, Product, ProductSku>()
.InnerJoin((t, p, ps) => t.SpuId == p.Id)
@ -403,7 +405,7 @@ namespace SBF.Business
Value = x.Cost
}).ToList();
task.PopluarizeProfitByDateList = costList.OrderBy(x => x.Date)
task.PopluarizeNetProfitByDateList = costList.OrderBy(x => x.Date)
.Select(x => new NumberByDate()
{
Date = x.Date,

49
SBF.Model/Dto/Response/TrusteeshipTaskResponse.cs

@ -93,22 +93,63 @@ namespace SBF.Model.Dto
/// <summary>
/// 按日期分组的推广盈利
/// </summary>
public IList<NumberByDate> PopluarizeProfitByDateList { get; set; }
public IList<NumberByDate> PopluarizeNetProfitByDateList { get; set; }
/// <summary>
/// 按日期分组的推广毛利
/// </summary>
public IList<NumberByDate> PopluarizeGrossProfitByDateList { get; set; }
public IList<NumberByDate> PopluarizeProfitByDateList { get; set; }
/// <summary>
/// 按日期分组的商品毛利
/// </summary>
public IList<NumberByDate> ProductGrossProfitByDateList { get; set; }
public IList<NumberByDate> ProductProfitByDateList { get; set; }
/// <summary>
/// 按日期分组的商品盈利
/// </summary>
public IList<NumberByDate> ProductProfitByDateList { get; set; }
public IList<NumberByDate> ProductNetProfitByDateList { get; set; }
/// <summary>
/// 最近7天商品GOI
/// </summary>
public decimal? Recent7dProductLevelGOI { get; set; }
/// <summary>
/// 最近7天推广GOI
/// </summary>
public decimal? Recent7dPopluarizeLevelGOI { get; set; }
/// <summary>
/// 最近30天商品GOI
/// </summary>
public decimal? Recent30dProductLevelGOI { get; set; }
/// <summary>
/// 最近30天推广GOI
/// </summary>
public decimal? Recent30dPopluarizeLevelGOI { get; set; }
/// <summary>
/// 最近30天推广成本
/// </summary>
public decimal? Recent30dCost { get; set; }
/// <summary>
/// 最近30天推广毛利
/// </summary>
public decimal? Recent30dPopluarizeLevelProfit { get; set; }
/// <summary>
/// 最近30天商品毛利
/// </summary>
public decimal? Recent30dProductLevelProfit { get; set; }
/// <summary>
/// 最近30天商品盈利
/// </summary>
public decimal? Recent30dProductLevelNetProfit { get; set; }
/// <summary>
/// 托管开始时间

Loading…
Cancel
Save