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 {
|
if input.StartDate != nil && input.EndDate != nil {
|
||||||
tx = tx.Where(
|
tx = tx.Where(
|
||||||
"DATE(\"RegisteredAt\") >= DATE(?) AND DATE(\"RegisteredAt\") <= DATE(?)",
|
"DATE(\"Encounter\".\"RegisteredAt\") >= DATE(?) AND DATE(\"Encounter\".\"RegisteredAt\") <= DATE(?)",
|
||||||
input.StartDate,
|
input.StartDate,
|
||||||
input.EndDate,
|
input.EndDate,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user