From a844571ae0523f6fcd533b62546892357ab8f119 Mon Sep 17 00:00:00 2001 From: Jjie <1005539536@qq.com> Date: Tue, 8 Apr 2025 13:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E6=97=B6=E9=97=B4=E6=88=B3?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=88=AA=E6=AD=A2=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs index 6d8490d..b3e5fd3 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs @@ -57,11 +57,16 @@ namespace ICSSoft.FromERP Dictionary dic = new Dictionary(); DYS dys = new DYS(); List ls = new List(); + // 获取当前时间 + DateTime currentTime = DateTime.Now; + // 将日期格式化为 yyyy-MM-dd 格式 + string formattedDate = currentTime.ToString("yyyy-MM-dd"); //List lq = new List(); dys.pageSize = 500; dys.pageIndex = 1; - dys.beganTime= "2025-03-15"; + dys.beginTime = "2025-04-06"; + dys.endTime = formattedDate; //dys.isSum = true; #region 添加条件 @@ -312,7 +317,8 @@ namespace ICSSoft.FromERP { public int pageIndex; public int pageSize; - public string beganTime; + public string beginTime; + public string endTime; public DYSs simple; }