$moneyloglist = MoneyLog::where(['user_id' => $this->auth->id]) ->where($where) ->where("FROM_UNIXTIME(createtime,'%Y-%m')='".$time."'") ->order('id desc') ->limit($offset, $num) ->select();
语法:FROM_UNIXTIME(unix_timestamp,format)
$moneyloglist = MoneyLog::where(['user_id' => $this->auth->id]) ->where($where) ->where("FROM_UNIXTIME(createtime,'%Y-%m')='".$time."'") ->order('id desc') ->limit($offset, $num) ->select();
语法:FROM_UNIXTIME(unix_timestamp,format)