添加字段

master
he 2022-09-07 09:44:12 +08:00
parent 181a5c0bb7
commit 1468e4a7af
5 changed files with 15 additions and 2 deletions

View File

@ -104,7 +104,7 @@ namespace IRaCIS.Api.Controllers
}
[HttpPost, Route("ExportLaborPayment")]
[AllowAnonymous]
public FileResult ExportLaborPayment(List<Guid> paymentIds)
{

Binary file not shown.

View File

@ -45,6 +45,8 @@ namespace IRaCIS.Application.ViewModels
public decimal AdjustPaymentUSD { get; set; }
public decimal TotalPaymentUSD { get; set; }
public PaymentMethod PaymentMethod { get; set; }
}
public class PaymentCommand

View File

@ -123,7 +123,7 @@ namespace IRaCIS.Application.Services
TotalPaymentCNY = monthlyPayment.AdjustmentCNY + monthlyPayment.PaymentCNY,
TotalPaymentUSD = monthlyPayment.AdjustmentUSD + monthlyPayment.PaymentUSD,
PaymentMethod= monthlyPayment.PaymentMethod,
Code = doctor.Code,
FirstName = doctor.FirstName,
@ -1207,6 +1207,17 @@ namespace IRaCIS.Application.Services
public Stream ExportLaborPayment(List<Guid> paymentIds)
{
if (!System.IO.Directory.Exists("./file"))
{
System.IO.Directory.CreateDirectory("./file");
}
if (!System.IO.Directory.Exists("./Zip"))
{
System.IO.Directory.CreateDirectory("./Zip");
}
List<LaborPayment> laborPaymentList = GetLaborPaymentList(paymentIds);
//报酬