u
This commit is contained in:
1 parent
173eb2dd37
commit
26ff2381b7
17 files changed
+596
-305
No files matched your search
@@ -51,14 +51,22 @@ func ListFinanceRecords(c fiber.Ctx) error {
|
||||
endTime = &t
|
||||
}
|
||||
|
||||
categoryId := dto.CategoryId
|
||||
var categoryId int64 = -1
|
||||
if dto.CategoryId != nil {
|
||||
categoryId = *dto.CategoryId
|
||||
}
|
||||
|
||||
var categoryType int16 = -1
|
||||
if dto.CategoryType != nil {
|
||||
categoryType = *dto.CategoryType
|
||||
}
|
||||
|
||||
records, err := db.Queries.ListFinanceRecords(c.Context(), repo.ListFinanceRecordsParams{
|
||||
SpaceID: spaceID,
|
||||
RecordTime: pgtypex.TimePtrToPgDate(startTime),
|
||||
RecordTime_2: pgtypex.TimePtrToPgDate(endTime),
|
||||
Column4: categoryId,
|
||||
Column5: dto.CategoryType,
|
||||
Column5: categoryType,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user