|
...
|
...
|
@@ -31,15 +31,37 @@ class MenuSpecialLogic extends BaseLogic |
|
|
|
* @time :2023/8/7 14:33
|
|
|
|
*/
|
|
|
|
public function managerList($map){
|
|
|
|
$managerModel = new ManageHr();
|
|
|
|
if(!isset($map['status'])){
|
|
|
|
$map['status'] = 1;
|
|
|
|
}
|
|
|
|
$list = $managerModel->list($map,'id',['id','name']);
|
|
|
|
return $this->success($list);
|
|
|
|
$managerModel = new Manage();
|
|
|
|
$query = $managerModel->leftJoin('gl_manage_hr', 'gl_manage.id', '=', 'gl_manage_hr.manage_id');
|
|
|
|
$query = $this->searchParam($query);
|
|
|
|
$lists = $query->select($this->selectParam())->get()->toArray();
|
|
|
|
return $this->success($lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :搜索
|
|
|
|
* @name :searchParam
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/10/24 11:50
|
|
|
|
*/
|
|
|
|
public function searchParam($query){
|
|
|
|
$query->where('gl_manage_hr.status', $this->map['status'] ?? 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 需要查询的字段
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function selectParam(){
|
|
|
|
$select = [
|
|
|
|
'gl_manage.id AS id',
|
|
|
|
'gl_manage.name AS name',
|
|
|
|
'gl_manage_hr.status as status'
|
|
|
|
];
|
|
|
|
return $select;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @remark :获取详情
|
|
|
|
* @name :specialInfo
|
|
|
|
* @author :lyh
|
...
|
...
|
|