|
|
|
@ -255,7 +255,6 @@ class PlatformController extends ThinkController
|
|
|
|
|
"pay_time"=>["between",$yearMap],
|
|
|
|
|
"pay_status"=>1
|
|
|
|
|
];
|
|
|
|
|
D("Spend")->addSubsiteWhere($map);
|
|
|
|
|
$Payamount = SM("Spend","tab_")->field("sum(IF(is_check=1,pay_amount,0)) pay_amount,IFNULL(sum(IF(is_check=2,pay_amount,0)),0) unpay_amount,FROM_UNIXTIME(`pay_time`, '%Y-%m') paytime")->where($map)->group("paytime")->select();
|
|
|
|
|
if(empty($Payamount)) return ;
|
|
|
|
|
foreach ($Payamount as $v) {
|
|
|
|
|