|
|
@ -93,13 +93,15 @@ class SpendController extends ThinkController
|
|
|
|
$order = ' pay_time desc ';
|
|
|
|
$order = ' pay_time desc ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (intval(($endTime + 1) - $startTime) / (24 * 3600) <= 31) {
|
|
|
|
// if (intval(($endTime + 1) - $startTime) / (24 * 3600) <= 31) {
|
|
|
|
|
|
|
|
// $map1 = $map;
|
|
|
|
|
|
|
|
// $map1['pay_status'] = 1;
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// $map = '1 = 2';
|
|
|
|
|
|
|
|
// $map1 = $map;
|
|
|
|
|
|
|
|
// }
|
|
|
|
$map1 = $map;
|
|
|
|
$map1 = $map;
|
|
|
|
$map1['pay_status'] = 1;
|
|
|
|
$map1['pay_status'] = 1;
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$map = '1 = 2';
|
|
|
|
|
|
|
|
$map1 = $map;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$total = null_to_0(D(self::model_name)->where($map1)->sum('pay_amount'));
|
|
|
|
$total = null_to_0(D(self::model_name)->where($map1)->sum('pay_amount'));
|
|
|
|
$ttotal = null_to_0(D(self::model_name)->where('pay_time' . total(1))->where(array('pay_status' => 1))->sum('pay_amount'));
|
|
|
|
$ttotal = null_to_0(D(self::model_name)->where('pay_time' . total(1))->where(array('pay_status' => 1))->sum('pay_amount'));
|
|
|
|
$ytotal = null_to_0(D(self::model_name)->where('pay_time' . total(5))->where(array('pay_status' => 1))->sum('pay_amount'));
|
|
|
|
$ytotal = null_to_0(D(self::model_name)->where('pay_time' . total(5))->where(array('pay_status' => 1))->sum('pay_amount'));
|
|
|
|