join("account b" ,"a.user_code = b.user_code") ->where($whereMap) // ->where(function ($q){ // $q->whereOr( // [ // //["b.blank_time","=","null"], // ["b.blank_time","=",null], // ["b.blank_time","=",""], // ["b.blank_time","<",date("Y-m-d H:i:s")], // ] // ); // }) ->field([ "a.comment", "a.user_code as userCode", "a.business_code as businessCode", "b.nick_name as consumerName", "b.avatar_url as avator", "a.create_time as createTime", "a.url", "a.type", ]) ->page($page,$size) ->order("a.create_time desc") ->select(); } }