作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !2402
@@ -43,7 +43,8 @@ class TestController extends BaseController @@ -43,7 +43,8 @@ class TestController extends BaseController
43 * @time :2025/2/13 16:34 43 * @time :2025/2/13 16:34
44 */ 44 */
45 public function ceshi(){ 45 public function ceshi(){
46 - $data = Translate::tran('测试翻译', 'en');  
47 - $this->response('success',Code::SUCCESS,['data'=>$data]); 46 + $hrModel = new ManageHr();
  47 + $data = $hrModel->accordIdGetLeader($this->param['id']);
  48 + $this->response('success',Code::SUCCESS,$data);
48 } 49 }
49 } 50 }
@@ -224,7 +224,7 @@ class ManageHr extends Base @@ -224,7 +224,7 @@ class ManageHr extends Base
224 } 224 }
225 //不是组长:根据小组获取组长 225 //不是组长:根据小组获取组长
226 if($info['is_leader'] != self::IS_LEADER){ 226 if($info['is_leader'] != self::IS_LEADER){
227 - $id = $this->getValue(['belong_group'=>$info['belong_group'],'is_leader'=> self::IS_LEADER]); 227 + $id = $this->getValue(['belong_group'=>$info['belong_group'],'dept_id'=>$info['dept_id'],'is_leader'=> self::IS_LEADER]);
228 if(empty($id)){ 228 if(empty($id)){
229 //未获取到时,根据当前大组去随机获取一个组长 229 //未获取到时,根据当前大组去随机获取一个组长
230 $id = $this->getValue(['dept_id'=>$info['dept_id'],'is_leader'=> self::IS_LEADER]); 230 $id = $this->getValue(['dept_id'=>$info['dept_id'],'is_leader'=> self::IS_LEADER]);