From d10d6843cb5e8785060e311b0288c7eed4d821ad Mon Sep 17 00:00:00 2001 From: geh <1923421292@qq.com> Date: Tue, 16 Sep 2025 11:01:15 +0800 Subject: [PATCH] 1 --- .../Customization/7HJ/7HJ_ReportController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SUBQHSE/WebAPI/Controllers/Customization/7HJ/7HJ_ReportController.cs b/SUBQHSE/WebAPI/Controllers/Customization/7HJ/7HJ_ReportController.cs index f1ef631..410b874 100644 --- a/SUBQHSE/WebAPI/Controllers/Customization/7HJ/7HJ_ReportController.cs +++ b/SUBQHSE/WebAPI/Controllers/Customization/7HJ/7HJ_ReportController.cs @@ -2236,7 +2236,7 @@ namespace WebAPI.Controllers._7HJ new Model.Environmental_ArchitectureReport { Year = newItem.Year, - Quarters = newItem.Quarters, + Month = newItem.Month, UnitId = newItem.UnitId, FillingDate = date, DutyPerson = newItem.DutyPerson, @@ -2244,8 +2244,8 @@ namespace WebAPI.Controllers._7HJ }; var chemicalReportId = newItem.ArchitectureReportId ?? ""; var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x => - x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && - x.Quarters == chemicalReport.Quarters); + x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.Month == chemicalReport.Month + ); if (oldArchitectureReport == null) { chemicalReport.ArchitectureReportId = SQLHelper.GetNewID(); @@ -2371,7 +2371,7 @@ namespace WebAPI.Controllers._7HJ new Model.Environmental_ArchitectureReport { Year = newItem.Year, - Quarters = newItem.Quarters, + Month = newItem.Month, UnitId = newItem.UnitId, FillingDate = date, DutyPerson = newItem.DutyPerson, @@ -2379,8 +2379,8 @@ namespace WebAPI.Controllers._7HJ }; var chemicalReportId = newItem.ArchitectureReportId ?? ""; var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x => - x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && - x.Quarters == chemicalReport.Quarters); + x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.Month == chemicalReport.Month + ); if (oldArchitectureReport == null) { chemicalReport.ArchitectureReportId = SQLHelper.GetNewID();