1
This commit is contained in:
@@ -484,10 +484,15 @@ namespace FineUIPro.Web.ProjectData
|
||||
|
||||
foreach (var pro in getProjects)
|
||||
{
|
||||
bool threeMonNoChange = false;
|
||||
bool monNoChange = false;
|
||||
bool weekNoChange = false;
|
||||
bool dayNoChange = false;
|
||||
|
||||
string threeMonResult = "";
|
||||
string monResult = "";
|
||||
string dayResult = "";
|
||||
string weekResult = "";
|
||||
string dayResult = "";
|
||||
var nowData = datas.Where(x => x.ProjectId == pro.ProjectId && x.ReportDate == dateNow).FirstOrDefault();
|
||||
var daysData = datas.Where(x => x.ProjectId == pro.ProjectId && x.ReportDate == dateDays).FirstOrDefault();
|
||||
var weekData = datas.Where(x => x.ProjectId == pro.ProjectId && x.ReportDate == dateWeek).FirstOrDefault();
|
||||
@@ -497,27 +502,31 @@ namespace FineUIPro.Web.ProjectData
|
||||
{//两个时间点都有指标数据
|
||||
if (nowData.DataMetricsSum == daysData.DataMetricsSum)
|
||||
{
|
||||
dayNoChange = true;
|
||||
dayResult = "数据无变化";
|
||||
}
|
||||
}
|
||||
if (nowData != null && weekData != null)
|
||||
if (dayNoChange && nowData != null && weekData != null)
|
||||
{//两个时间点都有指标数据
|
||||
if (nowData.DataMetricsSum == weekData.DataMetricsSum)
|
||||
{
|
||||
weekNoChange = true;
|
||||
weekResult = "数据无变化";
|
||||
}
|
||||
}
|
||||
if (nowData != null && monthData != null)
|
||||
if (dayNoChange && weekNoChange && nowData != null && monthData != null)
|
||||
{//两个时间点都有指标数据
|
||||
if (nowData.DataMetricsSum == monthData.DataMetricsSum)
|
||||
{
|
||||
monNoChange = true;
|
||||
monResult = "数据无变化";
|
||||
}
|
||||
}
|
||||
if (nowData != null && threeMonthData != null)
|
||||
if (dayNoChange && weekNoChange && monNoChange && nowData != null && threeMonthData != null)
|
||||
{//两个时间点都有指标数据
|
||||
if (nowData.DataMetricsSum == threeMonthData.DataMetricsSum)
|
||||
{
|
||||
threeMonNoChange = true;
|
||||
threeMonResult = "数据无变化";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user