|
...
|
...
|
@@ -19,7 +19,7 @@ class HrController extends BaseController |
|
|
|
*/
|
|
|
|
public function list(ManageHr $manageHr)
|
|
|
|
{
|
|
|
|
$lists = $manageHr->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
$lists = $manageHr->lists($this->map,$this->page,$this->row,['sort','id']);
|
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['photo_gallery_link'] = json_decode($v['photo_gallery']);
|
|
...
|
...
|
@@ -28,7 +28,7 @@ class HrController extends BaseController |
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->response('success', Code::SUCCESS, $lists);
|
|
|
|
$this->response('success', Code::SUCCESS, $lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -55,7 +55,7 @@ class HrController extends BaseController |
|
|
|
*/
|
|
|
|
public function save(HrLogic $logic){
|
|
|
|
$logic->hrSave();
|
|
|
|
return $this->response('success');
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -89,7 +89,7 @@ class HrController extends BaseController |
|
|
|
'status' => $v->status,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
return $this->response('success',Code::SUCCESS, $result);
|
|
|
|
$this->response('success',Code::SUCCESS, $result);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -106,6 +106,6 @@ class HrController extends BaseController |
|
|
|
'id.required' => 'ID不能为空'
|
|
|
|
]);
|
|
|
|
$hrLogic->setSort();
|
|
|
|
return $this->response('success');
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|