Fix Bug กรองวันที่ #1630, #1631
Some checks failed
release-dev / release-dev (push) Failing after 10s
Some checks failed
release-dev / release-dev (push) Failing after 10s
This commit is contained in:
parent
3384c520d7
commit
757035a4b0
2 changed files with 9 additions and 6 deletions
|
|
@ -142,15 +142,17 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers
|
|||
{
|
||||
data_search = data_search
|
||||
.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))
|
||||
&&
|
||||
//วันที่สอบสวน
|
||||
(!req.disciplinaryDateStart.HasValue || !req.disciplinaryDateEnd.HasValue ||
|
||||
(x.DateConsideration.HasValue &&
|
||||
x.DateConsideration.Value.Date >= req.disciplinaryDateStart.Value.Date &&
|
||||
x.DateConsideration.Value.Date <= req.disciplinaryDateEnd.Value.Date))
|
||||
(x.DisciplinaryDateStart.HasValue && x.DisciplinaryDateEnd.HasValue &&
|
||||
x.DisciplinaryDateStart.Value.Date >= req.disciplinaryDateStart.Value.Date &&
|
||||
x.DisciplinaryDateEnd.Value.Date <= req.disciplinaryDateEnd.Value.Date))
|
||||
&&
|
||||
(string.IsNullOrEmpty(req.respondentType) || x.RespondentType == req.respondentType)
|
||||
&&
|
||||
|
|
@ -173,6 +175,7 @@ namespace BMA.EHR.DisciplineDisciplinary.Service.Controllers
|
|||
DisciplinaryFaultLevel = x.DisciplinaryFaultLevel,//ระดับโทษความผิด
|
||||
DisciplinaryCaseFault = x.DisciplinaryCaseFault,//กรณีความผิด
|
||||
Status = x.Status,//สถานะหรือผลการสอบสวน
|
||||
DateReceived = x.DateReceived, //วันที่รับเรื่อง
|
||||
CreatedAt = x.CreatedAt,//วันที่สร้างเรื่องสอบสวน
|
||||
DisciplinaryDateStart = x.DisciplinaryDateStart, //วันที่เริ่มการสอบสวน
|
||||
DisciplinaryDateEnd = x.DisciplinaryDateEnd, //วันที่สิ้นสุดการสอบสวน
|
||||
|
|
|
|||
|
|
@ -169,9 +169,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
|
|||
data_search = data_search
|
||||
.Where(x =>
|
||||
(!req.disciplinaryDateStart.HasValue || !req.disciplinaryDateEnd.HasValue ||
|
||||
(x.DateReceived.HasValue &&
|
||||
x.DateReceived.Value.Date >= req.disciplinaryDateStart.Value.Date &&
|
||||
x.DateReceived.Value.Date <= req.disciplinaryDateEnd.Value.Date))
|
||||
(x.DisciplinaryDateStart.HasValue && x.DisciplinaryDateEnd.HasValue &&
|
||||
x.DisciplinaryDateStart.Value.Date >= req.disciplinaryDateStart.Value.Date &&
|
||||
x.DisciplinaryDateEnd.Value.Date <= req.disciplinaryDateEnd.Value.Date))
|
||||
&&
|
||||
(string.IsNullOrEmpty(req.respondentType) || x.RespondentType == req.respondentType)
|
||||
&&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue