|
|
@ -294,6 +294,7 @@ class FinancePromoteController extends AdminController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$map['s.pay_status']=1;
|
|
|
|
$map['s.pay_status']=1;
|
|
|
|
$map['s.is_check']=2;
|
|
|
|
$map['s.is_check']=2;
|
|
|
|
|
|
|
|
D("Spend")->addSubsiteWhere($map,"s");
|
|
|
|
$field= "SUM(CASE WHEN pay_way > 0 THEN pay_amount ELSE 0 END) as cash_count,
|
|
|
|
$field= "SUM(CASE WHEN pay_way > 0 THEN pay_amount ELSE 0 END) as cash_count,
|
|
|
|
SUM(CASE WHEN pay_way = 0 THEN pay_amount ELSE 0 END) as balance_coin_count,
|
|
|
|
SUM(CASE WHEN pay_way = 0 THEN pay_amount ELSE 0 END) as balance_coin_count,
|
|
|
|
SUM(CASE WHEN pay_way = -1 THEN pay_amount ELSE 0 END) as bind_coin_count,
|
|
|
|
SUM(CASE WHEN pay_way = -1 THEN pay_amount ELSE 0 END) as bind_coin_count,
|
|
|
|