叫我老三 Service::M()->db->table("ssc_order")->select('ifnull(sum(ball1),0) as ball1,ifnull(sum(ball2),0) as ball2,ifnull(sum(ball3),0) as ball3,ifnull(sum(ball4),0) as ball4,ifnull(sum(ball5),0) as ball5,ifnull(sum(ball6),0) as ball6,ifnull(sum(ball7),0) as ball7,ifnull(sum(ball8),0) as ball8,ifnull(sum(ball9),0) as ball9,ifnull(sum(ball10),0) as ball10')->groupBy('number')->get()->getRowArray(); 可以这样做 谢谢呀 虽说还是那么麻烦 但是也是一种解决方法
@叫我老三:解决了 谢谢 Service::M()-db-table(ssc_order)-select(ifnull(sum(ball1),0) as ball1,ifnull(sum(ball2),0) as ball2,ifnull(sum(ball3),0) as ball3,ifnull(sum(ball4),0) as ball4,ifnull(sum(ball5),0) as ball5,ifnull(sum(ball6),0) as ball6,ifnull(sum(ball7),0) as ball7,ifnull(sum(ball8),0) as ball8,ifnull(sum(ball9),0) as ball9,ifnull(sum(ball10),0) as ball10)-groupBy(number)-get()-getRowArray()
这是报错信息