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\WorkGroupMsgSendResult;
|
||||
use crmeb\basic\BaseAuth;
|
||||
use app\services\dao\SearchConditionBuilder;
|
||||
use crmeb\traits\SearchDaoTrait;
|
||||
|
||||
/**
|
||||
@@ -35,13 +35,7 @@ class WorkGroupMsgSendResultDao extends BaseDao
|
||||
*/
|
||||
public function searchWhere(array $where, bool $authWhere = true)
|
||||
{
|
||||
[$with, $whereKey] = app()->make(BaseAuth::class)->________(array_keys($where), $this->setModel());
|
||||
$whereData = [];
|
||||
foreach ($whereKey as $key) {
|
||||
if (isset($where[$key]) && 'timeKey' !== $key) {
|
||||
$whereData[$key] = $where[$key];
|
||||
}
|
||||
}
|
||||
[$with] = app()->make(SearchConditionBuilder::class)->build(array_keys($where), $this->setModel());
|
||||
|
||||
return $this->getModel()->withSearch($with, $where)->when(!empty($where['client_name']), function ($query) use ($where) {
|
||||
$query->whereIn('external_userid', function ($query) use ($where) {
|
||||
|
||||
Reference in New Issue
Block a user