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);