...
|
...
|
@@ -76,7 +76,7 @@ class IndexController extends RestBaseController |
|
|
* @param name:project_id type:int require:0 default: other desc:项目id
|
|
|
*
|
|
|
* @return data: @
|
|
|
* @data id:公司id company_name:甲方公司名称 logo:公司logo company_name_head:甲方总公司名称 address:地区 run_time:运行时间 service:服务列表@
|
|
|
* @data id:公司id company_name:总公司名称 logo:总公司logo address:地区 run_time:运行时间 service:服务列表@
|
|
|
* @service id:服务id(1:日检,2:月检,3:改造,4:维修,5:培训,6:演习,7:年检,100:使用说明) name:服务名称 icon:图标路径 english_name:英文名称
|
|
|
* @return tips:提示语
|
|
|
*/
|
...
|
...
|
@@ -84,15 +84,13 @@ class IndexController extends RestBaseController |
|
|
if($this->request->isGet()){
|
|
|
$project_id = $this->request->get('project_id');
|
|
|
|
|
|
$field = 'id,company_name,company_name_head,address,logo,create_time';
|
|
|
$field = 'id,company_name_head company_name,address,head_logo logo,u_ls_id';
|
|
|
$common = new CommonController();
|
|
|
//查询甲方公司id
|
|
|
$company = $common->getCompanyAid($project_id);
|
|
|
|
|
|
$res = $common->getTotalCompany(['id'=>$company['a_cid']],$field);
|
|
|
|
|
|
$host = config('site.host');
|
|
|
|
|
|
foreach($res as &$value){
|
|
|
//查找企业拥有的服务
|
|
|
$data['c_id'] = $value['id'];
|
...
|
...
|
@@ -104,8 +102,9 @@ class IndexController extends RestBaseController |
|
|
}
|
|
|
}
|
|
|
$value['logo'] = $host.'/upload/'.$value['logo'];
|
|
|
//公司运行时间
|
|
|
$value['run_time'] = $common->getRunTime($value['create_time']);
|
|
|
//总公司运行时间
|
|
|
$time = $common->getUserById(['id'=>$value['u_ls_id']]);
|
|
|
$value['run_time'] = $common->getRunTime($time['create_time']);
|
|
|
}
|
|
|
$arr['data'] = $res;
|
|
|
$arr['tips'] = config('site.tips');
|
...
|
...
|
|