数据库变更CNPC_XJYJ

This commit is contained in:
2025-08-04 18:04:41 +08:00
parent bafbf97359
commit 79a7f35e22
679 changed files with 5590 additions and 3465 deletions
@@ -8,7 +8,7 @@ namespace BLL
{
public static class WeekAndMonthReportService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -79,7 +79,7 @@ namespace BLL
/// <param name="report"></param>
public static void AddWeekAndMonthReport(Model.Report_WeekAndMonthReport report)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_WeekAndMonthReport newReport = new Model.Report_WeekAndMonthReport();
newReport.ReportId = report.ReportId;
newReport.Period = report.Period;
@@ -97,7 +97,7 @@ namespace BLL
/// <param name="report"></param>
public static void UpdateWeekAndMonthReport(Model.Report_WeekAndMonthReport report)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_WeekAndMonthReport newReport = db.Report_WeekAndMonthReport.FirstOrDefault(e => e.ReportId == report.ReportId);
if (newReport != null)
{
@@ -116,7 +116,7 @@ namespace BLL
/// <param name="reportId"></param>
public static void DeleteWeekAndMonthReportById(string reportId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Report_WeekAndMonthReport report = db.Report_WeekAndMonthReport.FirstOrDefault(e => e.ReportId == reportId);
if (report != null)
{