From 3adf9657162bcd2706718745548321f2b49624fa Mon Sep 17 00:00:00 2001 From: hehaibing-1996 Date: Fri, 21 Feb 2025 22:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8B=E8=BD=BD=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=9C=80=E5=90=8E=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 货架标准上位机/ViewModels/BatchBindMatDetailViewModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/货架标准上位机/ViewModels/BatchBindMatDetailViewModel.cs b/货架标准上位机/ViewModels/BatchBindMatDetailViewModel.cs index 24ae729..e317ade 100644 --- a/货架标准上位机/ViewModels/BatchBindMatDetailViewModel.cs +++ b/货架标准上位机/ViewModels/BatchBindMatDetailViewModel.cs @@ -295,6 +295,10 @@ namespace 智慧物流软件系统.ViewModel var sourcePath = Path.Combine(LocalFile.ResourcesDir, "物料绑定导入模板.xlsx"); Folder.CopyFile(sourcePath, destinationPath); + + // 更新文件的最后修改时间(通常设置为当前时间) + File.SetLastWriteTime(destinationPath, DateTime.Now); + if (File.Exists(destinationPath) && LocalFile.Config.IsLoadingDownloadPath) { LocalFile.Config.BatchBindImportTemplatePath = destinationPath;