|
|
@@ -5,6 +5,7 @@ use app\adminapi\lists\BaseAdminDataLists;
|
|
|
use app\common\lists\ListsSearchInterface;
|
|
|
use app\common\model\goods_category\GoodsCategory;
|
|
|
use app\common\model\master_worker\MasterWorker;
|
|
|
+use app\common\model\master_worker\MasterWorkerBehalf;
|
|
|
use app\common\model\master_worker_register\MasterWorkerRegister;
|
|
|
use app\common\model\works\ServiceWorkAllocateWorkerLog;
|
|
|
use think\facade\Db;
|
|
|
@@ -57,9 +58,11 @@ class MasterWorkerServiceOrderLists extends BaseAdminDataLists implements ListsS
|
|
|
$where[] = [ 'a.id','IN',$period_ids?:[0]];
|
|
|
}
|
|
|
if (isset($this->params['is_recruiting_behalf']) && !empty($this->params['is_recruiting_behalf'])) {
|
|
|
- if ($this->params['is_recruiting_behalf'] == 1)
|
|
|
+ if ($this->params['is_recruiting_behalf'] == 1){
|
|
|
$where[] = ['a.recruiting_behalf','<>' ,""];
|
|
|
- else
|
|
|
+ $master_worker_ids = MasterWorkerBehalf::column('master_worker_id')??[];
|
|
|
+ $master_worker_ids && $where[] = ['a.id','not in' ,$master_worker_ids];
|
|
|
+ }else
|
|
|
$where[] = ['a.recruiting_behalf','=' ,""];
|
|
|
}
|
|
|
if(isset($this->params['category_ids']) && !empty($this->params['category_ids'])){
|