FIX_EMPLOYEE_UPLOAD_CREATED_BY_ADD_SWAGGER_TO : AADHAVAN
This commit is contained in:
parent
6268549d37
commit
e69e654682
@ -499,6 +499,8 @@ class EmployeeRestController extends AdminController
|
||||
$client_id = $this->request->getPost('client_id');
|
||||
// $client_id = $this->request->getJSON('client_id');
|
||||
$policy_id = $this->request->getPost('policy_id');
|
||||
|
||||
$employee_id = $this->request->getPost('employee_id');
|
||||
// $policy_id = $this->request->getJSON('policy_id');
|
||||
|
||||
$client_policy = $this->clientPolicyModel->where('id', $policy_id)->where('client_id', $client_id)->first();
|
||||
@ -538,7 +540,7 @@ class EmployeeRestController extends AdminController
|
||||
$extractData['status']= 'success';
|
||||
$extractData['policy_id']= $policy_id;
|
||||
$extractData['action']= 'enrollment';
|
||||
// $extractData['created_by']=set_session_context('Employee');
|
||||
$extractData['created_by']=$employee_id;
|
||||
|
||||
$file_data =$this->fileModel->insert($extractData);
|
||||
|
||||
@ -696,6 +698,7 @@ class EmployeeRestController extends AdminController
|
||||
$emp_id =$employee['id'];
|
||||
$id =$emp_id;
|
||||
$data_after_gpa_or_gmc['id'] = $id;
|
||||
$data_after_gpa_or_gmc['updated_by'] = $employee_id;
|
||||
$data_after_gpa_or_gmc['updated_at'] = $formatted_date_time;
|
||||
$result = $this->employeeModel->save($data_after_gpa_or_gmc);
|
||||
if ($result) {
|
||||
@ -706,6 +709,7 @@ class EmployeeRestController extends AdminController
|
||||
if ($dataToInsert[$a]['emp_code'] != 0) {
|
||||
$result =false;
|
||||
if (count($data_after_gpa_or_gmc) != 0) {
|
||||
$data_after_gpa_or_gmc['created_by'] = $employee_id;
|
||||
$result = $this->employeeModel->insert($data_after_gpa_or_gmc);
|
||||
}
|
||||
$emp_id =$result;
|
||||
|
||||
@ -175,6 +175,9 @@ paths:
|
||||
policy_id:
|
||||
type: integer
|
||||
description: policy_id
|
||||
employee_id:
|
||||
type: integer
|
||||
description: employee_id
|
||||
file:
|
||||
type: string
|
||||
format: binary
|
||||
|
||||
Loading…
Reference in New Issue
Block a user