## 新零售统计订单类型调整(307);

This commit is contained in:
cabbage 2025-07-22 11:21:25 +08:00
parent 7b04a3c92e
commit 9ba58f66ac
1 changed files with 6 additions and 6 deletions

View File

@ -109,7 +109,7 @@
from sa_order so from sa_order so
where so.del_flag = 0 where so.del_flag = 0
and so.order_status = 1 and so.order_status = 1
and so.order_type in (1, 2, 24, 25) and so.order_type in (41, 42)
and to_char(so.pay_time, 'yyyy-mm-dd') = and to_char(so.pay_time, 'yyyy-mm-dd') =
to_char(sysdate, 'yyyy-mm-dd') to_char(sysdate, 'yyyy-mm-dd')
) a ) a
@ -119,7 +119,7 @@
from sa_order so from sa_order so
where so.del_flag = 0 where so.del_flag = 0
and so.order_status = 1 and so.order_status = 1
and so.order_type in (3, 26, 10) and so.order_type in (43, 44)
and to_char(so.pay_time, 'yyyy-mm-dd') = and to_char(so.pay_time, 'yyyy-mm-dd') =
to_char(sysdate, 'yyyy-mm-dd') to_char(sysdate, 'yyyy-mm-dd')
) b on 1 = 1 ) b on 1 = 1
@ -131,7 +131,7 @@
from sa_order so from sa_order so
where so.del_flag = 0 where so.del_flag = 0
and so.order_status = 1 and so.order_status = 1
and so.order_type in (1, 2, 24, 25) and so.order_type in (41, 42)
and to_char(so.pay_time, 'yyyy-mm-dd') = and to_char(so.pay_time, 'yyyy-mm-dd') =
to_char(sysdate - 1, 'yyyy-mm-dd') to_char(sysdate - 1, 'yyyy-mm-dd')
) a ) a
@ -141,7 +141,7 @@
from sa_order so from sa_order so
where so.del_flag = 0 where so.del_flag = 0
and so.order_status = 1 and so.order_status = 1
and so.order_type in (3, 26, 10) and so.order_type in (43, 44)
and to_char(so.pay_time, 'yyyy-mm-dd') = and to_char(so.pay_time, 'yyyy-mm-dd') =
to_char(sysdate - 1, 'yyyy-mm-dd') to_char(sysdate - 1, 'yyyy-mm-dd')
) b on 1 = 1 ) b on 1 = 1
@ -156,7 +156,7 @@
from sa_order so from sa_order so
where so.del_flag = 0 where so.del_flag = 0
and so.order_status = 1 and so.order_status = 1
and so.order_type in (1, 2, 24, 25) and so.order_type in (41, 42)
and to_char(so.pay_time, 'yyyy-mm') = to_char(sysdate, 'yyyy-mm') and to_char(so.pay_time, 'yyyy-mm') = to_char(sysdate, 'yyyy-mm')
) a ) a
left join ( left join (
@ -165,7 +165,7 @@
from sa_order so from sa_order so
where so.del_flag = 0 where so.del_flag = 0
and so.order_status = 1 and so.order_status = 1
and so.order_type in (3, 26, 10) and so.order_type in (43, 44)
and to_char(so.pay_time, 'yyyy-mm') = and to_char(so.pay_time, 'yyyy-mm') =
to_char(sysdate, 'yyyy-mm') to_char(sysdate, 'yyyy-mm')
) b on 1 = 1 ) b on 1 = 1