This commit is contained in:
2023-10-25 15:42:21 +08:00
parent ce1e237663
commit 4e171aa7f9
@@ -24,9 +24,13 @@ namespace BLL
var getSeDinMonthReport = from x in db.SeDin_MonthReport var getSeDinMonthReport = from x in db.SeDin_MonthReport
where x.ProjectId == projectId where x.ProjectId == projectId
select x; select x;
if (!string.IsNullOrEmpty(states)) if (states == "1")
{ {
getSeDinMonthReport = getSeDinMonthReport.Where(x => x.States == states || (states == "0" && (x.States == null || x.States == "0"))); getSeDinMonthReport = getSeDinMonthReport.Where(x => x.States == BLL.Const.State_3);
}
else
{
getSeDinMonthReport = getSeDinMonthReport.Where(x => x.States == null || x.States != BLL.Const.State_3);
} }
if (monthD.HasValue) if (monthD.HasValue)