From 3d283d1e46bb6246d55683cfaa89052902a618b1 Mon Sep 17 00:00:00 2001 From: "shiqian.wang" Date: Fri, 27 Sep 2024 15:41:57 +0800 Subject: [PATCH] =?UTF-8?q?sql=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ICSSoft.FromERP/SK/YERP_006.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ICSSoft.FromERP/SK/YERP_006.cs b/ICSSoft.FromERP/SK/YERP_006.cs index 9298c40..594c39e 100644 --- a/ICSSoft.FromERP/SK/YERP_006.cs +++ b/ICSSoft.FromERP/SK/YERP_006.cs @@ -143,8 +143,8 @@ namespace ICSSoft.FromERP string Date = Dates.ToString("yyyy"); string beginMuoth = Dates.AddMonths(-1).ToString("MM"); string endMuoth = Dates.AddMonths(-1).ToString("MM"); - var beginPeriod = Date + beginMuoth;// "200301";//Date + beginMuoth - var endPeriod = Date + endMuoth; //"205306";//Date + endMuoth; + var beginPeriod = Date + beginMuoth;// "202407";//Date + beginMuoth + var endPeriod = Date + endMuoth;// "202407";//Date + endMuoth; #region 004上海 // string sqls = @" @@ -574,7 +574,7 @@ rollback transaction "; sqlsgz = string.Format(sqlsgz, beginPeriod, endPeriod); log.Info("YERP_006_gz sql:" + sqlsgz); - DataTable vbsdtgz = ICSHelper.ExecuteTable(conStr, sqlsgz); + DataTable vbsdtgz = ICSHelper.ExecuteTable(conStrgz, sqlsgz); log.Info("YERP_006_gz sql结果数量" + vbsdtgz.Rows.Count);