From ce1292c9cf37195b6abd2699dfc5d6cb3e143c9b Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期日, 12 四月 2026 23:38:19 +0800
Subject: [PATCH] feat(MES): 添加MES接口相关实体和DTO JS扩展文件至JSX格式并更新配置
---
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json | 172 ++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 128 insertions(+), 44 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
index 51f24bd..bf7384c 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
@@ -1,48 +1,132 @@
{
- "urls": "http://*:9291", //web鏈嶅姟绔彛锛屽鏋滅敤IIS閮ㄧ讲锛屾妸杩欎釜鍘绘帀
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft.AspNetCore": "Warning"
- }
- },
- "dics": "deviceType,devicePlcType,jobAssembly,jobClassName,deviceStatus,taskType,taskState,inOutType,dispatchId",
- "AllowedHosts": "*",
- "ConnectionStringsEncryption": false,
- "MainDB": "DB_WIDESEA", //褰撳墠椤圭洰鐨勪富搴擄紝鎵�瀵瑰簲鐨勮繛鎺ュ瓧绗︿覆鐨凟nabled蹇呴』涓簍rue
- //1.MySql
- //2.SqlServer
- //3.Sqlite
- //4.Oracle
- //5.PostgreSQL
- "DBType": "SqlServer",
- //杩炴帴瀛楃涓�
- "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWCS_TEST_Log;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
+ "urls": "http://*:9292", //web鏈嶅姟绔彛锛屽鏋滅敤IIS閮ㄧ讲锛屾妸杩欎釜鍘绘帀
+ "Serilog": {
+ "MinimumLevel": {
+ "Default": "Information",
+ "Override": {
+ "Microsoft": "Information",
+ "Microsoft.AspNetCore": "Warning",
+ "Microsoft.AspNetCore.Routing": "Warning",
+ "Microsoft.AspNetCore.Mvc": "Warning",
+ "Microsoft.AspNetCore.Mvc.Infrastructure": "Warning",
+ "Microsoft.AspNetCore.Mvc.Filters": "Warning",
+ "Microsoft.AspNetCore.Mvc.ModelBinding": "Warning",
+ "Microsoft.EntityFrameworkCore": "Warning"
+ }
+ }
+ },
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "dics": "deviceType,devicePlcType,jobAssembly,jobClassName,deviceStatus,taskType,taskState,inOutType,dispatchId",
+ "AllowedHosts": "*",
+ "ConnectionStringsEncryption": false,
+ "MainDB": "DB_WIDESEA", //褰撳墠椤圭洰鐨勪富搴擄紝鎵�瀵瑰簲鐨勮繛鎺ュ瓧绗︿覆鐨凟nabled蹇呴』涓簍rue
+ //1.MySql
+ //2.SqlServer
+ //3.Sqlite
+ //4.Oracle
+ //5.PostgreSQL
+ "DBType": "SqlServer",
+ //杩炴帴瀛楃涓�
+ "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWCS_ShanMei;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
+ //"ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWCS_ShanMei;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
- //璺ㄥ煙
- "Cors": {
- "PolicyName": "CorsIpAccess", //绛栫暐鍚嶇О
- "EnableAllIPs": false, //褰撲负true鏃讹紝寮�鏀炬墍鏈塈P鍧囧彲璁块棶銆�
- // 鏀寔澶氫釜鍩熷悕绔彛锛屾敞鎰忕鍙e彿鍚庝笉瑕佸甫/鏂滄潌锛氭瘮濡俵ocalhost:8000/锛屾槸閿欑殑
- // 娉ㄦ剰锛宧ttp://127.0.0.1:1818 鍜� http://localhost:1818 鏄笉涓�鏍风殑
- "IPs": "http://127.0.0.1:8080,http://localhost:8080,http://localhost:8081"
+ //璺ㄥ煙
+ "Cors": {
+ "PolicyName": "CorsIpAccess", //绛栫暐鍚嶇О
+ "EnableAllIPs": false, //褰撲负true鏃讹紝寮�鏀炬墍鏈塈P鍧囧彲璁块棶銆�
+ // 鏀寔澶氫釜鍩熷悕绔彛锛屾敞鎰忕鍙e彿鍚庝笉瑕佸甫/鏂滄潌锛氭瘮濡俵ocalhost:8000/锛屾槸閿欑殑
+ // 娉ㄦ剰锛宧ttp://127.0.0.1:1818 鍜� http://localhost:1818 鏄笉涓�鏍风殑
+ "IPs": "http://127.0.0.1:8080,http://localhost:8080,http://localhost:8081"
+ },
+ "LocalLogConfig": {
+ "LogLevel": "DEBUG", //鏃ュ織绾у埆 DEBUG,INFO,WARN,ERROR,FATAL
+ "LogFileSize": 10, //鍗曚釜鏃ュ織鏂囦欢澶у皬锛屽崟浣峂B
+ "LogFileCount": 300, //鏃ュ織鏂囦欢鏁伴噺
+ "EnableConsoleOutput": false, //鏄惁杈撳嚭鍒版帶鍒跺彴
+ "EnableFloderByLevel": true //鏄惁鎸夋棩蹇楃骇鍒敓鎴愪笉鍚岀殑鏂囦欢澶�
+ },
+ "ApiLogIgnore": "", //璁板綍鏃ュ織鏃讹紝蹇界暐鐨凙PI鍚嶇О锛屽涓敤閫楀彿鍒嗛殧锛岄厤缃殑涓嶈褰曞埌鏁版嵁搴撲腑
+ "ApiName": "WIDESEAWCS",
+ "ExpMinutes": 120,
+ "QuartzJobAutoStart": true,
+ "DBSeedEnable": false,
+ "QuartzDBSeedEnable": false,
+ "LogDeubgEnable": false, //鏄惁璁板綍璋冭瘯鏃ュ織
+ "PrintSql": false, //鎵撳嵃SQL璇彞
+ "LogAOPEnable": false, //鏄惁璁板綍AOP鏃ュ織
+ "WebSocketEnable": true, //鏄惁寮�鍚疻ebSocket鏈嶅姟
+ "WebSocketPort": 9296, //WebSocket鏈嶅姟绔彛
+ "SocketServer": {
+ "Enabled": true, //鏄惁鍚敤Socket鏈嶅姟鍣�
+ "Port": 2000, //鐩戝惉绔彛
+ "IpAddress": "0.0.0.0", //鐩戝惉鍦板潃锛�
+ "Backlog": 1000, //鏈�澶ц繛鎺ユ暟
+ "EncodingName": "utf-8", //缂栫爜鏂瑰紡
+ "AutoDetectEncoding": true, //鏄惁鑷姩妫�娴嬬紪鐮�
+ "IdleTimeoutSeconds": 0, //绌洪棽瓒呮椂鏃堕棿锛屽崟浣嶇锛�0琛ㄧず涓嶈秴鏃�
+ "EnableHeartbeat": true, //鏄惁鍚敤蹇冭烦妫�娴�
+ "LogFilePath": "socketserver.log" //鏃ュ織鏂囦欢璺緞
+ },
+ "CheckPalletPositions": [
+ {
+ "Code": "11068",
+ "WarehouseId": 1
+ }
+ ],
+ "RobotTaskAddressRules": {
+ "AddressMap": { // 鎺ュ彛绫诲瀷鍦板潃鏄犲皠
+ "11001": "Change",
+ "11010": "Change",
+ "10010": "Change",
+ "10030": "Change",
+ "11068": "Group",
+ "110681": "Split"
},
- "LocalLogConfig": {
- "LogLevel": "DEBUG", //鏃ュ織绾у埆 DEBUG,INFO,WARN,ERROR,FATAL
- "LogFileSize": 10, //鍗曚釜鏃ュ織鏂囦欢澶у皬锛屽崟浣峂B
- "LogFileCount": 300, //鏃ュ織鏂囦欢鏁伴噺
- "EnableConsoleOutput": false, //鏄惁杈撳嚭鍒版帶鍒跺彴
- "EnableFloderByLevel": true //鏄惁鎸夋棩蹇楃骇鍒敓鎴愪笉鍚岀殑鏂囦欢澶�
+ "AddressRoadwayMap": { // 瀵瑰簲璁惧鍦板潃鏄犲皠
+ "11001": "鎹㈢洏鏈烘鎵�",
+ "11010": "鎹㈢洏鏈烘鎵�",
+ "11068": "娉ㄦ恫缁勭洏鏈烘鎵�",
+ "10010": "鎹㈢洏鏈烘鎵�",
+ "10030": "鎹㈢洏鏈烘鎵�"
},
- "ApiLogIgnore": "", //璁板綍鏃ュ織鏃讹紝蹇界暐鐨凙PI鍚嶇О锛屽涓敤閫楀彿鍒嗛殧锛岄厤缃殑涓嶈褰曞埌鏁版嵁搴撲腑
- "ApiName": "WIDESEAWCS",
- "ExpMinutes": 120,
- "QuartzJobAutoStart": true,
- "DBSeedEnable": false,
- "QuartzDBSeedEnable": false,
- "LogDeubgEnable": false, //鏄惁璁板綍璋冭瘯鏃ュ織
- "PrintSql": true, //鎵撳嵃SQL璇彞
- "LogAOPEnable": true, //鏄惁璁板綍AOP鏃ュ織
- "WebSocketEnable": true, //鏄惁寮�鍚疻ebSocket鏈嶅姟
- "WebSocketPort": 9296 //WebSocket鏈嶅姟绔彛
-}
+ "AddressSourceLineNoMap": { // 瀵瑰簲杈撻�佺嚎缂栧彿鍦板潃鏄犲皠
+ "11001": "10010",
+ "11010": "10030",
+ "10010": "11001",
+ "10030": "11010"
+ }
+ },
+ "RedisConfig": {
+ "Enabled": true, //鏄惁鍚敤Redis锛宖alse鏃朵粎浣跨敤鍐呭瓨缂撳瓨
+ "ConnectionString": "127.0.0.1:6379,password=P@ssw0rd,defaultDatabase=0,connectTimeout=5000,abortConnect=false", //Redis杩炴帴瀛楃涓�
+ "InstanceName": "WIDESEAWCS:", //瀹炰緥鍚嶇О锛岀敤浜庡尯鍒嗕笉鍚屽簲鐢�
+ "DefaultDatabase": 0, //榛樿鏁版嵁搴撶储寮曪紙0-15锛�
+ "EnableSentinel": false, //鏄惁鍚敤鍝ㄥ叺妯″紡
+ "SentinelMasterName": "mymaster", //鍝ㄥ叺涓昏妭鐐瑰悕绉�
+ "SentinelEndpoints": [], //鍝ㄥ叺鑺傜偣鍦板潃鍒楄〃锛屽 ["sentinel1:26379","sentinel2:26379"]
+ "PoolSize": 10, //杩炴帴姹犲ぇ灏�
+ "ConnectRetry": 3, //杩炴帴澶辫触閲嶈瘯娆℃暟
+ "SerializerType": "Newtonsoft", //搴忓垪鍖栨柟寮忥細Newtonsoft
+ "FallbackToMemory": true, //Redis涓嶅彲鐢ㄦ椂鏄惁闄嶇骇鍒板唴瀛樼紦瀛�
+ "KeyPrefix": "wcs:", //鍏ㄥ眬Key鍓嶇紑锛岀敤浜庨殧绂讳笉鍚岀郴缁熺殑鏁版嵁
+ "EnableL1Cache": false, //鏄惁鍚敤L1鍐呭瓨缂撳瓨灞傘�傜鐢ㄥ悗鍙娇鐢≧edis锛岄�傜敤浜庨渶瑕佸閮ㄤ慨鏀筊edis鏁版嵁鐨勫満鏅�
+ "EnableAutoSync": false, //鏄惁鍚敤Redis鍒板唴瀛樼紦瀛樼殑鑷姩鍚屾
+ "SyncIntervalSeconds": 30, //鑷姩鍚屾闂撮殧鏃堕棿锛堢锛夛紝寤鸿30-60绉�
+ "SyncBatchSize": 1000, //鍚屾鏃跺崟娆℃壒閲忚幏鍙栫殑Redis key鏁伴噺涓婇檺
+ "SyncExcludePrefixes": [ "wcs:Code:SocketDevices:" ], //鎺掗櫎璁惧鐘舵�乲ey涓嶅弬涓庤嚜鍔ㄥ悓姝ワ紙闃叉瑕嗙洊鏈湴淇敼锛�
+ "Monitoring": {
+ "Enabled": false, //鏄惁鍚敤鐩戞帶
+ "SlowLogThresholdMs": 100, //鎱㈡煡璇㈤槇鍊硷紙姣锛�
+ "HealthCheckIntervalSeconds": 30 //鍋ュ悍妫�鏌ラ棿闅旓紙绉掞級
+ },
+ "Eviction": {
+ "DefaultExpirationSeconds": 3600, //榛樿缂撳瓨杩囨湡鏃堕棿锛堢锛�
+ "MaxMemoryPolicy": "allkeys-lru" //鍐呭瓨娣樻卑绛栫暐锛歛llkeys-lru, volatile-lru, noeviction绛�
+ }
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.3