如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
$start = date("Y-m-d H:i:s",mktime(0, 0 , 0,date("m"),date("d")-date("w")+1,date("Y"))); $end = date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-date("w")+7,date("Y"))); // dump($start); // dump($end); // dump($a); // die; $timeList = db('user') ->field('u.*,e.*,e.create_time etime,count(e.user_id) count') ->alias('u') ->join('fly_evaluate e','u.id = e.user_id') // ->order(' desc') ->where('e.create_time','between',[$start,$end]) ->group('e.user_id') ->limit(12) ->order('count(e.user_id) desc') ->select();