1 $this->where(['store_id' => self::$storeId,'status' => 10,'is_delete' => 0]) 2 ->field("user_id,imagetype") 3 ->field("GROUP_CONCAT( 4 CONCAT(file_path) 5 separator',') AS imglist") 6 ->group('user_id') 7 ->order('create_time desc') 8 ->paginate(10) 9 ->each(function($item,$key){ 10 $item['imglist'] = $this->getImageUrl($item['imglist']); 11 });
标签:10,group,示例,imglist,item,thinkphp,id From: https://www.cnblogs.com/agressor/p/17159068.html