...
|
...
|
@@ -511,21 +511,6 @@ class CommonController extends RestBaseController |
|
|
}
|
|
|
|
|
|
//根据uid查询用户
|
|
|
public function getUser($where){
|
|
|
$res = Db::name('user')
|
|
|
->where($where)
|
|
|
->field('id,user_login,identity')
|
|
|
->find();
|
|
|
$res['other'] = '';
|
|
|
if(isset($res['identity']) && !empty($res['identity'])){
|
|
|
//获取用户身份,所属企业,项目
|
|
|
$other = $this->getUserIdentity($res['identity']);
|
|
|
$res['other'] = $other;
|
|
|
}
|
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
//根据uid查询用户
|
|
|
public function getUserById($where){
|
|
|
$res = Db::name('user')
|
|
|
->where($where)
|
...
|
...
|
@@ -2226,4 +2211,14 @@ class CommonController extends RestBaseController |
|
|
return $registrations;
|
|
|
}
|
|
|
|
|
|
//根据项目id查找甲方/乙方项目组人员id
|
|
|
public function getUsersId($project_id,$field){
|
|
|
$users = Db::name('project')
|
|
|
->where('id',$project_id)
|
|
|
->field($field)
|
|
|
->find();
|
|
|
$usersId = explode(',',trim($users[$field],','));
|
|
|
return $usersId;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|