Commit c3f0d324 authored by liyuan.chen's avatar liyuan.chen

[fix]收支一览表日表

parent 2197573e
Pipeline #6496 canceled with stages
...@@ -60,7 +60,16 @@ ...@@ -60,7 +60,16 @@
(CASE (CASE
WHEN to_char(SYSDATE, 'dd') <= 20 AND WHEN to_char(SYSDATE, 'dd') <= 20 AND
to_char(t.calendar_date, 'yyyymmdd') = to_char(t.calendar_date, 'yyyymmdd') =
to_char(SYSDATE, 'yyyymm') || decode(to_char(t.calendar_date, 'd'), 1, 18, 7, 19, 20) THEN -- to_char(SYSDATE, 'yyyymm') || decode(to_char(t.calendar_date, 'd'), 1, 18, 7, 19, 20)
to_char(Sysdate, 'yyyymm') ||
decode(to_char(to_date(to_char(Sysdate, 'yyyymm') || 20,
'yyyymmdd'),
'd'),
1,
18,
7,
19,
20) THEN
--当月的二十号统计数据 --当月的二十号统计数据
NVL((SELECT SUM(nvl(c.lease_item_amount, 0)) NVL((SELECT SUM(nvl(c.lease_item_amount, 0))
FROM con_contract c FROM con_contract c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment