addtaskinfo
This commit is contained in:
parent
f572730cec
commit
a653c78cfa
@ -3146,6 +3146,9 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
});
|
||||
}
|
||||
//折线图
|
||||
var deleteIds = new List<Guid>();
|
||||
var deletemouIds = new List<Guid>();
|
||||
var deletemonthIds = new List<Guid>();
|
||||
List<T_BI_DEPARTMENT_MONTH_RUN> monthRuns = new List<T_BI_DEPARTMENT_MONTH_RUN>();
|
||||
var ksDepartId = departmentInfos.FirstOrDefault(t => t.NAME == "矿山部")?.ID;
|
||||
var xkDepartId = departmentInfos.FirstOrDefault(t => t.NAME == "选矿部")?.ID;
|
||||
@ -3154,6 +3157,8 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
ksDepartId = departmentInfos.FirstOrDefault(t => t.NAME == "选矿一部")?.ID;
|
||||
xkDepartId = departmentInfos.FirstOrDefault(t => t.NAME == "选矿二部")?.ID;
|
||||
}
|
||||
if (ksDepartId != null && xkDepartId != null)
|
||||
{
|
||||
var currentMonth = DateTime.Now.Month; //获取当月
|
||||
var currentDay = DateTime.Now.Day; //...........天
|
||||
for (DateTime i = year; i <= dt; i = i.AddMonths(1)) //for (int i = 1; i <= 12; i++)
|
||||
@ -3253,9 +3258,11 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
monthRuns.Add(run);
|
||||
}
|
||||
}
|
||||
var deleteIds = this.GetEntities<T_BI_SYSTEM_RUN_SUMMARY>(t => true, new BaseFilter(pageFilter.OrgId)).Select(m => m.ID).ToList();
|
||||
var deletemouIds = this.GetEntities<T_BI_MOULD_RUN_SUMMARY>(t => true, new BaseFilter(pageFilter.OrgId)).Select(m => m.ID).ToList();
|
||||
var deletemonthIds = this.GetEntities<T_BI_DEPARTMENT_MONTH_RUN>(t => true, new BaseFilter(pageFilter.OrgId)).Select(m => m.ID).ToList();
|
||||
deleteIds = this.GetEntities<T_BI_SYSTEM_RUN_SUMMARY>(t => true, new BaseFilter(pageFilter.OrgId)).Select(m => m.ID).ToList();
|
||||
deletemouIds = this.GetEntities<T_BI_MOULD_RUN_SUMMARY>(t => true, new BaseFilter(pageFilter.OrgId)).Select(m => m.ID).ToList();
|
||||
deletemonthIds = this.GetEntities<T_BI_DEPARTMENT_MONTH_RUN>(t => true, new BaseFilter(pageFilter.OrgId)).Select(m => m.ID).ToList();
|
||||
|
||||
}
|
||||
this.UnifiedCommit(() =>
|
||||
{
|
||||
if (deleteIds != null && deleteIds.Any())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user