You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
427 B
18 lines
427 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace app\common\model;
|
||
|
|
||
|
use think\Model;
|
||
|
|
||
|
class ProjectCompanyUser extends Model
|
||
|
{
|
||
|
protected $resultSetType = 'collection';
|
||
|
|
||
|
public static function getCompanyIds($uid) {
|
||
|
return self::where('user_id', $uid)->where('company_id','<>', 0)->column('company_id');
|
||
|
}
|
||
|
|
||
|
public static function getUserIds($company_id) {
|
||
|
return self::where('company_id', $company_id)->column('user_id');
|
||
|
}
|
||
|
}
|