This commit is contained in:
geh 2025-09-16 11:01:15 +08:00
parent bf9f9c44b5
commit d10d6843cb
1 changed files with 6 additions and 6 deletions

View File

@ -2236,7 +2236,7 @@ namespace WebAPI.Controllers._7HJ
new Model.Environmental_ArchitectureReport new Model.Environmental_ArchitectureReport
{ {
Year = newItem.Year, Year = newItem.Year,
Quarters = newItem.Quarters, Month = newItem.Month,
UnitId = newItem.UnitId, UnitId = newItem.UnitId,
FillingDate = date, FillingDate = date,
DutyPerson = newItem.DutyPerson, DutyPerson = newItem.DutyPerson,
@ -2244,8 +2244,8 @@ namespace WebAPI.Controllers._7HJ
}; };
var chemicalReportId = newItem.ArchitectureReportId ?? ""; var chemicalReportId = newItem.ArchitectureReportId ?? "";
var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x => var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x =>
x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.Month == chemicalReport.Month
x.Quarters == chemicalReport.Quarters); );
if (oldArchitectureReport == null) if (oldArchitectureReport == null)
{ {
chemicalReport.ArchitectureReportId = SQLHelper.GetNewID(); chemicalReport.ArchitectureReportId = SQLHelper.GetNewID();
@ -2371,7 +2371,7 @@ namespace WebAPI.Controllers._7HJ
new Model.Environmental_ArchitectureReport new Model.Environmental_ArchitectureReport
{ {
Year = newItem.Year, Year = newItem.Year,
Quarters = newItem.Quarters, Month = newItem.Month,
UnitId = newItem.UnitId, UnitId = newItem.UnitId,
FillingDate = date, FillingDate = date,
DutyPerson = newItem.DutyPerson, DutyPerson = newItem.DutyPerson,
@ -2379,8 +2379,8 @@ namespace WebAPI.Controllers._7HJ
}; };
var chemicalReportId = newItem.ArchitectureReportId ?? ""; var chemicalReportId = newItem.ArchitectureReportId ?? "";
var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x => var oldArchitectureReport = db.Environmental_ArchitectureReport.FirstOrDefault(x =>
x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.UnitId == chemicalReport.UnitId && x.Year == chemicalReport.Year && x.Month == chemicalReport.Month
x.Quarters == chemicalReport.Quarters); );
if (oldArchitectureReport == null) if (oldArchitectureReport == null)
{ {
chemicalReport.ArchitectureReportId = SQLHelper.GetNewID(); chemicalReport.ArchitectureReportId = SQLHelper.GetNewID();