main
yanzai 1 year ago
parent 0d250b8803
commit 646cc7bb7b

@ -16,8 +16,8 @@ class TestController extends Controller
{ {
public function DBtest(){ public function DBtest(){
echo DB::table('users')->count(); echo DB::table('users')->count();
// $order= new OrderService(); $order= new OrderService();
// dd($order->DepartmentItemCount(355)); dd($order->DepartmentItemCount(355));
//退款------------------ //退款------------------
// $data = [ // $data = [
// 'orderid' => '20241108112106776eslNJ2', // 'orderid' => '20241108112106776eslNJ2',

@ -24,29 +24,30 @@ class OrderService
$wait_day=$wait['Data']['预计所需天数']; $wait_day=$wait['Data']['预计所需天数'];
} else { } else {
$wait_day=-1; $wait_day=-1;
} //查询体检报告
$data = [
//查询体检报告 '电话号码' => "",
$data = [ '证件号码' => "",
'电话号码' => "", '体检号' => $order->tj_number,
'证件号码' => "", '包含内部信息' => true
'体检号' => $order->tj_number, ];
'包含内部信息' => true $res = $peis::Post('体检报告查询', $order->hospital_id, $data);
]; if(count($res['data']) > 0) {
$res = $peis::Post('体检报告查询', $order->hospital_id, $data); $res = $res['data'][0];
if(count($res['data']) > 0) { if (isset($res['收费项目列表'])) {
$res = $res['data'][0]; foreach ($res['收费项目列表'] as $it) {
if (isset($res['收费项目列表'])) { if($it['项目状态']=='未完成'){
foreach ($res['收费项目列表'] as $it) { $is_checked_sign_in=false;
if($it['项目状态']=='未完成'){ break;
$is_checked_sign_in=false; }else{
break; $is_checked_sign_in=true;
}else{ }
$is_checked_sign_in=true;
} }
} }
} }
} }
} }
$buy_info=json_decode($order->buy_info,true); $buy_info=json_decode($order->buy_info,true);

Loading…
Cancel
Save