You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\H5;
|
|
|
|
use App\Http\Controllers\API\PEISApiController;
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
class PersonController extends Controller
|
|
{
|
|
public function group_info($hospital, $data)
|
|
{
|
|
$peis = new PEISApiController();
|
|
$info = $peis::Post('团检登记查询', $hospital, $data);
|
|
$items = [];
|
|
$group_info = $info['data'][0];
|
|
if (isset($group_info['项目列表'])) {
|
|
foreach ($group_info['项目列表'] as $datum) {
|
|
$items[] = [
|
|
'id' => $datum['Id'],
|
|
'name' => $datum['名称'],
|
|
];
|
|
}
|
|
}
|
|
return [
|
|
'name' => $group_info['姓名'],
|
|
'id_number' => $group_info['证件号码'],
|
|
'combo_name' => $group_info['套餐名称'],
|
|
'combo_id' => $group_info['套餐Id'],
|
|
'start_time' => $group_info['预约开始日期'],
|
|
'end_time' => $group_info['预约结束日期'],
|
|
'group_name' => $group_info['单位名称'] . ($group_info['部门名称']),
|
|
'items' => $items,
|
|
'appointment_number' => $group_info['预约Id']
|
|
];
|
|
}
|
|
}
|