Merge pull request #187 from dikstub-rssa/fix/anything-moko
fix (encounter): fix list
This commit is contained in:
@@ -67,7 +67,7 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.En
|
||||
|
||||
if input.StartDate != nil && input.EndDate != nil {
|
||||
tx = tx.Where(
|
||||
"DATE(\"RegisteredAt\") >= DATE(?) AND DATE(\"RegisteredAt\") <= DATE(?)",
|
||||
"DATE(\"Encounter\".\"RegisteredAt\") >= DATE(?) AND DATE(\"Encounter\".\"RegisteredAt\") <= DATE(?)",
|
||||
input.StartDate,
|
||||
input.EndDate,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user