From 557c2711a3e103ebc3d0492344eca9730d5e92b2 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期一, 17 二月 2025 10:47:47 +0800
Subject: [PATCH] 增加司机配送单超时处理任务,防止一直不停手机定位信息,
---
CoreCms.Net.Core/Config/SqlSugarSetup.cs | 35 +++++++++++++++++++++++++++--------
1 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/CoreCms.Net.Core/Config/SqlSugarSetup.cs b/CoreCms.Net.Core/Config/SqlSugarSetup.cs
index 4ed5472..fa42781 100644
--- a/CoreCms.Net.Core/Config/SqlSugarSetup.cs
+++ b/CoreCms.Net.Core/Config/SqlSugarSetup.cs
@@ -1,9 +1,9 @@
锘�/***********************************************************************
- * Project: CoreCms.Net *
- * Web: https://CoreCms.Net *
- * ProjectName: 鏍稿績鍐呭绠$悊绯荤粺 *
- * Author: 澶х伆鐏� *
- * Email: JianWeie@163.com *
+ * Project: baifenBinfa.Net *
+ * Web: https://baifenBinfa.com *
+ * ProjectName: 鐧惧垎鍏垫硶绠$悊绯荤粺 *
+ * Author: *
+ * Email: *
* Versions: 1.0 *
* CreateTime: 2020-02-03 22:45:34
* FileName: SqlSugarSetup
@@ -12,6 +12,7 @@
using System;
+using System.Collections.Generic;
using CoreCms.Net.Caching.SqlSugar;
using CoreCms.Net.Configuration;
using CoreCms.Net.Loging;
@@ -32,16 +33,34 @@
if (services == null) throw new ArgumentNullException(nameof(services));
//娉ㄥ叆 ORM
- SugarIocServices.AddSqlSugar(new IocConfig()
+ //SugarIocServices.AddSqlSugar(new IocConfig()
+ //{
+ // //鏁版嵁搴撹繛鎺�
+ // ConnectionString = AppSettingsConstVars.DbSqlConnection,
+ // //鍒ゆ柇鏁版嵁搴撶被鍨�
+ // DbType = AppSettingsConstVars.DbDbType == IocDbType.MySql.ToString() ? IocDbType.MySql : IocDbType.SqlServer,
+ // //鏄惁寮�鍚嚜鍔ㄥ叧闂暟鎹簱杩炴帴
+ // IsAutoCloseConnection = true
+ //});
+ SugarIocServices.AddSqlSugar(new List<IocConfig>
{
- //鏁版嵁搴撹繛鎺�
+ new IocConfig{//鏁版嵁搴撹繛鎺�
ConnectionString = AppSettingsConstVars.DbSqlConnection,
//鍒ゆ柇鏁版嵁搴撶被鍨�
DbType = AppSettingsConstVars.DbDbType == IocDbType.MySql.ToString() ? IocDbType.MySql : IocDbType.SqlServer,
//鏄惁寮�鍚嚜鍔ㄥ叧闂暟鎹簱杩炴帴
IsAutoCloseConnection = true
- });
+ },
+ new IocConfig
+ {
+ ConfigId=AppSettingsConstVars.CYDbDbID,
+ ConnectionString=AppSettingsConstVars.CyDbSqlConnection,
+ DbType = AppSettingsConstVars.CyDbDbType == IocDbType.MySql.ToString() ? IocDbType.MySql : IocDbType.SqlServer,
+ //鏄惁寮�鍚嚜鍔ㄥ叧闂暟鎹簱杩炴帴
+ IsAutoCloseConnection = true
+ }
+ });
//璁剧疆鍙傛暟
services.ConfigurationSugar(db =>
{
--
Gitblit v1.9.1