$stockList = DB::table('gt_table')->select('stockCode')->where('stockDate',$tradeDate)->whereRaw('closePrice > fiveAverage')->groupBy('stockCode')->get();整体的是写在一起的