Browse Source

生成接口+最大请求数更改

master
钱峰 2 days ago
parent
commit
d25c991ce4
  1. 20
      北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs
  2. 3
      北京北汽/SCP/Web.config

20
北京北汽/Controller/SCP_DC_UNI_CONTROLLER.cs

@ -637,7 +637,8 @@ namespace CK.SCP.Controller
ResultObject<List<LogModel>> result = new ResultObject<List<LogModel>>(); ResultObject<List<LogModel>> result = new ResultObject<List<LogModel>>();
List<LogModel> _msglist = new List<LogModel>(); List<LogModel> _msglist = new List<LogModel>();
using (var scope = using (var scope =
new TransactionScope(TransactionScopeOption.Suppress, new TransactionOptions() new TransactionScope(TransactionScopeOption.Required, new TransactionOptions()
//new TransactionScope(TransactionScopeOption.Suppress, new TransactionOptions()
{ {
IsolationLevel = System.Transactions.IsolationLevel.Serializable, IsolationLevel = System.Transactions.IsolationLevel.Serializable,
Timeout = new TimeSpan(0, 20, 0) Timeout = new TimeSpan(0, 20, 0)
@ -647,8 +648,21 @@ 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 == "BJBMPT").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 _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "HFBMPT").OrderBy(p => p.UID).ToList();
var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "HFBMPT" && p.InterfaceType == "Price").OrderBy(p => p.UID).ToList();
// 株洲
//var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "ZZBMPT").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 _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CDBMPT").OrderBy(p => p.UID).ToList();
//var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CDBMPT" && p.InterfaceType == "Price").OrderBy(p => p.UID).ToList();
// 重庆
//var _list = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CQBMPT").OrderBy(p => p.UID).ToList();
//var _list1 = scpdb.TS_UNI_API.Where(p => p.State == (int)DataState.Enabled && p.Domain == "CQBMPT" && p.InterfaceType == "Price").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 == "BJBMPT" && p.InterfaceType == "Price").OrderBy(p => p.UID).ToList();
var apiii = _list1.Count(); var apiii = _list1.Count();
if (apiii > 0) if (apiii > 0)

3
北京北汽/SCP/Web.config

@ -67,7 +67,8 @@
<deny users="?" /> <deny users="?" />
</authorization> </authorization>
<compilation targetFramework="4.5.2" debug="true" /> <compilation targetFramework="4.5.2" debug="true" />
<httpRuntime /> <!--<httpRuntime maxRequestLength="20480" />-->
<httpRuntime maxRequestLength="20480" />
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"> <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID">
<namespaces> <namespaces>
<add namespace="System.Web.Optimization" /> <add namespace="System.Web.Optimization" />

Loading…
Cancel
Save