xf 1 éve
szülő
commit
fd27ad96c6

+ 2 - 5
src/Hotline.Repository.SqlSugar/Extensions/SqlSugarStartupExtensions.cs

@@ -237,6 +237,8 @@ namespace Hotline.Repository.SqlSugar.Extensions
 
                     Log.Warning("slow query ==> fileName: {fileName}, fileLine: {fileLine}, FirstMethodName: {FirstMethodName}",
                         fileName, fileLine, FirstMethodName);
+                    Log.Warning(UtilMethods.GetNativeSql(sql, p));
+                    Log.Warning("slow query totalSeconds: {sec}", db.Ado.SqlExecutionTime.TotalSeconds);
                 }
                 //相当于EF的 PrintToMiniProfiler
             };
@@ -334,9 +336,4 @@ namespace Hotline.Repository.SqlSugar.Extensions
 
         #endregion
     }
-
-    public class SqlSugarConst
-    {
-        public static string PrimaryKey = "Id";
-    }
 }

+ 0 - 34
src/Hotline/CallCenter/Tels/ETelStatus.cs

@@ -1,34 +0,0 @@
-using System.ComponentModel;
-
-namespace Hotline.CallCenter.Tels;
-
-/// <summary>
-/// 分机状态
-/// </summary>
-public enum ETelStatus
-{
-    /// <summary>
-    /// 空闲可用
-    /// </summary>
-    [Description("空闲")]
-    Ready = 0,
-    /// <summary>
-    /// 振铃、回铃或通话中
-    /// </summary>
-    [Description("繁忙")]
-    Active=1,
-    /// <summary>
-    /// 模拟分机摘机后等待拨号以及拨号过程中
-    /// </summary>
-    Progress=2,
-    /// <summary>
-    /// 分机离线
-    /// </summary>
-    [Description("离线")]
-    Offline=3,
-    /// <summary>
-    /// 模拟分机听催挂音时的状态
-    /// </summary>
-    Offhook=4,
-
-}

+ 0 - 14
src/Hotline/Hotline.csproj

@@ -6,20 +6,6 @@
     <Nullable>enable</Nullable>
   </PropertyGroup>
 
-  <ItemGroup>
-    <Compile Remove="FileStorage\**" />
-    <EmbeddedResource Remove="FileStorage\**" />
-    <None Remove="FileStorage\**" />
-  </ItemGroup>
-
-  <ItemGroup>
-    <Compile Remove="CallCenter\Tels\ETelStatus.cs" />
-  </ItemGroup>
-
-  <ItemGroup>
-    <None Include="..\..\.editorconfig" Link=".editorconfig" />
-  </ItemGroup>
-
   <ItemGroup>
     <PackageReference Include="Mapster" Version="7.3.0" />
     <PackageReference Include="MediatR" Version="12.0.1" />

+ 1 - 1
src/XF.Domain.Repository/XF.Domain.Repository.csproj

@@ -9,7 +9,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="SqlSugarCore" Version="5.1.4.94" />
+    <PackageReference Include="SqlSugarCore" Version="5.1.4.102" />
     <PackageReference Include="XF.Utility.SequentialId" Version="1.0.2" />
   </ItemGroup>