|
@ -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 |
|
|