diff --git a/APT.BaseData.Services/Services/FM/FMNotificationTaskService.cs b/APT.BaseData.Services/Services/FM/FMNotificationTaskService.cs index 83c9bc7..cb7d554 100644 --- a/APT.BaseData.Services/Services/FM/FMNotificationTaskService.cs +++ b/APT.BaseData.Services/Services/FM/FMNotificationTaskService.cs @@ -1503,15 +1503,16 @@ namespace APT.BaseData.Services.Services.FM try { - using (var context = new MigrationContext("")) + string conn = "Server=121.41.2.71;Database=mh_jy_head;uid=sa;pwd=mhsafe!2021;"; + using (var context = new MigrationContext(conn)) { if (isLastDeal && taskLast != null) { - this.UpdateEntityByConn(taskLast, ""); + this.UpdateEntityByConn(taskLast, conn); } if (taskNext != null) { - this.AddEntityByConn(taskNext, ""); + this.AddEntityByConn(taskNext, conn); } context.SaveChanges(); } diff --git a/APT.BaseData.Services/Services/OP/OPTenantDBConnService.cs b/APT.BaseData.Services/Services/OP/OPTenantDBConnService.cs index 1916e1b..19e6042 100644 --- a/APT.BaseData.Services/Services/OP/OPTenantDBConnService.cs +++ b/APT.BaseData.Services/Services/OP/OPTenantDBConnService.cs @@ -276,10 +276,10 @@ namespace APT.BaseData.Services.Services.OP } #endregion - if (dicORGCONN != null && dicORGCONN.Count > 0 && dicORGCONN.ContainsKey(ORG_ID)) - { - return dicORGCONN[ORG_ID]; - } + //if (dicORGCONN != null && dicORGCONN.Count > 0 && dicORGCONN.ContainsKey(ORG_ID)) + //{ + // return dicORGCONN[ORG_ID]; + //} return ""; } }