|
@@ -4811,7 +4811,7 @@ Group by PriceType ", dto.diId);
|
|
|
JoinType.Left, a.Id == x.DIId ,
|
|
|
JoinType.Left, b.CTable == 85 && b.CId == x.Id )
|
|
|
).Where((x, a, b) => x.IsDel == 0 && x.CreateUserId == userId && (b.IsAuditGM == 1 || b.IsAuditGM == 3)
|
|
|
- && a.IsDel == 0 && a.VisitDate >= StartDateTime && a.VisitDate <= EndDateTime && b.IsDel == 0)
|
|
|
+ && a.IsDel == 0 && a.VisitDate >= StartDateTime && a.VisitDate <= EndDateTime && b.IsDel == 0 && a.IsSure == 1 )
|
|
|
.Select((x, a, b) => new
|
|
|
{
|
|
|
x.FlightsDescription,
|
|
@@ -4929,7 +4929,7 @@ Group by PriceType ", dto.diId);
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
- Id = groupinfo.Id,
|
|
|
+ TeamId = groupinfo.Id,
|
|
|
chiArr = infos,
|
|
|
teamLvStr = teamLv.Find(x=>x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
VisitDate = groupinfo.VisitDate,
|
|
@@ -5001,7 +5001,7 @@ Group by PriceType ", dto.diId);
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
- Id = groupinfo.Id,
|
|
|
+ TeamId = groupinfo.Id,
|
|
|
chiArr = infos,
|
|
|
teamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
VisitDate = groupinfo.VisitDate,
|
|
@@ -5030,7 +5030,7 @@ Group by PriceType ", dto.diId);
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
- Id = groupinfo.Id,
|
|
|
+ TeamId = groupinfo.Id,
|
|
|
chiArr = new List<string>() { temp },
|
|
|
teamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
VisitDate = groupinfo.VisitDate,
|
|
@@ -5126,7 +5126,7 @@ Group by PriceType ", dto.diId);
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
- Id = groupinfo.Id,
|
|
|
+ TeamId = groupinfo.Id,
|
|
|
chiArr = infos,
|
|
|
teamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
VisitDate = groupinfo.VisitDate,
|
|
@@ -5194,7 +5194,7 @@ Group by PriceType ", dto.diId);
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
- Id = groupinfo.Id,
|
|
|
+ TeamId = groupinfo.Id,
|
|
|
chiArr = arr,
|
|
|
teamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
VisitDate = groupinfo.VisitDate,
|
|
@@ -5330,17 +5330,25 @@ Group by PriceType ", dto.diId);
|
|
|
var jw = JsonView(false);
|
|
|
if (dto.ComputeRoyaltiesList.Count != 0)
|
|
|
{
|
|
|
-
|
|
|
+ //保存提成信息
|
|
|
+ //消息通知对应人员(公司 部门 人员 时间段)
|
|
|
|
|
|
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- jw = JsonView(false,"保存失败!");
|
|
|
+ jw = JsonView(false,"保存失败! 无提成信息");
|
|
|
}
|
|
|
|
|
|
return Ok(jw);
|
|
|
}
|
|
|
+
|
|
|
+ [HttpPost]
|
|
|
+ public IActionResult QueryRoyaltyInfo(QueryRoyaltyInfoDto dto)
|
|
|
+ {
|
|
|
+ var jw = JsonView(false);
|
|
|
+ return Ok(jw);
|
|
|
+ }
|
|
|
#endregion
|
|
|
}
|
|
|
}
|