这家伙有点懒,还没写个性签名!
你直接使用 MAX()会把你的select 字段替换掉, 你要查多个字段, 就把 max()写在查询字段里面去
->select(['time','uptime', 'maxtime'=>'MAX(date)',]) ->where("id=:id", [ 'id' => $id['_id'] ]) ->asArray() ->one();