This commit is contained in:
wanyongkang
2020-10-23 16:48:49 +08:00
parent 1a58344e46
commit fe0f0a63b3
11 changed files with 374 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
/*
* @Author: your name
* @Date: 2020-09-30 17:32:46
* @LastEditTime: 2020-10-14 20:40:36
* @LastEditTime: 2020-10-23 16:23:12
* @LastEditors: kangkang
* @Description: In User Settings Edit
* @FilePath: /phptest/fastphp/base/Model.php
@@ -61,6 +61,15 @@ class Model extends Sql
{
return $this->field($fields)->where($where)->limit('1')->fetch();
}
/**
* @description: 获取最新一条数据
* @param {*}
* @return {*}
*/
public function getNewOne($fields = '*'){
return $this->field($fields)->order('id desc')->limit(1)->fetch();
}
/**
* @description: 更新一条数据
* @param {type}