fix: 合同结算单结束时间加一天减一毫秒,取当天的结束时间 (#711)

Co-authored-by: lyx <2027667395@qq.com>
Reviewed-on: daoyoucloud/tachycode#711
Co-authored-by: hello@lv <2256334253@qq.com>
Co-committed-by: hello@lv <2256334253@qq.com>
This commit is contained in:
hello@lv 2024-04-15 17:53:14 +08:00 committed by baijingfeng
parent 2020643371
commit 0e97825b13
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@hera/plugin-rental": patch
---
合同结算单结束时间取当天的结束时间

View File

@ -247,7 +247,7 @@ SELECT
records r
WHERE
r.contract_id = COALESCE(main.id, c.id)
AND s.end_date >= r.date
AND (s.end_date + INTERVAL '1 day - 1 millisecond') >= r.date
) AS records,
(
SELECT