feat : kitchen
This commit is contained in:
@@ -58,4 +58,13 @@ class SystemCity extends Model
|
||||
{
|
||||
return $this->where('id', $id)->where('is_del',CityCode::IS_NOT_DELETE)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $ids
|
||||
* @return array
|
||||
*/
|
||||
public function getCityNameByIds($ids): array
|
||||
{
|
||||
return $this->whereIn('id',$ids)->pluck('title','id')->toArray();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user