修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6b049e68cd
commit
caf1fb6b32
|
@ -33,6 +33,7 @@ public class TrialNormalRecordService(IRepository<TrialNormalRecord> _trialNorma
|
|||
|
||||
var trialNormalRecordQueryable = _trialNormalRecordRepository
|
||||
.Where(x => x.TrialFileTypeId == inDto.TrialFileTypeId)
|
||||
.WhereIf(inDto.IsAuthorizedView != null, x => x.IsAuthorizedView == inDto.IsAuthorizedView)
|
||||
.WhereIf(inDto.FileName.IsNotNullOrEmpty(), x => x.TrialFileRecord.FileName.Contains(inDto.FileName))
|
||||
.ProjectTo<TrialNormalRecordView>(_mapper.ConfigurationProvider);
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ public class TrialTrianingRecordService(IRepository<
|
|||
|
||||
var trialTrianingRecordQueryable = _trialTrianingRecordRepository
|
||||
.Where(x => x.TrialFileTypeId == inDto.TrialFileTypeId)
|
||||
.WhereIf(inDto.IsAuthorizedView != null, x => x.IsAuthorizedView == inDto.IsAuthorizedView)
|
||||
.WhereIf(inDto.FileName.IsNotNullOrEmpty(), x => x.TrialFileRecord.FileName.Contains(inDto.FileName))
|
||||
.WhereIf(inDto.TrianingDateStartTime != null, x => x.TrianingDate >= inDto.TrianingDateStartTime)
|
||||
.WhereIf(inDto.TrianingDateEndTime != null, x => x.TrianingDate <= inDto.TrianingDateEndTime)
|
||||
|
|
Loading…
Reference in New Issue