From a371eb47dffda8b10c8b8685139125bfa9bdf50e Mon Sep 17 00:00:00 2001 From: mahao Date: Wed, 23 Aug 2023 16:20:13 +0800 Subject: [PATCH] 1 --- .../Entities/BQ/HBPO_SA_SERVICE.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs index 049a53e3..f73ca271 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs @@ -118,6 +118,15 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase 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; });