You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
1.6 KiB

<?php
namespace App\Model\v3;
use App\Model\Model;
use Hyperf\Database\Model\Builder;
class Employees extends Model
{
protected $positions = [
1=>'董事长',
2=>'总经理',
3=>'人力资源总监',
4=>'CTO',
5=>'财务经理',
6=>'运营总监',
7=>'招商总监',
8=>'PHP研发主管',
9=>'迁江智慧商城主管',
10=>'拓展部主管',
11=>'拓展部副主管',
12=>'拓展部经理',
13=>'运维部经理',
14=>'产品主管',
15=>'策划经理',
16=>'运维部副经理',
17=>'新媒体运营',
18=>'平面设计师',
19=>'UI设计师',
20=>'前端开发工程师',
21=>'PHP研发工程师',
22=>'测试工程师',
23=>'招商经理',
24=>'服务站管理员',
25=>'运维专员',
26=>'拓展经理',
27=>'行政助理',
28=>'出纳',
29=>'骑手',
30=>'服务专员',
];
protected $table = 'lanzu_employees';
protected $casts = [
'position' => 'array'
];
protected function boot(): void
{
parent::boot();
self::addGlobalScope('normal', function (Builder $builder) {
$builder->where([$this->getTable().'.status' => 1]);
});
}
}