123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
-
-
- namespace app\model\user;
-
- use crmeb\basic\BaseModel;
- use crmeb\traits\ModelTrait;
- use think\model;
-
- /**
- * Class UserTaskFinish
- * @package app\model\user
- */
- class UserTaskFinish extends BaseModel
- {
- use ModelTrait;
-
- /**
- * 数据表主键
- * @var string
- */
- protected $pk = 'id';
-
- /**
- * 模型名称
- * @var string
- */
- protected $name = 'user_task_finish';
-
- /**
- * 用户uid
- * @param Model $query
- * @param $value
- */
- public function searchUidAttr($query, $value)
- {
- $query->where('uid', $value);
- }
-
- /**
- * 任务id
- * @param Model $query
- * @param $value
- */
- public function searchTaskIdAttr($query, $value)
- {
- $query->where('task_id', $value);
- }
-
- /**
- * 状态
- * @param Model $query
- * @param $value
- */
- public function searchStatusAttr($query, $value)
- {
- $query->where('status', $value);
- }
-
- }
|