This commit is contained in:
parent
757035a4b0
commit
d3be22cfbd
4 changed files with 18 additions and 17 deletions
|
|
@ -148,13 +148,13 @@ namespace BMA.EHR.DisciplineComplaint.Service.Controllers
|
|||
.Where(x =>
|
||||
(!req.dateReceivedStart.HasValue || !req.dateReceivedEnd.HasValue ||
|
||||
(x.DateReceived.HasValue &&
|
||||
x.DateReceived.Value.Date >= req.dateReceivedStart.Value.Date &&
|
||||
x.DateReceived.Value.Date <= req.dateReceivedEnd.Value.Date))
|
||||
x.DateReceived.Value.Date <= req.dateReceivedStart.Value.Date &&
|
||||
x.DateReceived.Value.Date >= req.dateReceivedEnd.Value.Date))
|
||||
&&
|
||||
(!req.dateConsiderationStart.HasValue || !req.dateConsiderationEnd.HasValue ||
|
||||
(x.DateConsideration.HasValue &&
|
||||
x.DateConsideration.Value.Date >= req.dateConsiderationStart.Value.Date &&
|
||||
x.DateConsideration.Value.Date <= req.dateConsiderationEnd.Value.Date))
|
||||
x.DateConsideration.Value.Date <= req.dateConsiderationStart.Value.Date &&
|
||||
x.DateConsideration.Value.Date >= req.dateConsiderationEnd.Value.Date))
|
||||
&&
|
||||
(string.IsNullOrEmpty(req.respondentType) || x.RespondentType == req.respondentType)
|
||||
&&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue