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