refactor(work): remove BaseAuth enterprise wechat dao dependency
Made-with: Cursor
This commit is contained in:
@@ -8,7 +8,7 @@ namespace app\dao\work;
|
||||
|
||||
use app\dao\BaseDao;
|
||||
use app\model\work\WorkMember;
|
||||
use crmeb\basic\BaseAuth;
|
||||
use app\services\dao\SearchConditionBuilder;
|
||||
use crmeb\basic\BaseModel;
|
||||
use crmeb\traits\SearchDaoTrait;
|
||||
|
||||
@@ -37,7 +37,7 @@ class WorkMemberDao extends BaseDao
|
||||
*/
|
||||
public function searchWhere(array $where, bool $authWhere = true)
|
||||
{
|
||||
[$with] = app()->make(BaseAuth::class)->________(array_keys($where), $this->setModel());
|
||||
[$with] = app()->make(SearchConditionBuilder::class)->build(array_keys($where), $this->setModel());
|
||||
return $this->getModel()->withSearch($with, $where)
|
||||
->when(!empty($where['name']), function ($query) use ($where) {
|
||||
$query->where('id|name|mobile', 'like', '%' . $where['name'] . '%');
|
||||
|
||||
Reference in New Issue
Block a user