|
|
|
@ -89,7 +89,7 @@ class DepositController extends ThinkController {
|
|
|
|
|
$sort = $data_order==3?'desc':'asc';
|
|
|
|
|
$map['order'] = $data_order_type.' '.$sort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
D(self::model_name)->addSubsiteWhere($map);
|
|
|
|
|
$map1=$map;
|
|
|
|
|
$map1['pay_status']=1;
|
|
|
|
|
|
|
|
|
@ -97,8 +97,12 @@ class DepositController extends ThinkController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$total=null_to_0(D(self::model_name)->where($map1)->sum('pay_amount'));
|
|
|
|
|
$ttotal=null_to_0(D(self::model_name)->where('payed_time'.total(1))->where(array('pay_status'=>1))->sum('pay_amount'));
|
|
|
|
|
$ytotal=null_to_0(D(self::model_name)->where('payed_time'.total(5))->where(array('pay_status'=>1))->sum('pay_amount'));
|
|
|
|
|
|
|
|
|
|
$otherMap = ["pay_status"=>1];
|
|
|
|
|
D(self::model_name)->addSubsiteWhere($otherMap);
|
|
|
|
|
|
|
|
|
|
$ttotal=null_to_0(D(self::model_name)->where('payed_time'.total(1))->where($otherMap)->sum('pay_amount'));
|
|
|
|
|
$ytotal=null_to_0(D(self::model_name)->where('payed_time'.total(5))->where($otherMap)->sum('pay_amount'));
|
|
|
|
|
$this->assign('total',$total);
|
|
|
|
|
$this->assign('ttotal',$ttotal);
|
|
|
|
|
$this->assign('ytotal',$ytotal);
|
|
|
|
|