修改查询
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5faf1a5442
commit
69151bbddb
|
@ -61,8 +61,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
throw new BusinessValidationFailedException("Id 或者VisitTaskId 必传一个");
|
throw new BusinessValidationFailedException("Id 或者VisitTaskId 必传一个");
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = await _userFeedBackRepository.WhereIf(inQuery.Id == null, t => t.VisitTaskId == inQuery.VisitTaskId)
|
var result = await _userFeedBackRepository
|
||||||
.WhereIf(inQuery.VisitTaskId == null, t => t.Id == inQuery.Id).ProjectTo<UserFeedBackView>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
.WhereIf(inQuery.Id != null, t => t.Id == inQuery.Id)
|
||||||
|
.WhereIf(inQuery.VisitTaskId != null, t => t.VisitTaskId == inQuery.VisitTaskId)
|
||||||
|
.ProjectTo<UserFeedBackView>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue