Browse Source

三公费用相关文档下载调整

leiy 9 months ago
parent
commit
16b1ce5b8b

+ 2 - 2
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -4158,8 +4158,8 @@ namespace OASystem.API.Controllers
                         #endregion
 
                         //文件名
-                        string strFileName = _DelegationInfo.TeamName + "出入境费用.docx";
-
+                        string strFileName =  $"{_DelegationInfo.TeamName}出入境费用{Guid.NewGuid().ToString()}.docx";
+                        AsposeHelper.removewatermark_v2180();
                         doc.Save(AppSettingsHelper.Get("WordBasePath") + "EnterExitCost/File/" + strFileName);
                         string url = AppSettingsHelper.Get("WordBaseUrl") + "Office/Word/EnterExitCost/File/" + strFileName;
                         return Ok(JsonView(true, "成功", new { Url = url }));

+ 1 - 2
OASystem/OASystem.Api/OASystem.API.csproj

@@ -22,7 +22,6 @@
   <ItemGroup>
     <PackageReference Include="AlibabaCloud.SDK.Dysmsapi20170525" Version="2.0.23" />
     <PackageReference Include="Aspose.Cells" Version="23.4.0" />
-    <PackageReference Include="Aspose.Words" Version="21.8.0" />
     <PackageReference Include="Autofac" Version="6.4.0" />
     <PackageReference Include="Autofac.Extensions.DependencyInjection" Version="8.0.0" />
     <PackageReference Include="AutoMapper" Version="12.0.0" />
@@ -49,7 +48,7 @@
     <ProjectReference Include="..\OASystem.Infrastructure\OASystem.Infrastructure.csproj" />
     <ProjectReference Include="..\OASystem.RedisRepository\OASystem.RedisRepository.csproj" />
   </ItemGroup>
-
+	
   <ItemGroup>
     <Reference Include="Aspose.Words">
       <HintPath>..\package\Aspose.Words.dll</HintPath>