From fdf449930c906a8c7805548868aace4cd271e17e Mon Sep 17 00:00:00 2001 From: mahao Date: Fri, 22 Sep 2023 16:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=B6=E7=BB=93=E7=AE=97=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AF=BC=E5=85=A5=E6=89=A9=E5=B1=95=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=88=E5=90=8C=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs index 1625a098..2a6a2bfe 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs @@ -526,7 +526,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ .OrderByDescending(t => t.Date) .ThenByDescending(t => t.CreationTime) .FirstOrDefault(); - importPubSaDetail.Price = priceListEntity?.Price ?? 0; + if (priceListEntity != null) + { + importPubSaDetail.Price = priceListEntity.Price; + importPubSaDetail.ExtraProperties.TryAdd("ContractNo", priceListEntity.ContractNo); + } }); } #endregion