mahao 1 year ago
parent
commit
a371eb47df
  1. 9
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs

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

@ -118,6 +118,15 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA>
importHBOPSaDetails.ForEach(importHBOPSaDetail =>
{
importHBOPSaDetail.SetId(GuidGenerator.Create());
var lus = importHBOPSaDetail.LU.Split(" ").ToList();
importHBOPSaDetail.LU = lus[0].Replace(" ", "");
if (lus.Count > 1)
{
lus.RemoveAt(0);
var luAssemble = lus.Select(t => t.Replace(" ", ""));
importHBOPSaDetail.LU += luAssemble.Aggregate(" ", (current, index) => current + index);
}
importHBOPSaDetail.Version = hbpoSaImportRequestDto.Version;
});

Loading…
Cancel
Save