This commit is contained in:
wyw 2025-10-24 12:03:19 +08:00
parent fdf4bd38d6
commit 301464d213
2 changed files with 8 additions and 7 deletions

View File

@ -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();
}

View File

@ -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 "";
}
}