Browse Source

更新

master
学 赵 1 year ago
parent
commit
49e69224d7
  1. 9
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

9
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -360,7 +360,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
var dtos = ObjectMapper.Map<List<INVOICE_GRP>, List<INVOICE_GRP_DTO>>(entitys); var dtos = ObjectMapper.Map<List<INVOICE_GRP>, List<INVOICE_GRP_DTO>>(entitys);
foreach (var itm in dtos) foreach (var itm in dtos)
{ {
if(DateTime.Parse(itm.CreationTime) == DateTime.MinValue) if(itm.CreationTime.Contains("0001"))
{ {
itm.CreationTime = string.Empty; itm.CreationTime = string.Empty;
} }
@ -642,8 +642,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
IExporter _excel = new ExcelExporter(); IExporter _excel = new ExcelExporter();
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true).ConfigureAwait(false); var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true).ConfigureAwait(false);
var dtoDetails = ObjectMapper.Map<List<INVOICE_GRP>, List<INVOICE_GRP_EXP_DTO>>(entities); var dtoDetails = ObjectMapper.Map<List<INVOICE_GRP>, List<INVOICE_GRP_EXP_DTO>>(entities);
foreach (var itm in dtoDetails) foreach (var itm in dtoDetails)
{ {
if (DateTime.Parse(itm.CreationTime)==DateTime.MinValue)
{
itm.CreationTime = string.Empty;
}
itm.TaxAmtDiff = itm.TaxAmt + itm.TaxDiff; itm.TaxAmtDiff = itm.TaxAmt + itm.TaxDiff;
} }
var classDisplayName = typeof(INVOICE_GRP_DTO).GetCustomAttribute<DisplayAttribute>()?.Name ?? typeof(INVOICE_GRP_DTO).Name; var classDisplayName = typeof(INVOICE_GRP_DTO).GetCustomAttribute<DisplayAttribute>()?.Name ?? typeof(INVOICE_GRP_DTO).Name;

Loading…
Cancel
Save