refactor(work): remove BaseAuth enterprise wechat dao dependency

Made-with: Cursor
This commit is contained in:
apple
2026-04-29 17:20:23 +08:00
parent 02bdc41ff8
commit fe72924111
6 changed files with 31 additions and 28 deletions

View File

@@ -8,7 +8,7 @@ namespace app\dao\work;
use app\dao\BaseDao;
use app\model\work\WorkWelcome;
use crmeb\basic\BaseAuth;
use app\services\dao\SearchConditionBuilder;
use crmeb\basic\BaseModel;
use crmeb\traits\SearchDaoTrait;
@@ -37,7 +37,7 @@ class WorkWelcomeDao 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['userids']), function ($query) use ($where) {
$query->whereIn('id', function ($query) use ($where) {