公海区分
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user