|
@@ -3,12 +3,12 @@
|
|
|
namespace app\admin\model;
|
|
|
|
|
|
use think\Model;
|
|
|
-
|
|
|
+use traits\model\SoftDelete;
|
|
|
|
|
|
class Voterecord extends Model
|
|
|
{
|
|
|
|
|
|
-
|
|
|
+ use SoftDelete;
|
|
|
|
|
|
|
|
|
|
|
@@ -21,7 +21,7 @@ class Voterecord extends Model
|
|
|
// 定义时间戳字段名
|
|
|
protected $createTime = 'createtime';
|
|
|
protected $updateTime = false;
|
|
|
- protected $deleteTime = false;
|
|
|
+ protected $deleteTime = 'deletetime';
|
|
|
|
|
|
// 追加属性
|
|
|
protected $append = [
|