From 0ea51f426c65e60aaa3b4d5eb939402a1b1ffa35 Mon Sep 17 00:00:00 2001 From: wh <382379437@qq.com> Date: Thu, 8 Aug 2024 11:29:02 +0800 Subject: [PATCH] fixed --- .../api/controller/Ttuserbaseinfo.php | 180 ++++++++---------- digital_doctor/public/api_docs/api_list.html | 94 ++++----- digital_doctor/public/api_docs/api_list.md | 8 +- digital_doctor/vendor/composer/installed.json | 4 +- digital_doctor/vendor/composer/installed.php | 6 +- 5 files changed, 138 insertions(+), 154 deletions(-) diff --git a/digital_doctor/application/api/controller/Ttuserbaseinfo.php b/digital_doctor/application/api/controller/Ttuserbaseinfo.php index 0bef2db..815fa94 100644 --- a/digital_doctor/application/api/controller/Ttuserbaseinfo.php +++ b/digital_doctor/application/api/controller/Ttuserbaseinfo.php @@ -1,101 +1,85 @@ -(可能有部分额外字段未在此体现): - * id ID - * doctor 所属医生 - * name 病人姓名 - * gender 病人性别 - * age 病人年龄 - * edu 教育程度 - * career_year 职业及年限 - * power 体力要求 - * satisfaction 经济满意度 - * old_career_year 过往职业及年限 - * old_career_power 过往职业体力要求 - * support 社会支持度 - * marriage 婚姻状况 - * live 居住情况 - * home 家庭关系 - * address 地址 - * phone 联系方式 - * wechat_no 微信号 - * create_time 创建时间 - * is_flow 是否接受随访:yes=是,no=否 - * ticket 对话票据(数据隔离) - * hdrdepartment_id 科室 - - * author:wh - */ - function getTtuserbaseinfoDetail(){ - Tools::log_to_write_txt(['查询数字人数据 入参:'=>input()]); - $api_desc = '查询数字人数据'; - try { - - $doctor = input('doctor'); - if(empty($doctor)){ - return json(Tools::set_fail('doctor参数错误')); - } - - $name = input('name'); - if(empty($name)){ - return json(Tools::set_fail('name参数错误')); - } - - $phone = input('phone'); - if(empty($phone)){ - return json(Tools::set_fail('phone参数错误')); - } - - - - $model_obj = Db::table(TabConf::$fa_tt_userbaseinfo); - - if(input('doctor')){ - $model_obj->where('doctor',input('doctor')); - } - if(input('name')){ - $model_obj->where('name',input('name')); - } - if(input('phone')){ - $model_obj->where('phone',input('phone')); - } - $item = $model_obj->find(); - $data = $item; - - - - return json(Tools::set_ok('ok',$data)); - }catch(\Exception $e){ - Tools::log_to_write_txt([ - 'error'=>'查询数字人数据.异常.'.$e->getMessage(), - '参数'=>input(), - 'error_info'=>$e->getTraceAsString() - ]); - return json(Tools::set_res(500,'操作异常',[])); - } - } - + * id ID + * date 日期 + * doctor 所属医生 + * name 病人姓名 + * gender 病人性别 + * age 病人年龄 + * edu 教育程度 + * career_year 职业及年限 + * power 体力要求 + * satisfaction 经济满意度 + * old_career_year 过往职业及年限 + * old_career_power 过往职业体力要求 + * support 社会支持度 + * marriage 婚姻状况 + * live 居住情况 + * home 家庭关系 + * address 地址 + * phone 联系方式 + * wechat_no 微信号 + * create_time 创建时间 + * is_flow 是否接受随访:yes=是,no=否 + * ticket 对话票据(数据隔离) + * hdrdepartment_id 科室 + * from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊 + + * author:wh + */ + function getTtuserbaseinfoDetail(){ + Tools::log_to_write_txt(['获取疼痛科用户基本信息 入参:'=>input()]); + $api_desc = '获取疼痛科用户基本信息'; + try { + + $id = input('id'); + if(empty($id)){ + return json(Tools::set_fail('id参数错误')); + } + + + + $model_obj = Db::table(TabConf::$fa_tt_userbaseinfo); + + if(input('id')){ + $model_obj->where('id',input('id')); + } + $item = $model_obj->find(); + $data = $item; + + + + return json(Tools::set_ok('ok',$data)); + }catch(\Exception $e){ + Tools::log_to_write_txt([ + 'error'=>'获取疼痛科用户基本信息.异常.'.$e->getMessage(), + '参数'=>input(), + 'error_info'=>$e->getTraceAsString() + ]); + return json(Tools::set_res(500,'操作异常',[])); + } + } } \ No newline at end of file diff --git a/digital_doctor/public/api_docs/api_list.html b/digital_doctor/public/api_docs/api_list.html index e962605..c249276 100644 --- a/digital_doctor/public/api_docs/api_list.html +++ b/digital_doctor/public/api_docs/api_list.html @@ -6,7 +6,7 @@
-
+
*** ``` @@ -25,7 +25,7 @@
-
+
*** ``` @@ -53,7 +53,7 @@
-
+
*** ``` @@ -78,7 +78,7 @@
-
+
*** ``` @@ -106,7 +106,7 @@
-
+
*** ``` @@ -154,7 +154,7 @@
-
+
*** ``` @@ -180,7 +180,7 @@
-
+
*** ``` @@ -220,7 +220,7 @@
-
+
*** ``` @@ -244,7 +244,7 @@
-
+
*** ``` @@ -264,7 +264,7 @@
-
+
*** ``` @@ -300,7 +300,7 @@
-
+
*** ``` @@ -322,7 +322,7 @@
-
+
*** ``` @@ -344,7 +344,7 @@
-
+
*** ``` @@ -366,7 +366,7 @@
-
+
*** ``` @@ -392,7 +392,7 @@
-
+
*** ``` @@ -418,7 +418,7 @@
-
+
*** ``` @@ -441,7 +441,7 @@
-
+
*** ``` @@ -479,7 +479,7 @@
-
+
*** ``` @@ -507,7 +507,7 @@
-
+
*** ``` @@ -552,7 +552,7 @@
-
+
*** ``` @@ -611,7 +611,7 @@
-
+
*** ``` @@ -661,7 +661,7 @@
-
+
*** ``` @@ -707,7 +707,7 @@
-
+
*** ``` @@ -729,7 +729,7 @@
-
+
*** ``` @@ -752,7 +752,7 @@
-
+
*** ``` @@ -783,7 +783,7 @@
-
+
*** ``` @@ -807,7 +807,7 @@
-
+
*** ``` @@ -829,7 +829,7 @@
-
+
*** ``` @@ -852,7 +852,7 @@
-
+
*** ``` @@ -885,7 +885,7 @@
-
+
*** ``` @@ -922,7 +922,7 @@
-
+
*** ``` @@ -959,7 +959,7 @@
-
+
*** ``` @@ -1008,22 +1008,21 @@
-
+
*** ``` /** - * desc:查询数字人数据 + * desc:获取疼痛科用户基本信息 * * api/Ttuserbaseinfo/getTtuserbaseinfoDetail * * 参数: - * doctor 所属医生 所属医生 必须 - * name 病人姓名 病人姓名 必须 - * phone 联系方式 联系方式 必须 + * id ID ID 必须 * * 所有字段说明(可能有部分额外字段未在此体现): * id ID + * date 日期 * doctor 所属医生 * name 病人姓名 * gender 病人性别 @@ -1045,6 +1044,7 @@ * is_flow 是否接受随访:yes=是,no=否 * ticket 对话票据(数据隔离) * hdrdepartment_id 科室 + * from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊 * author:wh * api/ttuserbaseinfo/getTtuserbaseinfoDetail @@ -1058,7 +1058,7 @@
-
+
*** ``` @@ -1094,7 +1094,7 @@
-
+
*** ``` @@ -1126,7 +1126,7 @@
-
+
*** ``` @@ -1164,7 +1164,7 @@
-
+
*** ``` @@ -1187,7 +1187,7 @@
-
+
*** ``` @@ -1208,7 +1208,7 @@
-
+
*** ``` @@ -1233,7 +1233,7 @@
-
+
*** ``` @@ -1254,7 +1254,7 @@
-
+
*** ``` @@ -1289,7 +1289,7 @@
-
+
*** ``` @@ -1320,7 +1320,7 @@
-
+
*** ``` diff --git a/digital_doctor/public/api_docs/api_list.md b/digital_doctor/public/api_docs/api_list.md index bf8a3f0..a195b60 100644 --- a/digital_doctor/public/api_docs/api_list.md +++ b/digital_doctor/public/api_docs/api_list.md @@ -721,17 +721,16 @@ *** ``` /** - * desc:查询数字人数据 + * desc:获取疼痛科用户基本信息 * * api/Ttuserbaseinfo/getTtuserbaseinfoDetail * * 参数: - * doctor 所属医生 所属医生 必须 - * name 病人姓名 病人姓名 必须 - * phone 联系方式 联系方式 必须 + * id ID ID 必须 * * 所有字段说明(可能有部分额外字段未在此体现): * id ID + * date 日期 * doctor 所属医生 * name 病人姓名 * gender 病人性别 @@ -753,6 +752,7 @@ * is_flow 是否接受随访:yes=是,no=否 * ticket 对话票据(数据隔离) * hdrdepartment_id 科室 + * from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊 * author:wh * api/ttuserbaseinfo/getTtuserbaseinfoDetail diff --git a/digital_doctor/vendor/composer/installed.json b/digital_doctor/vendor/composer/installed.json index b0cd0cd..c17d7a3 100644 --- a/digital_doctor/vendor/composer/installed.json +++ b/digital_doctor/vendor/composer/installed.json @@ -1209,12 +1209,12 @@ "source": { "type": "git", "url": "https://gitee.com/drop_drop/general_utility_tools_php.git", - "reference": "622c42b186706c0d7354d04b8c957fe715d0c177" + "reference": "a116358d27d4c45cd9e1f258912d25e6fcd1e97c" }, "require": { "ext-json": "*" }, - "time": "2024-07-16T13:13:35+00:00", + "time": "2024-08-06T10:50:39+00:00", "default-branch": true, "type": "library", "installation-source": "source", diff --git a/digital_doctor/vendor/composer/installed.php b/digital_doctor/vendor/composer/installed.php index da1c49e..f8dfa54 100644 --- a/digital_doctor/vendor/composer/installed.php +++ b/digital_doctor/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '192dd13412c3c73d9be25f9bfece9451588338bf', + 'reference' => '2e50374c642dd6ea903c969e160eb91a8fc5a5d4', 'name' => 'topthink/think', 'dev' => true, ), @@ -189,7 +189,7 @@ 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '192dd13412c3c73d9be25f9bfece9451588338bf', + 'reference' => '2e50374c642dd6ea903c969e160eb91a8fc5a5d4', 'dev_requirement' => false, ), 'topthink/think-installer' => array( @@ -218,7 +218,7 @@ 'aliases' => array( 0 => '9999999-dev', ), - 'reference' => '622c42b186706c0d7354d04b8c957fe715d0c177', + 'reference' => 'a116358d27d4c45cd9e1f258912d25e6fcd1e97c', 'dev_requirement' => false, ), 'workerman/gateway-worker' => array(