3
0
Fork 0

## Opt - 首页统计订单类型

This commit is contained in:
sangelxiu1 2025-08-21 10:45:52 +08:00
parent 17b2bde043
commit 16060e0bad
1 changed files with 2 additions and 2 deletions

View File

@ -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