分配离职员工客户

This commit is contained in:
2025-08-16 16:12:06 +08:00
parent 646b39dec8
commit 1fa2342007
2 changed files with 78 additions and 0 deletions
@@ -207,4 +207,31 @@ class CustomerController extends BaseController
}
}
/**
* 离职员工客户分配
* @param Request $request
* @return \support\Response
*/
public function allocation(Request $request)
{
try {
$param = $request->all();
if (empty($param['id'])) {
return $this->error('id'.trans('not_null'));
}
if (empty($param['corp_id'])) {
return $this->error('corp_id'.trans('not_null'));
}
if (empty($param['user_id'])) {
return $this->error('user_id'.trans('not_null'));
}
$result = (new CustomerService())->allocation($param);
return $this->success($result);
} catch (\Throwable $th) {
return $this->error($th->getMessage());
}
}
}