修改一版

master
he 2022-09-29 09:22:32 +08:00
parent 5e50ad1d7e
commit f17bc98345
2 changed files with 3 additions and 6 deletions

View File

@ -1229,10 +1229,7 @@ namespace IRaCIS.Application.Services
}
if (!System.IO.Directory.Exists("./file/Summary"))
{
System.IO.Directory.CreateDirectory("./file/Summary");
}
if (!System.IO.Directory.Exists("./Zip"))
{
@ -1254,7 +1251,7 @@ namespace IRaCIS.Application.Services
var deletepaths =new List<string>(){
"./file/Direct","./file/云账户" ,"./file/Summary","./file"
"./file/Direct","./file/云账户" ,"./file"
};
@ -1367,7 +1364,7 @@ namespace IRaCIS.Application.Services
ExchangeRate = _exchangeRateService.GetExchangeRateByMonth(inDto.YearMonth)
};
MiniExcel.SaveAsByTemplate($"./file/Summary/Payroll Summary_{inDto.YearMonth}.xlsx", summaryPaymentPath, summaryPaymentData);
MiniExcel.SaveAsByTemplate($"./file/Payroll Summary_{inDto.YearMonth}.xlsx", summaryPaymentPath, summaryPaymentData);
ZipFile.CreateFromDirectory("./file", "Zip/Payroll.zip");