|
@ -91,6 +91,8 @@ namespace SBF.Business |
|
|
{ |
|
|
{ |
|
|
if (request.ShopId == null || request.ShopId == 0) |
|
|
if (request.ShopId == null || request.ShopId == 0) |
|
|
throw new BusinessException("缺少ShopId"); |
|
|
throw new BusinessException("缺少ShopId"); |
|
|
|
|
|
if (request.PageSize > 20) |
|
|
|
|
|
request.PageSize = 20; |
|
|
|
|
|
|
|
|
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) |
|
@ -403,12 +405,12 @@ namespace SBF.Business |
|
|
Value = x.Cost |
|
|
Value = x.Cost |
|
|
}).ToList(); |
|
|
}).ToList(); |
|
|
|
|
|
|
|
|
task.PopluarizeProfitByDateList = costList.OrderBy(x => x.Date) |
|
|
task.PopluarizeNetProfitByDateList = costList.OrderBy(x => x.Date) |
|
|
.Select(x => new NumberByDate() |
|
|
.Select(x => new NumberByDate() |
|
|
{ |
|
|
{ |
|
|
Date = x.Date, |
|
|
Date = x.Date, |
|
|
Value = x.PopularizeLevelProfit - x.Cost |
|
|
Value = x.PopularizeLevelProfit - x.Cost |
|
|
}).ToList(); |
|
|
}).ToList(); |
|
|
|
|
|
|
|
|
task.ActualAmountByDateList = actualAmountList.OrderBy(x => x.Date) |
|
|
task.ActualAmountByDateList = actualAmountList.OrderBy(x => x.Date) |
|
|
.Select(x => new NumberByDate() |
|
|
.Select(x => new NumberByDate() |
|
|