master
chenzhi 5 years ago
parent 3b70468942
commit 06395bcb9d

@ -31,7 +31,7 @@ class SpendCountSetController extends \Think\Controller
die("init error");
}
$nowdate = date('Y')."-".(date('m') > 9 ? date('m') : "0".date('m'));
$nowdate = "2017-10";
// $nowdate = "2017-10";
//获取所有的月份 pay_time
$res = M("spend",'tab_')->field("FROM_UNIXTIME(pay_time,'%Y-%m') AS pay_time")->buildSql();
$res = M()->table($res.' a')->group('pay_time')->select();

Loading…
Cancel
Save