|
@@ -567,7 +567,9 @@ class ProjectController extends BaseController |
|
@@ -567,7 +567,9 @@ class ProjectController extends BaseController |
|
567
|
*/
|
567
|
*/
|
|
568
|
public function getManagerList(){
|
568
|
public function getManagerList(){
|
|
569
|
$hrManagerModel = new ManageHr();
|
569
|
$hrManagerModel = new ManageHr();
|
|
570
|
- $this->map['status'] = $hrManagerModel::STATUS_ONE;
|
570
|
+ if(!isset($this->param['name']) || empty($this->param['name'])){
|
|
|
|
571
|
+ $this->map['status'] = $hrManagerModel::STATUS_ONE;
|
|
|
|
572
|
+ }
|
|
571
|
if(isset($this->map['entry_position']) && !empty($this->map['entry_position'])){
|
573
|
if(isset($this->map['entry_position']) && !empty($this->map['entry_position'])){
|
|
572
|
$this->map['entry_position'] = ['in',$this->map['entry_position']];
|
574
|
$this->map['entry_position'] = ['in',$this->map['entry_position']];
|
|
573
|
}
|
575
|
}
|
|
@@ -968,5 +970,29 @@ class ProjectController extends BaseController |
|
@@ -968,5 +970,29 @@ class ProjectController extends BaseController |
|
968
|
$this->response('success');
|
970
|
$this->response('success');
|
|
969
|
}
|
971
|
}
|
|
970
|
|
972
|
|
|
|
|
973
|
+ /**
|
|
|
|
974
|
+ * @remark :更新项目的管理员
|
|
|
|
975
|
+ * @name :updateProjectManager
|
|
|
|
976
|
+ * @author :lyh
|
|
|
|
977
|
+ * @method :post
|
|
|
|
978
|
+ * @time :2024/4/7 10:41
|
|
|
|
979
|
+ */
|
|
|
|
980
|
+ public function updateProjectManager(){
|
|
|
|
981
|
+ $this->request->validate([
|
|
|
|
982
|
+ 'old_id'=>'required',
|
|
|
|
983
|
+ 'new_id'=>'required'
|
|
|
|
984
|
+ ],[
|
|
|
|
985
|
+ 'old_id.required' => '参数不能为空',
|
|
|
|
986
|
+ 'new_id.required' => '参数不能为空',
|
|
|
|
987
|
+ ]);
|
|
|
|
988
|
+ //查看当前用户是否存在
|
|
|
|
989
|
+ $hrModel = new ManageHr();
|
|
|
|
990
|
+ $hrInfo = $hrModel->read(['id'=>$this->param['old_id']]);
|
|
|
|
991
|
+ if($hrInfo === false){
|
|
|
|
992
|
+ $this->response('当前用户不存在',Code::SYSTEM_ERROR);
|
|
|
|
993
|
+ }
|
|
|
|
994
|
+ //获取当前人事详情的所有项目
|
|
|
|
995
|
+
|
|
|
|
996
|
+ }
|
|
971
|
|
997
|
|
|
972
|
} |
998
|
} |