补充逻辑

wenjuan
yanzai 1 year ago
parent 3f0bec2a48
commit 20646b0177

@ -16,21 +16,26 @@ class FenzhenController extends Controller
public function check()
{
// 这里放 检查是否有 体检引导的数据
return \Yz::Return(true, "弃检成功");
$id_number =request('id_number');
$list=DB::table('orders')->where(['id_number'=>$id_number])->whereIn('status',[2,4])->get();
return \Yz::Return(true, "弃检成功",['list'=>$list]);
}
public function list()
{
$id =request('id');
$info=DB::table('orders')->where(['id'=>$id])->whereIn('status',[2,4])->get();
if(!$info) return \Yz::echoError1("查询就诊人订单失败");
return \Yz::Return(true, "获取成功", [
'info' => [
'name' => '张三',
'sex' => 1,
'combo_name' => '套餐名称',
'check_date' => '2024-04-25',
'start_time' => '08:25',
'name' => $info->name,
'sex' => $info->sex,
'combo_name' => $info->title,
'check_date' => $info->appointment_date,
'start_time' => $info->appointment_time,
'end_time' => '10:25',
'qrcode' => '',
'code' => '', // 体检条码
'code' => $info->appointment_number, // 体检条码
],
'list' => [[
'time' => '08:25',
@ -78,16 +83,19 @@ class FenzhenController extends Controller
public function info()
{
$id =request('id');
$info=DB::table('orders')->where(['id'=>$id])->whereIn('status',[2,4])->get();
if(!$info) return \Yz::echoError1("查询就诊人订单失败");
return \Yz::Return(true, "获取成功", [
'info' => [
'name' => '张三',
'sex' => 1,
'combo_name' => '套餐名称',
'check_date' => '2024-04-25',
'start_time' => '08:25',
'name' => $info->name,
'sex' => $info->sex,
'combo_name' => $info->title,
'check_date' => $info->appointment_date,
'start_time' => $info->appointment_time,
'end_time' => '10:25',
'qrcode' => '',
'code' => '', // 体检条码
'code' => $info->appointment_number, // 体检条码
],
'list' => [[
'id' => '1',

Loading…
Cancel
Save