2134
This commit is contained in:
parent
fdf4bd38d6
commit
301464d213
@ -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();
|
||||
}
|
||||
|
||||
@ -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 "";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user