|
@ -119,6 +119,8 @@ namespace WY.NewJit.Job.ConsoleApp.Messages |
|
|
/// 跨进程全局配置领域服务
|
|
|
/// 跨进程全局配置领域服务
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private readonly GlobalSettingsDomainService _globalSettingsDomainService; |
|
|
private readonly GlobalSettingsDomainService _globalSettingsDomainService; |
|
|
|
|
|
|
|
|
|
|
|
private readonly BillNumberRecordDomainService _billNumRecDomainSrv; |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#region 缓存
|
|
|
#region 缓存
|
|
@ -232,7 +234,8 @@ namespace WY.NewJit.Job.ConsoleApp.Messages |
|
|
DicDomainService dicDomainService, |
|
|
DicDomainService dicDomainService, |
|
|
IGuidGenerator guidGenerator, |
|
|
IGuidGenerator guidGenerator, |
|
|
GlobalSettingsDomainService globalSettingsDomainService, |
|
|
GlobalSettingsDomainService globalSettingsDomainService, |
|
|
IRepository<MessageReceiveArchive, Guid> messageReceiveArchiveRepository |
|
|
IRepository<MessageReceiveArchive, Guid> messageReceiveArchiveRepository, |
|
|
|
|
|
BillNumberRecordDomainService billNumRecDomainSrv |
|
|
//CacheManagerDomainService cacheManagerDomainService
|
|
|
//CacheManagerDomainService cacheManagerDomainService
|
|
|
) |
|
|
) |
|
|
{ |
|
|
{ |
|
@ -255,6 +258,7 @@ namespace WY.NewJit.Job.ConsoleApp.Messages |
|
|
_globalSettingsDomainService = globalSettingsDomainService; |
|
|
_globalSettingsDomainService = globalSettingsDomainService; |
|
|
_messageReceiveArchiveRepository = messageReceiveArchiveRepository; |
|
|
_messageReceiveArchiveRepository = messageReceiveArchiveRepository; |
|
|
//_cacheManagerDomainService = cacheManagerDomainService;
|
|
|
//_cacheManagerDomainService = cacheManagerDomainService;
|
|
|
|
|
|
_billNumRecDomainSrv = billNumRecDomainSrv; |
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
@ -274,6 +278,8 @@ namespace WY.NewJit.Job.ConsoleApp.Messages |
|
|
string fileName = ""; |
|
|
string fileName = ""; |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
|
|
|
//_billNumRecDomainSrv.CleanBillNumberRecordCache();
|
|
|
|
|
|
_billNumRecDomainSrv.GetOrUpDateBillNumberRecordCache(false).GetAwaiter().GetResult(); |
|
|
//PathConfigInfo cfgInfo = ReadConfig();
|
|
|
//PathConfigInfo cfgInfo = ReadConfig();
|
|
|
|
|
|
|
|
|
int countPerTime = _configuration["ConfigDic:TransferFileCountPerTime"].TryToInt() ?? 10; |
|
|
int countPerTime = _configuration["ConfigDic:TransferFileCountPerTime"].TryToInt() ?? 10; |
|
@ -287,6 +293,7 @@ namespace WY.NewJit.Job.ConsoleApp.Messages |
|
|
fileName = msgReceiveObj.MessageFileName; |
|
|
fileName = msgReceiveObj.MessageFileName; |
|
|
ParseOneEdiFile(msgReceiveObj); |
|
|
ParseOneEdiFile(msgReceiveObj); |
|
|
} |
|
|
} |
|
|
|
|
|
_billNumRecDomainSrv.GetOrUpDateBillNumberRecordCache(true).GetAwaiter().GetResult(); |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|
{ |
|
|
{ |
|
|