فهرست منبع

Actualización gestión del personal

Jose Brito 2 هفته پیش
والد
کامیت
67b7e79e59
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      sistema-mantenimiento-back/app/Http/Controllers/PersonnelManagementController.php

+ 3 - 0
sistema-mantenimiento-back/app/Http/Controllers/PersonnelManagementController.php

@@ -61,6 +61,7 @@ class PersonnelManagementController extends Controller
             DB::raw('TRIM(CONCAT(USUA_NOMB, " " , USUA_APPA, " ", COALESCE(USUA_APMA,""))) as NAME'),
             'PERS_TICO AS CONTRACT_TYPE',
             'PERS_IDPS AS ID_SUBCONTRATISTA',
+            'PERS_IDUS AS ID_USUARIO',
             'PERS_ESPE AS SPECIALITY',
             'PERS_EQTR AS TEAM_ID',
             'EQMA_NOMB AS TEAM_NAME',
@@ -83,6 +84,7 @@ class PersonnelManagementController extends Controller
                 $employee->ID_SUBCONTRATISTA = $this->encryptionController->encrypt($employee->ID_SUBCONTRATISTA);
             }
 
+            $employee->ID_USUARIO = $this->encryptionController->encrypt($employee->ID_USUARIO);
             $specialtiesArr = json_decode($employee->SPECIALITY, true);
             foreach($specialtiesArr as $key0=>$specialtyCode){
                 $specialty = DB::table('S002V01TGEES')->where([
@@ -118,6 +120,7 @@ class PersonnelManagementController extends Controller
         $this->functionsController->registerLog($actions, $idUser, $nowStr, $idac, $line);
         return $this->responseController->makeResponse(false, 'EXITO', $employees);
     }
+    
     public function getEmployeeById($idEmployee, $idUser, $line) {
         DB::enableQueryLog();