From f6bec0455723569d14f9e73da34456b0c5e1ff21 Mon Sep 17 00:00:00 2001
From: wxd <123@qq.com>
Date: Thu, 9 May 2024 22:15:54 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E6=97=A5=E5=BF=97=EF=BC=8C?=
 =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=BC=82=E5=B8=B8=E4=B8=AD=E9=97=B4=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 .../PatientRegisters/GetPeisRecordListDto.cs  | 10 +++++++
 .../PeisHttpApiHostModule.cs                  | 28 +++++++++----------
 src/Shentun.Peis.HttpApi.Host/Program.cs      |  3 +-
 3 files changed, 26 insertions(+), 15 deletions(-)
diff --git a/src/Shentun.Peis.Application.Contracts/PatientRegisters/GetPeisRecordListDto.cs b/src/Shentun.Peis.Application.Contracts/PatientRegisters/GetPeisRecordListDto.cs
index 3d849d5..9bc5b31 100644
--- a/src/Shentun.Peis.Application.Contracts/PatientRegisters/GetPeisRecordListDto.cs
+++ b/src/Shentun.Peis.Application.Contracts/PatientRegisters/GetPeisRecordListDto.cs
@@ -43,6 +43,16 @@ namespace Shentun.Peis.PatientRegisters
         /// 
         public char? IsFilterPreRegistration { get; set; } = 'N';
 
+        /// 
+        /// 项目审核状态
+        /// 
+        public char? AsbitemIsAudit { get; set; }
+
+        /// 
+        /// 项目检查状态
+        /// 
+        public char? AsbitemCompleteFlag { get; set; }
+
         /// 
         /// 组合项目ID 集合
         /// 
diff --git a/src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs b/src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs
index ff4797c..1413fd2 100644
--- a/src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs
+++ b/src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs
@@ -140,16 +140,16 @@ public class PeisHttpApiHostModule : AbpModule
         //});
 
         #region 临时去掉日志
-        //关闭审计日志
-        Configure(options =>
-        {
-            options.IsEnabled = false;
-        });
-        //关闭安全日志
-        Configure(options =>
-        {
-            options.IsEnabled = false;
-        });
+        ////关闭审计日志
+        //Configure(options =>
+        //{
+        //    options.IsEnabled = false;
+        //});
+        ////关闭安全日志
+        //Configure(options =>
+        //{
+        //    options.IsEnabled = false;
+        //});
         #endregion
 
         //防伪令牌
@@ -457,14 +457,14 @@ public class PeisHttpApiHostModule : AbpModule
             config.UsePostgreSqlStorage(configuration.GetConnectionString("Default"));
         });
     }
-    public override  async void OnApplicationInitialization(ApplicationInitializationContext context)
+    public override async void OnApplicationInitialization(ApplicationInitializationContext context)
     {
         var app = context.GetApplicationBuilder();
         var env = context.GetEnvironment();
         var configuration = context.GetConfiguration();
 
         //请求错误提示配置
-        app.UseErrorHandling();
+        // app.UseErrorHandling();
 
         if (env.IsDevelopment())
         {
@@ -559,7 +559,7 @@ public class PeisHttpApiHostModule : AbpModule
         app.UseConfiguredEndpoints();
 
         //任务计划
-       await StartScheduler(context);
+        await StartScheduler(context);
     }
 
     private async Task StartScheduler(ApplicationInitializationContext context)
@@ -575,7 +575,7 @@ public class PeisHttpApiHostModule : AbpModule
         {
             foreach (var thirdInterfaceDto in thirdInterFaceForHostOutDto.Data)
             {
-                if(thirdInterfaceDto.IsActive != 'Y')
+                if (thirdInterfaceDto.IsActive != 'Y')
                 {
                     continue;
                 }
diff --git a/src/Shentun.Peis.HttpApi.Host/Program.cs b/src/Shentun.Peis.HttpApi.Host/Program.cs
index 2e593f9..92445f4 100644
--- a/src/Shentun.Peis.HttpApi.Host/Program.cs
+++ b/src/Shentun.Peis.HttpApi.Host/Program.cs
@@ -21,7 +21,8 @@ public class Program
        .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
        .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
        .Enrich.FromLogContext()
-       .WriteTo.Async(c => c.File("Logs/logs.txt", rollingInterval: RollingInterval.Day))
+       .WriteTo.Async(c => c.File("Logs/logs.txt", LogEventLevel.Information, rollingInterval: RollingInterval.Day))
+       .WriteTo.Async(c => c.File("Logs/error.txt", LogEventLevel.Error, rollingInterval: RollingInterval.Day))
        .WriteTo.Async(c => c.Console())
        .CreateLogger();