Merge branch 'develop' into feature/mzl_dev

This commit is contained in:
mzl
2025-07-30 16:13:53 +08:00
parent ad23809a10
commit e8af949f36
4 changed files with 550 additions and 2 deletions
+10
View File
@@ -2,6 +2,7 @@
namespace app\crm\service;
use app\common\model\Corp;
use app\common\model\User;
use app\crm\logic\CustomerLogic;
use app\crm\model\CarType;
@@ -83,6 +84,15 @@ class CustomerService
$query->onlyTrashed();
}
if ($seas == 'seas') {
$corp = Corp::where('abbr', $params['corp_abbr'])->first();
$corpId = $corp?$corp->id:0;
if($corpId == 1){
$query->whereIn('channel_id', [1,2,3,4,5,6,7,8]);
} elseif($corpId == 3) {
$query->whereIn('channel_id', [9,10,11]);
} else{
$query->whereIn('channel_id', [0]);
}
$query->withTrashed();
}