Browse Source

修改同步WMS的bug

master
liuyunfeng 1 year ago
parent
commit
c72cec5f83
  1. 4
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/Services/WmsSyncService.cs
  2. 14
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json

4
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/Services/WmsSyncService.cs

@ -169,7 +169,7 @@ namespace WY.NewJit.Job.ConsoleWmsSync.Services
int cnt = 0; int cnt = 0;
try try
{ {
int interval = _configuration["ConfigDic:MyTimer:IntervalInSeconds"].TryToInt() ?? 100; int intervalInSeconds = _configuration["ConfigDic:MyTimer:IntervalInSeconds"].TryToInt() ?? 60;
//取待报废单据 //取待报废单据
List<string> scrapBillNumLst = await _tbBillScrapRepository.Where(itm => itm.IsExecute == false).Select(itm => itm.BillNum).ToListAsync(); List<string> scrapBillNumLst = await _tbBillScrapRepository.Where(itm => itm.IsExecute == false).Select(itm => itm.BillNum).ToListAsync();
@ -226,7 +226,7 @@ namespace WY.NewJit.Job.ConsoleWmsSync.Services
} }
else else
{ {
Thread.Sleep(interval * 1000); Thread.Sleep(intervalInSeconds * 1000);
} }
} }
catch (Exception ex) catch (Exception ex)

14
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json

@ -9,7 +9,7 @@
"TakeCountPerTime": 10, "TakeCountPerTime": 10,
"MyTimer": { "MyTimer": {
"IsStop": false, "IsStop": false,
"IntervalInSeconds": 3600 //10 "IntervalInSeconds": 10
} }
}, },
@ -17,12 +17,12 @@
//"Default": "Server=192.168.0.140;Database=NewJitPG_TEST_20230703;uid=sa;pwd=Microsoft2008;", //"Default": "Server=192.168.0.140;Database=NewJitPG_TEST_20230703;uid=sa;pwd=Microsoft2008;",
//"ABP": "Server=192.168.0.140;Database=ABP;User ID=sa;Password=Microsoft2008;", //"ABP": "Server=192.168.0.140;Database=ABP;User ID=sa;Password=Microsoft2008;",
//"WMS": "Server=192.168.0.140;Database=CPAT_WMS_TEST;User ID=sa;Password=Microsoft2008;" //"WMS": "Server=192.168.0.140;Database=CPAT_WMS_TEST;User ID=sa;Password=Microsoft2008;"
//"Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_15;uid=sa;pwd=ChangkeTec@2021;", "Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_15;uid=sa;pwd=ChangkeTec@2021;",
//"ABP": "Server=dev.ccwin-in.com,6208;Database=ABP;User ID=sa;Password=ChangkeTec@2021;", "ABP": "Server=dev.ccwin-in.com,6208;Database=ABP;User ID=sa;Password=ChangkeTec@2021;",
//"WMS": "Server=dev.ccwin-in.com,6208;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;" "WMS": "Server=dev.ccwin-in.com,6208;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;"
"Default": "Server=192.168.0.228;Database=NewJitPG_15;uid=sa;pwd=ChangkeTec@2021;", //"Default": "Server=192.168.0.228;Database=NewJitPG_15;uid=sa;pwd=ChangkeTec@2021;",
"ABP": "Server=192.168.0.228;Database=ABP;User ID=sa;Password=ChangkeTec@2021;", //"ABP": "Server=192.168.0.228;Database=ABP;User ID=sa;Password=ChangkeTec@2021;",
"WMS": "Server=192.168.0.228;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;" //"WMS": "Server=192.168.0.228;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;"
}, },

Loading…
Cancel
Save