You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
4.2 KiB
JSON

{
"AllowedHosts": "*",
"Logging": {
"LogLevel": {
"Default": "Information", //加入Default否则log4net本地写入不了日志
"Admin.Core.Extensions.ApiResponseHandler": "Error"
},
"Debug": {
"LogLevel": {
"Default": "Warning"
}
},
"Console": {
"LogLevel": {
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
},
"Log4Net": {
"Name": "Admin.Core"
}
},
// 请配置MainDB为你想要的主库的ConnId值,并设置对应的Enabled为true
// *** 单库操作,把 MutiDBEnabled 设为false ***
// *** 多库操作,把 MutiDBEnabled 设为true其他的从库Enabled也为true **
// 具体配置看视频https://www.bilibili.com/video/BV1BJ411B7mn?p=6
"MainDB": "AUCMA_SCADA", //当前项目的主库所对应的连接字符串的Enabled必须为true
"MutiDBEnabled": true, //是否开启多库模式
"CQRSEnabled": false, //是否开启读写分离模式必须是单库模式且数据库类型一致比如都是SqlServer
"DBS": [
/*
DBType
MySql = 0,
SqlServer = 1,
Sqlite = 2,
Oracle = 3,
PostgreSQL = 4,
Dm = 5,//达梦
Kdbndp = 6,//人大金仓
*/
{
"ConnId": "AUCMA_SCADA",
"DBType": 3,
"Enabled": true,
"HitRate": 50,
//"Connection": "Data Source=localhost;Initial Catalog=Hsdb;User ID=sa;Password=sa;Integrated Security=false;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
1 year ago
"Connection": "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.100.72.20)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLCDB)));User ID=c##aucma_scada;Password=aucma;",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "AUCMA_MES",
"DBType": 3,
"Enabled": true,
"HitRate": 40,
1 year ago
"Connection": "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.100.72.20)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLCDB)));User ID=c##aucma_mes;Password=aucma;",
"ProviderName": "System.Data.SqlClient"
}
],
"QuartzNetJob": [
{
"ID": 1,
"Name": "TestTask",
"JobGroup": "DEFAULT",
"Cron": "*/1 * * * * ?",
"AssemblyName": "Admin.Core.Tasks",
1 year ago
"ClassName": "Job_SheetMetalTask_Quartz",
"Remark": "执行任务调度系统",
"RunTimes": 3881,
"BeginTime": "2023-04-23 11:08:50.000",
"EndTime": "2324-08-06 16:45:30.000",
"TriggerType": 1,
"IntervalSecond": 1,
"CycleRunTimes": 1,
1 year ago
"IsStart": false,
1 year ago
"JobParams": null,
"DelFlag": false,
"CreateBy": "admin",
"CreateTime": "2023-04-23 11:09:22.0000000",
"UpdateBy": "admin",
"UpdateTime": "2023-08-07 16:45:45.0530000"
},
{
"ID": 1,
"Name": "Job_SheetMetalTask",
"JobGroup": "DEFAULT",
"Cron": "*/1 * * * * ?",
"AssemblyName": "Admin.Core.Tasks",
"ClassName": "Job_SheetMetalTask_Quartz",
"Remark": "钣金任务调度系统",
"RunTimes": 3881,
"BeginTime": "2023-04-23 11:08:50.000",
1 year ago
"EndTime": "2023-08-06 16:45:30.000",
1 year ago
"TriggerType": 1,
"IntervalSecond": 1,
"CycleRunTimes": 1,
1 year ago
"IsStart": false,
"JobParams": null,
"DelFlag": false,
"CreateBy": "admin",
"CreateTime": "2023-04-23 11:09:22.0000000",
"UpdateBy": "admin",
"UpdateTime": "2023-08-07 16:45:45.0530000"
}
],
"Middleware": {
"QuartzNetJob": {
1 year ago
"Enabled": false
},
"Plc": {
"Enabled": true
}
},
1 year ago
"StationInfo": {
1 year ago
"StationName": "箱壳前后板生产",
1 year ago
"StationCode": "1001",
"ShellStoreCode": "XKJCK-001",
"LinerStoreCode": "NDJCK-001",
"FoamBeforeStoreCode": "PBSCK-001",
1 year ago
"ProductLineCode": "CX_01"
1 year ago
},
"PLCServer": [
{
"Id": 1,
"EquipName": "SidePanelPlc",
"PlcType": "Melsec",
"Enabled": true,
1 year ago
"IP": "10.10.91.1",
"Port": 5552
},
{
"Id": 2,
"EquipName": "BackPanelPLC",
"PlcType": "Melsec",
1 year ago
"Enabled": false,
"IP": "127.0.0.1",
"Port": 6001
}
]
}