|
@ -405,8 +405,9 @@ namespace CK.SCP.Controller |
|
|
DataCenterContext dc = EntitiesFactory.CreateDataCenterInstance(); |
|
|
DataCenterContext dc = EntitiesFactory.CreateDataCenterInstance(); |
|
|
AppBoxContext authdb = EntitiesFactory.CreateAppBoxInstance(); |
|
|
AppBoxContext authdb = EntitiesFactory.CreateAppBoxInstance(); |
|
|
using (var scope = |
|
|
using (var scope = |
|
|
new TransactionScope(TransactionScopeOption.Suppress, new TransactionOptions() |
|
|
// 注释内容可去掉mdtc
|
|
|
//new TransactionScope(TransactionScopeOption.Required, new TransactionOptions()
|
|
|
//new TransactionScope(TransactionScopeOption.Suppress, new TransactionOptions()
|
|
|
|
|
|
new TransactionScope(TransactionScopeOption.Required, new TransactionOptions() |
|
|
{ |
|
|
{ |
|
|
IsolationLevel = System.Transactions.IsolationLevel.Serializable, |
|
|
IsolationLevel = System.Transactions.IsolationLevel.Serializable, |
|
|
Timeout = new TimeSpan(0, 20, 0) |
|
|
Timeout = new TimeSpan(0, 20, 0) |
|
@ -550,8 +551,8 @@ namespace CK.SCP.Controller |
|
|
{ |
|
|
{ |
|
|
ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); |
|
|
ScpEntities scpdb = EntitiesFactory.CreateScpInstance(); |
|
|
ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); |
|
|
ExchangeCenterContext db = EntitiesFactory.CreateExchangeCenterInstance(); |
|
|
var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled&&p.Domain== "ZZBMPT").OrderBy(p => p.UID).ToList(); |
|
|
var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled&&p.Domain== "BJBMPT").OrderBy(p => p.UID).ToList(); |
|
|
var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "ZZBMPT" && p.InterfaceType== "Price").OrderBy(p => p.UID).ToList(); |
|
|
var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "BJBMPT" && p.InterfaceType== "Price").OrderBy(p => p.UID).ToList(); |
|
|
|
|
|
|
|
|
var apiii = _list1.Count(); |
|
|
var apiii = _list1.Count(); |
|
|
if (apiii > 0) { |
|
|
if (apiii > 0) { |
|
|