u
This commit is contained in:
1 parent
173eb2dd37
commit
26ff2381b7
17 files changed
+596
-305
No files matched your search
@@ -9,9 +9,9 @@ FROM finance_record fr
|
||||
WHERE
|
||||
fr.space_id = $1
|
||||
AND fr.record_time >= $2
|
||||
AND fr.record_time < $3
|
||||
AND fr.category_id = COALESCE(NULLIF($4::bigint, 0), fr.category_id)
|
||||
AND fcs.type = COALESCE(NULLIF($5::smallint, 0), fcs.type)
|
||||
AND fr.record_time <= $3
|
||||
AND ($4::bigint = -1 OR fr.category_id = $4)
|
||||
AND ($5::smallint = -1 OR fcs.type = $5)
|
||||
ORDER BY
|
||||
fr.record_time DESC,
|
||||
fr.create_time DESC;
|
||||
|
||||
Reference in new issue
Block a user