// +---------------------------------------------------------------------- namespace app\model\system; use app\model\order\StoreOrder; use app\model\store\SystemStoreStaff; use crmeb\basic\BaseModel; use crmeb\traits\ModelTrait; use think\model; /** * Class UserRecharge * @package app\model\user */ class AwardLake extends BaseModel { use ModelTrait; /** * 数据表主键 * @var string */ protected $pk = 'id'; /** * 模型名称 * @var string */ protected $name = 'award_lake'; protected $insert = ['add_time']; protected function setAddTimeAttr() { return time(); } /** * 订单号 * @param Model $query * @param $value */ public function searchOrderIdAttr($query, $value) { $query->where('link_id', $value); } }