From cae9e1ebdb3f65c75aba5f703c97a857c6e44f38 Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期一, 13 一月 2025 16:00:15 +0800
Subject: [PATCH] 阀门图表导入bug 修复

---
 Service/HStation.Service.PhartRelation.Core/05-service/00-core/DbFirstHelper.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Service/HStation.Service.PhartRelation.Core/05-service/00-core/DbFirstHelper.cs b/Service/HStation.Service.PhartRelation.Core/05-service/00-core/DbFirstHelper.cs
index 0c567a6..19d3524 100644
--- a/Service/HStation.Service.PhartRelation.Core/05-service/00-core/DbFirstHelper.cs
+++ b/Service/HStation.Service.PhartRelation.Core/05-service/00-core/DbFirstHelper.cs
@@ -13,7 +13,7 @@
             msg = string.Empty;
             try
             {
-                var connectConfig = HStation.PhartRelation.ConfigHelper.PostgreSqlConnectionConfig;
+                var connectConfig = HStation.PhartRelation.ConfigHelper.SQLiteConnectionConfig;
                 if (connectConfig == null)
                 {
                     msg = "杩炴帴閰嶇疆鍒濆鍖栧け璐�";
@@ -31,7 +31,7 @@
                         }
                         if (column.DataType == StaticConfig.CodeFirst_BigString)
                         {
-                            if (HStation.Settings.PhartRelationParasHelper.Xhs.DataBase.DbType == HStation.PhartRelation.DbType.PostgreSql)
+                            if (HStation.Settings.PhartRelationParasHelper.PhartRelation.DataBase.DbType == HStation.PhartRelation.DbType.PostgreSql)
                             {
                                 column.DataType = "character varying";
                             }
@@ -43,7 +43,7 @@
                 {
                     typeof(Yw.Entity.PhartDiagram),
                     typeof(Yw.Entity.PhartGraph),
-                    typeof(Entity.XhsPumpMainPhartMapping)
+                    typeof(Entity.PhartDiagramRelation)
                 };
 
                 using (var db = new SqlSugarClient(connectConfig))

--
Gitblit v1.9.3