From 4e171aa7f90a2693312941d11d3966b00ef8bf2f Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Wed, 25 Oct 2023 15:42:21 +0800 Subject: [PATCH] 20231025 --- SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs index 594e6508..c648825c 100644 --- a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs +++ b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs @@ -24,9 +24,13 @@ namespace BLL var getSeDinMonthReport = from x in db.SeDin_MonthReport where x.ProjectId == projectId 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)