From eb92ed77b1571c9d5c1fd8fae8ec02b8e4211aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=A6=E9=BA=9F=20=E7=8E=8B?= Date: Fri, 24 Apr 2026 14:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E5=90=8C=E7=94=A8?= =?UTF-8?q?=E5=8D=B0=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Controllers/tradeController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/YLErpWeb/Controllers/tradeController.cs b/YLErpWeb/Controllers/tradeController.cs index 4523200b..05a793d4 100644 --- a/YLErpWeb/Controllers/tradeController.cs +++ b/YLErpWeb/Controllers/tradeController.cs @@ -6386,7 +6386,7 @@ namespace YLErp.Web.Controllers foreach (var type in req.docpdf) { var doc = contractBLL.GetContractDoc(item.TradeId, item.Type, item.TradeCashId); - if (type == "PDF" && req.IsSeal) + if (req.IsSeal) { if (string.IsNullOrWhiteSpace(item.StampDocumentFileName)) { @@ -6453,6 +6453,11 @@ namespace YLErp.Web.Controllers else { path = item.StampDocumentFileName; + var extention = Path.GetExtension(path); + var innerfName = GetFileName(path, extention); + filePathList.Add(innerfName); + break;//如果是下载已用印的文件只需要下载用印后的文件就行了; + } } @@ -6466,6 +6471,7 @@ namespace YLErp.Web.Controllers { filePathList.Add(fName); } + } }