更新
This commit is contained in:
parent
6300d00662
commit
8a09c4bd55
@ -157,10 +157,7 @@ class UserInformationg extends BaseModel
|
||||
}
|
||||
public function getBrigadeNameAttr($value)
|
||||
{
|
||||
if ($this->brigade_id) {
|
||||
return Db::name('geo_brigade')->where('id', 'in', explode(',', $this->brigade_id))->field('brigade_name')->select();
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
return Db::name('geo_brigade')->where('id', $this->brigade_id)->value('brigade_name');
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user