From ff247ae3a329229de9a6a68146450daf77adfa48 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期六, 28 十二月 2024 16:05:56 +0800 Subject: [PATCH] Add PLAN_DATE property to BIZ_MES_WO_BATCH model This enhancement provides additional scheduling information by storing the planned date for a work order batch. --- Tiger.Controllers.System/Controllers/Base/BaseController.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tiger.Controllers.System/Controllers/Base/BaseController.cs b/Tiger.Controllers.System/Controllers/Base/BaseController.cs index 7783881..24899c1 100644 --- a/Tiger.Controllers.System/Controllers/Base/BaseController.cs +++ b/Tiger.Controllers.System/Controllers/Base/BaseController.cs @@ -569,8 +569,8 @@ { await file.CopyToAsync(stream); } - - return Ok(new { file.FileName, file.ContentType, file.Length, url= $@"{BizConfig.Configuration["DownloadAddress"]}/"+ file.FileName }); + var downloadAddress = entityName == "BAS_LABEL_TEMP" || entityName == "BAS_LABEL_VAR" ? "/Template" : ""; + return Ok(new { file.FileName, file.ContentType, file.Length, url= $@"{BizConfig.Configuration["DownloadAddress"]}{downloadAddress}/"+ file.FileName }); } #endregion -- Gitblit v1.9.3