Commit d016b2dc by 杨树贤

设置华云

parent 15f55169
......@@ -481,6 +481,18 @@ class SupplierApiController extends Controller
}
$service = new SupplierService();
$result = $service->allocateChannelUser($supplierId, $channelUid, $channelUserType);
} else if ($channelUserType == SupplierContactModel::CHANNEL_USER_TYPE_IEDGE) {
$check = $adminService->checkIsResignedByCodeId($channelUid);
if ($check) {
$this->response(-1, '该采购员已经离职,请选择其他人员');
}
$contactModel = new SupplierContactModel();
$contact = $contactModel->where('supplier_id', $supplierId)->where('channel_user_type', $channelUserType)->where('can_check_uids', $channelUid)->first();
if ($contact) {
$this->response(-1, '该供应商已经存在同名的华云采购员,请选择其他人员');
}
$service = new SupplierService();
$result = $service->allocateChannelUser($supplierId, $channelUid, $channelUserType);
} else {
$check = $adminService->checkIsResignedByCodeId($channelUid);
if ($check) {
......
......@@ -13,6 +13,7 @@ class SupplierContactModel extends Model
const CHANNEL_USER_TYPE_LIEXIN = 1;
const CHANNEL_USER_TYPE_JD = 2;
const CHANNEL_USER_TYPE_IEDGE = 3;
public function AddInfo($SupplierID = '', $data = '')
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment