Commit 240f092c authored by liudong1993's avatar liudong1993

1

parent 74e56461
......@@ -442,8 +442,9 @@ SELECT sum(case when t2.OrderStatus <>2 then t2.Money else 0 end) as Money
,sum(case when t2.OrderStatus <>2 then t2.BackMoney else 0 end) as BackMoney
,sum(case when t2.OrderStatus <>2 then t2.PayMoney else 0 end) as PayMoney
,sum(case when t2.OrderStatus <>2 then t2.GuestCount else 0 end) as NorNumber
,sum(case when t2.OrderStatus =2 then t2.GuestCount else 0 end) as CancelNum
select t.* from(
,sum(case when t2.OrderStatus =2 then t2.GuestCount else 0 end) as CancelNum
from(
select t.*
FROM RB_Ticket_Order t
left JOIN {(Config.IsOnline ? "uat_reborn_dmc" : "reborn_dmc")}.rb_appoint_op aop on aop.OrderId=t.OrderId and aop.ResourceType=8
WHERE {where} group by t.OrderId)t2 ";
......
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