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);