<?php
/**
 * 公司管理（权限服务）
 * 公司管理（权限基础操作权限）
 * @author DouBin
 * @Date: 2022-12-05 005
 * @Time: 下午 6:58:41
 * @Email: db@sudianwang.com
 * @version 1.0
 * @copyright BlueCity
 */

namespace App\Services;

use App\Models\Company;
use BlueCity\Core\Service\Service;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Log;
use Maatwebsite\Excel\Facades\Excel;
use phpDocumentor\Reflection\Types\Integer;
use BlueCity\Core\Inc\ErrorInc;

class CompanyService extends Service{

    /**|---------------------------------------------------------------------------------
     * @name 获取公司信息
     * @retrun /multitype:array
     * @param string ID 公司id
     * @author dou 2022-12-05 005 下午 6:50:11
     * |---------------------------------------------------------------------------------
     */
    public static function getCompanyById ( $id , $select = [] , $type = 'first' ){
        $db = new Company();
        $company = CommonService::getMysqlData($db, ['com_id'=>$id],$select,[],$type);
        return $company;
    }
}
