|
...
|
...
|
@@ -567,7 +567,9 @@ class ProjectController extends BaseController |
|
|
|
*/
|
|
|
|
public function getManagerList(){
|
|
|
|
$hrManagerModel = new ManageHr();
|
|
|
|
if(!isset($this->param['name']) || empty($this->param['name'])){
|
|
|
|
$this->map['status'] = $hrManagerModel::STATUS_ONE;
|
|
|
|
}
|
|
|
|
if(isset($this->map['entry_position']) && !empty($this->map['entry_position'])){
|
|
|
|
$this->map['entry_position'] = ['in',$this->map['entry_position']];
|
|
|
|
}
|
|
...
|
...
|
@@ -968,5 +970,29 @@ class ProjectController extends BaseController |
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :更新项目的管理员
|
|
|
|
* @name :updateProjectManager
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/4/7 10:41
|
|
|
|
*/
|
|
|
|
public function updateProjectManager(){
|
|
|
|
$this->request->validate([
|
|
|
|
'old_id'=>'required',
|
|
|
|
'new_id'=>'required'
|
|
|
|
],[
|
|
|
|
'old_id.required' => '参数不能为空',
|
|
|
|
'new_id.required' => '参数不能为空',
|
|
|
|
]);
|
|
|
|
//查看当前用户是否存在
|
|
|
|
$hrModel = new ManageHr();
|
|
|
|
$hrInfo = $hrModel->read(['id'=>$this->param['old_id']]);
|
|
|
|
if($hrInfo === false){
|
|
|
|
$this->response('当前用户不存在',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
//获取当前人事详情的所有项目
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|