From 51886aaf158fdbddf848608548d8639430682f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B5=87=E6=96=87=E9=BE=99?= Date: Thu, 6 Jun 2024 11:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B9=E7=94=A8=E6=8F=90=E4=BA=A4=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.Module.Core/Data/BaseModel.cs | 90 ++++++++++++++++--- .../DS.WMS.Core/Fee/Dtos/FeeRecordReq.cs | 30 ++++--- .../DS.WMS.Core/Fee/Dtos/FeeRecordRes.cs | 27 +++--- .../DS.WMS.Core/Fee/Dtos/FeeRecordSubmit.cs | 5 +- .../DS.WMS.Core/Fee/Entity/FeeModification.cs | 2 +- .../DS.WMS.Core/Fee/Entity/FeeRecord.cs | 2 +- .../Fee/Method/FeeRecordService.cs | 52 +++++------ .../Controllers/FeeRecordController.cs | 7 +- .../DS.WMS.FeeApi/Logs/internal-nlog.txt | 42 +++++++++ 9 files changed, 182 insertions(+), 75 deletions(-) diff --git a/ds-wms-service/DS.Module.Core/Data/BaseModel.cs b/ds-wms-service/DS.Module.Core/Data/BaseModel.cs index 94866365..6ce11182 100644 --- a/ds-wms-service/DS.Module.Core/Data/BaseModel.cs +++ b/ds-wms-service/DS.Module.Core/Data/BaseModel.cs @@ -1,73 +1,74 @@ using System.ComponentModel; +using SqlSugar; namespace DS.Module.Core.Data; /// /// 实体类基类 /// -public abstract class BaseModel: IDeleted +public abstract class BaseModel : IDeleted { /// /// 主键ID /// [Description("主键ID")] - [SqlSugar.SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键ID")] + [SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键ID")] public TKey Id { get; set; } /// /// 备注 /// [Description("备注")] - [SqlSugar.SugarColumn(IsNullable = true,ColumnDescription = "备注", Length = 200)] + [SugarColumn(IsNullable = true, ColumnDescription = "备注", Length = 200)] public string Note { get; set; } /// /// 创建时间 /// [Description("创建时间")] - [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")] + [SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } /// /// 创建人 /// [Description("创建人")] - [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建人")] + [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建人")] public long CreateBy { get; set; } /// /// 修改人 /// [Description("修改人")] - [SqlSugar.SugarColumn(IsNullable = true, ColumnDescription = "修改人")] + [SugarColumn(IsNullable = true, ColumnDescription = "修改人")] public long UpdateBy { get; set; } /// /// 更新时间 /// [Description("更新时间")] - [SqlSugar.SugarColumn(IsNullable = true,ColumnDescription = "更新时间")] + [SugarColumn(IsNullable = true, ColumnDescription = "更新时间")] public DateTime UpdateTime { get; set; } /// /// 删除 /// [Description("删除")] - [SqlSugar.SugarColumn(ColumnDescription = "是否删除")] + [SugarColumn(ColumnDescription = "是否删除")] public bool Deleted { get; set; } = false; /// /// 删除时间 /// [Description("删除时间")] - [SqlSugar.SugarColumn(IsNullable = true,ColumnDescription = "删除时间")] + [SugarColumn(IsNullable = true, ColumnDescription = "删除时间")] public DateTime DeleteTime { get; set; } /// /// 删除人 /// [Description("删除人")] - [SqlSugar.SugarColumn(IsNullable = true, ColumnDescription = "删除人")] + [SugarColumn(IsNullable = true, ColumnDescription = "删除人")] public long DeleteBy { get; set; } // /// @@ -75,4 +76,73 @@ public abstract class BaseModel: IDeleted // /// // [SqlSugar.SugarColumn(ColumnDescription = "租户Id", IsOnlyIgnoreUpdate = true)] // public long TenantId { get; set; } = 0; +} + +/// +/// 实体类基类 +/// +public abstract class BaseModelV2 : IDeleted +{ + /// + /// 主键ID + /// + [Description("主键ID")] + [SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键ID")] + public TKey Id { get; set; } + + /// + /// 备注 + /// + [Description("备注")] + [SugarColumn(IsNullable = true, ColumnDescription = "备注", Length = 200)] + public string? Note { get; set; } + + /// + /// 创建时间 + /// + [Description("创建时间")] + [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")] + public DateTime CreateTime { get; set; } + + /// + /// 创建人 + /// + [Description("创建人")] + [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建人")] + public long CreateBy { get; set; } + + /// + /// 修改人 + /// + [Description("修改人")] + [SugarColumn(IsNullable = true, ColumnDescription = "修改人")] + public long? UpdateBy { get; set; } + + /// + /// 更新时间 + /// + [Description("更新时间")] + [SugarColumn(IsNullable = true, ColumnDescription = "更新时间")] + public DateTime? UpdateTime { get; set; } + + /// + /// 删除 + /// + [Description("删除")] + [SugarColumn(ColumnDescription = "是否删除")] + public bool Deleted { get; set; } + + /// + /// 删除时间 + /// + [Description("删除时间")] + [SugarColumn(IsNullable = true, ColumnDescription = "删除时间")] + public DateTime? DeleteTime { get; set; } + + /// + /// 删除人 + /// + [Description("删除人")] + [SugarColumn(IsNullable = true, ColumnDescription = "删除人")] + public long? DeleteBy { get; set; } } \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordReq.cs b/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordReq.cs index 48cdcc45..1b8216e1 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordReq.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordReq.cs @@ -1,4 +1,5 @@ using DS.Module.Core; +using DS.WMS.Core.Op.Entity; using FluentValidation; namespace DS.WMS.Core.Fee.Dtos; @@ -17,6 +18,9 @@ public class FeeRecordReq /// 业务Id /// public long BusinessId { get; set; } + + public BusinessType BusinessType { get; set; } + /// /// 收付类型(收、付) 1应收 2 应付 /// @@ -101,29 +105,29 @@ public class FeeRecordReq /// /// Desc:佣金比率 /// - public decimal? CommissionRate { get; set; } = 0; + public decimal? CommissionRate { get; set; } /// /// Desc:结算金额 /// - public decimal? SettlementAmount { get; set; } = 0; + public decimal? SettlementAmount { get; set; } /// /// Desc:开票金额 /// - public decimal? InvoiceAmount { get; set; } = 0; + public decimal? InvoiceAmount { get; set; } /// /// Desc:申请金额 /// - public decimal? OrderAmount { get; set; } = 0; + public decimal? OrderAmount { get; set; } /// /// Desc:申请开票金额 /// - public decimal? OrderInvoiceAmount { get; set; } = 0; + public decimal? OrderInvoiceAmount { get; set; } /// /// 是否机密费用 /// - public bool? IsOpen { get; set; } = false; + public bool? IsOpen { get; set; } /// /// 对帐编号 /// @@ -131,23 +135,23 @@ public class FeeRecordReq /// /// 是否对帐 /// - public bool IsDebit { get; set; } = false; + public bool IsDebit { get; set; } /// /// 是否垫付费用 /// - public bool? IsAdvancedPay { get; set; } = false; + public bool? IsAdvancedPay { get; set; } /// /// 是否禁开发票 /// - public bool? IsInvoice { get; set; } = false; + public bool? IsInvoice { get; set; } /// /// 是否销售订舱 /// - public bool? IsCrmOrderFee { get; set; } = false; + public bool? IsCrmOrderFee { get; set; } /// /// 排序 /// - public int? OrderNo { get; set; } = 100; + public int? OrderNo { get; set; } /// /// 费用状态 @@ -280,9 +284,7 @@ public class FeeRecordReq /// /// 备注 /// - public string Note { get; set; } = ""; - - + public string Note { get; set; } } /// diff --git a/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordRes.cs b/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordRes.cs index 955a88b3..ed068419 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordRes.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordRes.cs @@ -1,4 +1,5 @@ using DS.Module.Core; +using DS.WMS.Core.Op.Entity; using Masuit.Tools.Systems; namespace DS.WMS.Core.Fee.Dtos; @@ -18,6 +19,8 @@ public class FeeRecordRes /// public long BusinessId { get; set; } + public BusinessType BusinessType { get; set; } + /// /// 收付类型(收、付) 1应收 2 应付 /// @@ -103,16 +106,16 @@ public class FeeRecordRes /// /// Desc:佣金比率 /// - public decimal? CommissionRate { get; set; } = 0; + public decimal? CommissionRate { get; set; } /// /// Desc:结算金额 /// - public decimal? SettlementAmount { get; set; } = 0; + public decimal? SettlementAmount { get; set; } /// /// Desc:开票金额 /// - public decimal? InvoiceAmount { get; set; } = 0; + public decimal? InvoiceAmount { get; set; } /// /// 未开票金额 @@ -122,11 +125,11 @@ public class FeeRecordRes /// /// Desc:申请金额 /// - public decimal? OrderAmount { get; set; } = 0; + public decimal? OrderAmount { get; set; } /// /// Desc:申请开票金额 /// - public decimal? OrderInvoiceAmount { get; set; } = 0; + public decimal? OrderInvoiceAmount { get; set; } public long? SubmitBy { get; set; } /// @@ -156,7 +159,7 @@ public class FeeRecordRes /// /// 是否机密费用 /// - public bool? IsOpen { get; set; } = false; + public bool? IsOpen { get; set; } /// /// 对帐编号 /// @@ -164,23 +167,23 @@ public class FeeRecordRes /// /// 是否对帐 /// - public bool IsDebit { get; set; } = false; + public bool IsDebit { get; set; } /// /// 是否垫付费用 /// - public bool? IsAdvancedPay { get; set; } = false; + public bool? IsAdvancedPay { get; set; } /// /// 是否禁开发票 /// - public bool? IsInvoice { get; set; } = false; + public bool? IsInvoice { get; set; } /// /// 是否销售订舱 /// - public bool? IsCrmOrderFee { get; set; } = false; + public bool? IsCrmOrderFee { get; set; } /// /// 排序 /// - public int? OrderNo { get; set; } = 100; + public int? OrderNo { get; set; } /// /// 费用状态 @@ -325,7 +328,7 @@ public class FeeRecordRes /// /// 备注 /// - public string Note { get; set; } = ""; + public string Note { get; set; } /// /// 创建人 diff --git a/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordSubmit.cs b/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordSubmit.cs index 27ca166d..750fa1ab 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordSubmit.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Dtos/FeeRecordSubmit.cs @@ -1,4 +1,5 @@ -using DS.WMS.Core.Op.Entity; +using DS.WMS.Core.Fee.Entity; +using DS.WMS.Core.Op.Entity; namespace DS.WMS.Core.Fee.Dtos { @@ -14,7 +15,7 @@ namespace DS.WMS.Core.Fee.Dtos /// /// 要提交的费用项 /// - public List Items { get; set; } + public List Items { get; set; } } public class FeeRecordByTemplate diff --git a/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeModification.cs b/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeModification.cs index 66d89f43..ce9ce4e0 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeModification.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeModification.cs @@ -6,7 +6,7 @@ using SqlSugar; namespace DS.WMS.Core.Fee.Entity { [SugarTable("fee_modification", TableDescription = "费用修改记录")] - public class FeeModification : BaseModel + public class FeeModification : BaseModelV2 { /// /// 费用记录ID diff --git a/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeRecord.cs b/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeRecord.cs index b7e7e5b8..f915f0f5 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeRecord.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Entity/FeeRecord.cs @@ -10,7 +10,7 @@ namespace DS.WMS.Core.Fee.Entity /// 费用记录 /// [SugarTable("fee_record", TableDescription = "费用记录")] - public class FeeRecord : BaseModel + public class FeeRecord : BaseModelV2 { /// /// 业务Id diff --git a/ds-wms-service/DS.WMS.Core/Fee/Method/FeeRecordService.cs b/ds-wms-service/DS.WMS.Core/Fee/Method/FeeRecordService.cs index 539dbd33..5bf4f892 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Method/FeeRecordService.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Method/FeeRecordService.cs @@ -175,41 +175,31 @@ namespace DS.WMS.Core.Fee.Method //若计价货币单位不等于默认货币则尝试获取最新汇率 await FetchExchangeRateAsync(tenantDb, items); - List list = new List(items.Count()); - foreach (var item in items) - { - item.FeeStatus = FeeStatus.Entering; - - if (item.Id == 0) - { - item.BusinessId = first.BusinessId; - item.BusinessType = first.BusinessType; - await tenantDb.Insertable(item).ExecuteCommandAsync(); - } - else - { - await tenantDb.Updateable(item).IgnoreColumns(x => new - { - x.FeeStatus, - x.CreateBy, - x.CreateTime, - x.BusinessId, - x.BusinessType, - x.DeleteBy, - x.Deleted, - x.DeleteTime, - x.SubmitDate, - x.SubmitBy - }).ExecuteCommandAsync(); - } + var createList = items.Where(x => x.Id == 0).ToList(); + await tenantDb.Insertable(createList).ExecuteCommandAsync(); - list.Add(item); - } + var updateList = items.Where(x => x.Id > 0).ToList(); + await tenantDb.Updateable(updateList).IgnoreColumns(x => new + { + x.FeeStatus, + x.BusinessId, + x.BusinessType, + x.CreateBy, + x.CreateTime, + x.DeleteBy, + x.Deleted, + x.DeleteTime, + x.SubmitDate, + x.SubmitBy, + x.AuditBy, + x.AuditOperator, + x.AuditDate + }).ExecuteCommandAsync(); await tenantDb.Ado.CommitTranAsync(); - var list2 = list.Select(x => x.Adapt()).ToList(); - return DataResult.Successed("保存成功", list2, MultiLanguageConst.DataUpdateSuccess); + var list = createList.Union(updateList).Select(x => x.Adapt()); + return DataResult.Successed("保存成功", list, MultiLanguageConst.DataUpdateSuccess); } catch (Exception ex) { diff --git a/ds-wms-service/DS.WMS.FeeApi/Controllers/FeeRecordController.cs b/ds-wms-service/DS.WMS.FeeApi/Controllers/FeeRecordController.cs index af0c019c..1e4a0b1a 100644 --- a/ds-wms-service/DS.WMS.FeeApi/Controllers/FeeRecordController.cs +++ b/ds-wms-service/DS.WMS.FeeApi/Controllers/FeeRecordController.cs @@ -5,7 +5,6 @@ using DS.WMS.Core.Fee.Dtos; using DS.WMS.Core.Fee.Entity; using DS.WMS.Core.Fee.Interface; using DS.WMS.Core.Op.Entity; -using Mapster; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.FeeApi.Controllers @@ -72,13 +71,13 @@ namespace DS.WMS.FeeApi.Controllers if (recordSubmit.Items.Any(x => x.FeeStatus != FeeStatus.Entering && x.FeeStatus != FeeStatus.RejectSubmission)) return DataResult.Failed("只能提交状态为‘录入’或‘驳回提交’的费用", MultiLanguageConst.IllegalRequest); - var list = recordSubmit.Items.Select(x => x.Adapt()); - foreach (var item in list) + foreach (var item in recordSubmit.Items) { item.BusinessId = recordSubmit.BusinessId; item.BusinessType = recordSubmit.BusinessType; + item.FeeStatus = FeeStatus.Entering; } - return await _feeService.SaveAsync(list); + return await _feeService.SaveAsync(recordSubmit.Items); } /// diff --git a/ds-wms-service/DS.WMS.FeeApi/Logs/internal-nlog.txt b/ds-wms-service/DS.WMS.FeeApi/Logs/internal-nlog.txt index 5dc02d29..bca7c9ed 100644 --- a/ds-wms-service/DS.WMS.FeeApi/Logs/internal-nlog.txt +++ b/ds-wms-service/DS.WMS.FeeApi/Logs/internal-nlog.txt @@ -1055,3 +1055,45 @@ 2024-06-05 13:49:01.3461 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Source\Repos\DS8\ds-wms-service\DS.WMS.FeeApi\bin\Debug\net8.0\nlog.config 2024-06-05 13:49:01.3530 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile 2024-06-05 13:49:01.3530 Info Configuration initialized. +2024-06-06 11:15:36.1961 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-06 11:15:36.2251 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-06 11:15:36.2294 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-06 11:15:36.2294 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-06 11:15:36.2466 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Source\Repos\DS8\ds-wms-service\DS.WMS.FeeApi\bin\Debug\net8.0\nlog.config +2024-06-06 11:15:36.2466 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-06 11:15:36.2466 Info Configuration initialized. +2024-06-06 11:20:12.4679 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-06 11:20:12.5323 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-06 11:20:12.5323 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-06 11:20:12.5593 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-06 11:20:12.5732 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Source\Repos\DS8\ds-wms-service\DS.WMS.FeeApi\bin\Debug\net8.0\nlog.config +2024-06-06 11:20:12.5732 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-06 11:20:12.5902 Info Configuration initialized. +2024-06-06 11:22:49.6422 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-06 11:22:49.6772 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-06 11:22:49.6808 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-06 11:22:49.6808 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-06 11:22:49.6978 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Source\Repos\DS8\ds-wms-service\DS.WMS.FeeApi\bin\Debug\net8.0\nlog.config +2024-06-06 11:22:49.6978 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-06 11:22:49.6978 Info Configuration initialized. +2024-06-06 11:25:57.2510 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-06 11:25:57.2818 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-06 11:25:57.2818 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-06 11:25:57.2952 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-06 11:25:57.2952 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Source\Repos\DS8\ds-wms-service\DS.WMS.FeeApi\bin\Debug\net8.0\nlog.config +2024-06-06 11:25:57.2952 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-06 11:25:57.3107 Info Configuration initialized. +2024-06-06 11:28:13.3136 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-06 11:28:13.3704 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-06 11:28:13.3704 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-06 11:28:13.3850 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-06 11:28:13.3850 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Source\Repos\DS8\ds-wms-service\DS.WMS.FeeApi\bin\Debug\net8.0\nlog.config +2024-06-06 11:28:13.3850 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-06 11:28:13.3850 Info Configuration initialized. +2024-06-06 11:37:02.2037 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-06 11:37:02.2311 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-06 11:37:02.2311 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-06 11:37:02.2441 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-06 11:37:02.2441 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Source\Repos\DS8\ds-wms-service\DS.WMS.FeeApi\bin\Debug\net8.0\nlog.config +2024-06-06 11:37:02.2441 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-06 11:37:02.2441 Info Configuration initialized.