Browse Source

sk 执行时间修改

master
shiqian.wang 1 month ago
parent
commit
84ad3e59e0
  1. 6
      ICSSoft.FromERP/SK/YERP_008.cs
  2. 4
      ICSSoft.FromERP/SK/YERP_011.cs
  3. 4
      ICSSoft.FromERP/SK/YERP_012.cs

6
ICSSoft.FromERP/SK/YERP_008.cs

@ -66,9 +66,9 @@ namespace ICSSoft.FromERP
// </yerp:YERP_008_OA1_MT> // </yerp:YERP_008_OA1_MT>
// </soapenv:Body> // </soapenv:Body>
// </soapenv:Envelope> // </soapenv:Envelope>
// 过滤时间为上个月
var beginPeriod = Dates.AddMonths(-1).AddDays(-Dates.Day + 1).ToString("yyyy-MM-dd");//"2023-06-01";
var endPeriod = Dates.AddDays(-Dates.Day).ToString("yyyy-MM-dd");//"2023-07-01";
// 过滤时间为昨天
var beginPeriod = Dates.AddDays(-1).ToString("yyyy-MM-dd");//"2023-06-01";
var endPeriod = Dates.ToString("yyyy-MM-dd");//"2023-06-30";
string sqls = @"select convert(nvarchar(10),getdate(),112) IF_STD_DATE, string sqls = @"select convert(nvarchar(10),getdate(),112) IF_STD_DATE,
cInvCode ITEM_CD, cInvCode ITEM_CD,
d.cInvCName+' '+cInvName ITEM_NM, d.cInvCName+' '+cInvName ITEM_NM,

4
ICSSoft.FromERP/SK/YERP_011.cs

@ -60,8 +60,8 @@ namespace ICSSoft.FromERP
// </soapenv:Body> // </soapenv:Body>
//</soapenv:Envelope> //</soapenv:Envelope>
// 过滤时间为上个月 // 过滤时间为上个月
var beginPeriod = Dates.AddMonths(-1).AddDays(-Dates.Day + 1).ToString("yyyy-MM-dd");//"2023-06-01";
var endPeriod = Dates.AddDays(-Dates.Day).ToString("yyyy-MM-dd");//"2023-06-30";
var beginPeriod = Dates.AddDays(-1).ToString("yyyy-MM-dd");//"2023-06-01";
var endPeriod = Dates.ToString("yyyy-MM-dd");//"2023-06-30";
string sqls = @"select convert(nvarchar(10),getdate(),112) IF_STD_DATE, string sqls = @"select convert(nvarchar(10),getdate(),112) IF_STD_DATE,
cCusCode ACNT_CD, cCusCode ACNT_CD,
cCusName ACNT_NM, cCusName ACNT_NM,

4
ICSSoft.FromERP/SK/YERP_012.cs

@ -68,8 +68,8 @@ namespace ICSSoft.FromERP
//</soapenv:Envelope> //</soapenv:Envelope>
// 过滤时间为上个月 // 过滤时间为上个月
var beginPeriod = Dates.AddMonths(-1).AddDays(-Dates.Day + 1).ToString("yyyy-MM-dd");//"2023-06-01";
var endPeriod = Dates.AddDays(-Dates.Day).ToString("yyyy-MM-dd");//"2023-06-30";
var beginPeriod = Dates.AddDays(-1).ToString("yyyy-MM-dd");//"2023-06-01";
var endPeriod = Dates.ToString("yyyy-MM-dd");//"2023-06-30";
string sqls = @"select string sqls = @"select
IF_STD_DATE,INVOICE_DATE,ITEM_CD,ITEM_NM,SKU_PAYMT_QTY_UOM,SALES_SITE_CD,SALES_SITE_NM,CREATE_BY,COUNT(*) OVER (PARTITION BY getdate()) GEN_ROW_CNT IF_STD_DATE,INVOICE_DATE,ITEM_CD,ITEM_NM,SKU_PAYMT_QTY_UOM,SALES_SITE_CD,SALES_SITE_NM,CREATE_BY,COUNT(*) OVER (PARTITION BY getdate()) GEN_ROW_CNT
,SUM(SKU_PAYMT_QTY) SKU_PAYMT_QTY,SUM(PAYMT_PRICE) PAYMT_PRICE ,SUM(SKU_PAYMT_QTY) SKU_PAYMT_QTY,SUM(PAYMT_PRICE) PAYMT_PRICE

Loading…
Cancel
Save