|
@ -960,8 +960,20 @@ namespace BBWYB.Server.Business |
|
|
//fsql.Delete<SpuOptimizationCompetitiveTenderTask>(ctTaskIdList).ExecuteAffrows();
|
|
|
//fsql.Delete<SpuOptimizationCompetitiveTenderTask>(ctTaskIdList).ExecuteAffrows();
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public long GetNoCompletedSpuOptimizationTaskCount() |
|
|
public long GetNoCompletedSpuOptimizationTaskCount(string userId) |
|
|
{ |
|
|
{ |
|
|
|
|
|
var uInfo = userBusiness.GetisBargainTeamByUserId(userId); |
|
|
|
|
|
if (uInfo.isBargainTeam) |
|
|
|
|
|
{ |
|
|
|
|
|
var barginTeamId = uInfo.bargainTeam?.Id ?? string.Empty; |
|
|
|
|
|
return fsql.Select<SpuOptimizationTask>().Where(t => t.IsOptimizationCompleted == false && |
|
|
|
|
|
fsql.Select<SpuOptimizationBargainTeamTask>() |
|
|
|
|
|
.Where(sbt => sbt.IsOptimizationCompleted == false && |
|
|
|
|
|
sbt.SpuOptimizationTaskId == t.Id && |
|
|
|
|
|
sbt.BelongTeamId == barginTeamId) |
|
|
|
|
|
.Any()).Count(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return fsql.Select<SpuOptimizationTask>().Where(t => t.IsOptimizationCompleted == false).Count(); |
|
|
return fsql.Select<SpuOptimizationTask>().Where(t => t.IsOptimizationCompleted == false).Count(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|