公海区分

This commit is contained in:
2025-07-30 15:15:57 +08:00
parent c8fb9f5b19
commit 269bd7168e
4 changed files with 549 additions and 2 deletions
+9
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,14 @@ class CustomerService
$query->onlyTrashed();
}
if ($seas == 'seas') {
$corpId = Corp::where('abbr', $params['corp_abbr'])->first()->value('id');
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();
}