From 40adfd193ad70364b73371d2f665efc4c668c2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=BE=8E=E8=8D=A3?= <10755671+mei-rong-he@user.noreply.gitee.com> Date: Thu, 2 Apr 2026 12:01:52 +0800 Subject: [PATCH] 1 --- .../Controllers/Api/BasicLibraryController.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/BasicLibraryController.cs b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/BasicLibraryController.cs index 28b2871..4377943 100644 --- a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/BasicLibraryController.cs +++ b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/BasicLibraryController.cs @@ -1529,11 +1529,8 @@ namespace APT.SK.WebApi.Controllers public JsonActionResult> JTOrderEntities([FromBody] KeywordFilter filter) { var result = new JsonActionResult>(); - //string strConn = OPTenantDBConnService.GetConnByORGID(new Guid(FilePathHead.JY.GetDescription())); - string strConn = "Server=124.117.209.78;Database=mh_jy_head;uid=sa;pwd=JySafe@2025*;"; - //string dbName = "mh_jy_head"; - //// 2. 传入构造函数 - //using var strConn = new CrossDbContext(strConn); + string strConn = OPTenantDBConnService.GetConnByORGID(new Guid(FilePathHead.JY.GetDescription())); + //string strConn = "Server=124.117.209.78;Database=mh_jy_head;uid=sa;pwd=JySafe@2025*;"; using (var context = new MigrationContext(strConn)) { Expression> expression = e => !e.IS_DELETED; @@ -2372,8 +2369,8 @@ namespace APT.SK.WebApi.Controllers var jtcheckContLaws = new List(); var jtcheckContBas = new List(); var jtCheckContHids = new List(); - //string strConn = OPTenantDBConnService.GetConnByORGID(new Guid(FilePathHead.JY.GetDescription())); - string strConn = "Server=124.117.209.78;Database=mh_jy_head;uid=sa;pwd=JySafe@2025*;"; + string strConn = OPTenantDBConnService.GetConnByORGID(new Guid(FilePathHead.JY.GetDescription())); + //string strConn = "Server=124.117.209.78;Database=mh_jy_head;uid=sa;pwd=JySafe@2025*;"; using (var context = new MigrationContext(strConn)) { Expression> expression = e => !e.IS_DELETED && ids.Contains(e.ID);