| Línea 150... |
Línea 150... |
| 150 |
$select = $queryMapper->getSql()->select();
|
150 |
$select = $queryMapper->getSql()->select();
|
| 151 |
$select->from(['tb1' => RecruitmentSelectionVacancyMapper::_TABLE]);
|
151 |
$select->from(['tb1' => RecruitmentSelectionVacancyMapper::_TABLE]);
|
| 152 |
$select->columns(['uuid', 'name', 'last_date', 'status']);
|
152 |
$select->columns(['uuid', 'name', 'last_date', 'status']);
|
| 153 |
$select->join(['tb2' => JobDescriptionMapper::_TABLE], 'tb1.job_description_id = tb2.id AND tb1.company_id = tb2.company_id', ['job_description' => 'name']);
|
153 |
$select->join(['tb2' => JobDescriptionMapper::_TABLE], 'tb1.job_description_id = tb2.id AND tb1.company_id = tb2.company_id', ['job_description' => 'name']);
|
| Línea 154... |
Línea 154... |
| 154 |
|
154 |
|
| Línea 155... |
Línea 155... |
| 155 |
$select->where->equalTo('tb1.company_id', $currentCompany->network_id);
|
155 |
$select->where->equalTo('tb1.company_id', $currentCompany->id);
|
| 156 |
|
156 |
|
| 157 |
if($search) {
|
157 |
if($search) {
|
| 158 |
$select->where->like('tb1.name', '%' . $search . '%');
|
158 |
$select->where->like('tb1.name', '%' . $search . '%');
|