|
|
@ -24,20 +24,17 @@ namespace WY.NewJit.MsgCheck |
|
|
|
private readonly LogRemindDomainService _logRemindDomainService; |
|
|
|
public static List<BillNumberRecord> _billNumberRecordCaches= new List<BillNumberRecord>() ;//记录内存
|
|
|
|
|
|
|
|
private readonly IObjectMapper _objectMapper; |
|
|
|
|
|
|
|
public BillNumberRecordDomainService( |
|
|
|
IRepository<BillNumberRecord, Guid> billNumberRepository, |
|
|
|
ILogger<M100CheckDomainService> logger, |
|
|
|
LogRemindDomainService logRemindDomainService, |
|
|
|
IRepository<WaitPrint, Guid> waitPrintRepository, |
|
|
|
IObjectMapper objectMapper) |
|
|
|
IRepository<WaitPrint, Guid> waitPrintRepository) |
|
|
|
{ |
|
|
|
_billNumberRepository = billNumberRepository; |
|
|
|
_logger = logger; |
|
|
|
_logRemindDomainService = logRemindDomainService; |
|
|
|
_waitPrintRepository = waitPrintRepository; |
|
|
|
_objectMapper = objectMapper; |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 获取和更新记录和内存
|
|
|
@ -66,10 +63,7 @@ namespace WY.NewJit.MsgCheck |
|
|
|
else |
|
|
|
{ |
|
|
|
_billNumberRecordCaches.Clear(); |
|
|
|
//_billNumberRecordCaches = await _billNumberRepository.GetListAsync();
|
|
|
|
var aa = await _billNumberRepository.GetListAsync(); |
|
|
|
_billNumberRecordCaches = _objectMapper.Map<List<BillNumberRecord>, List<BillNumberRecord>>(aa); |
|
|
|
|
|
|
|
_billNumberRecordCaches = await _billNumberRepository.GetListAsync(); |
|
|
|
foreach (var item in _billNumberRecordCaches) |
|
|
|
{ |
|
|
|
|
|
|
|