定义小程序相关接口方法、团检登记查询
parent
51ae656c4c
commit
825a5e3adc
@ -0,0 +1,37 @@
|
|||||||
|
<?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']
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue