This commit is contained in:
2024-08-06 15:33:14 +08:00
parent b286bf195f
commit 7bf9d51b8f
4 changed files with 139 additions and 88 deletions

View File

@@ -1,22 +1,28 @@
/nbproject/
#/thinkphp/
#/vendor/
#/application/extra
/runtime/*
#/addons/*
#/public/assets/libs/
/application/admin/command/Install/*.lock
#/public/assets/addons/*
/public/uploads/*
.idea
composer.lock
.env.sample
*.log
*.css.map
!.gitkeep
.env
.svn
.vscode
node_modules
#application/extra/*
.user.ini
#/application/database.php
js_api_ticket.txt
.well-known
webautocode
webautocodestatic
.git
.git*
*.pid

View File

@@ -13,6 +13,7 @@ class Hdrquestionnairequestion extends BaseHttpApi
{
protected $controller_comments = '科室问卷问题(一个问题对应多个答案)';
/**
* desc获取科室问卷问题(一个问题对应多个答案)
@@ -25,12 +26,19 @@ class Hdrquestionnairequestion extends BaseHttpApi
* list_rows 每页显示条数 默认15
* id ID
* hdrdepartment_id 所属科室
* question 问卷问题
* is_common 是否通用:yes=是,no=否
* is_only_boy 只适合男:yes=是,no=否
* is_only_girl 只适合女:yes=是,no=否
* type 选项类型:one=单选,more=多选
* create_time 创建时间
*
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>
* id ID
* hdrdepartment_id 所属科室
* fit_sex 适合对象:all=全部,gg=男,mm=女
* question 问卷问题
* is_common 是否通用:yes=是,no=否
* is_only_boy 只适合男:yes=是,no=否
* is_only_girl 只适合女:yes=是,no=否
* type 选项类型:one=单选,more=多选
* create_time 创建时间
@@ -44,7 +52,16 @@ class Hdrquestionnairequestion extends BaseHttpApi
try {
$id = input('id');
$hdrdepartment_id = input('hdrdepartment_id');
if(empty($hdrdepartment_id)){
return json(Tools::set_fail('参数错误'));
}
$question = input('question');
$is_common = input('is_common');
$is_only_boy = input('is_only_boy');
$is_only_girl = input('is_only_girl');
$type = input('type');
$create_time = input('create_time');
@@ -58,6 +75,21 @@ class Hdrquestionnairequestion extends BaseHttpApi
}
if(input('question')){
$model_obj->where('question',input('question'));
}
if(input('is_common')){
$model_obj->where('is_common',input('is_common'));
}
if(input('is_only_boy')){
$model_obj->where('is_only_boy',input('is_only_boy'));
}
if(input('is_only_girl')){
$model_obj->where('is_only_girl',input('is_only_girl'));
}
if(input('type')){
$model_obj->where('type',input('type'));
}
if(input('create_time')){
$model_obj->where('create_time',input('create_time'));
}
$data = $model_obj->paginate(['page'=>input('current_page',1),'list_rows'=>input('list_rows',15)])
@@ -86,5 +118,4 @@ class Hdrquestionnairequestion extends BaseHttpApi
]);
return json(Tools::set_res(500,'操作异常',[]));
}
}

View File

@@ -86,12 +86,19 @@
* id ID
* hdrdepartment_id 所属科室
* question 问卷问题
* is_common 是否通用:yes=是,no=否
* is_only_boy 只适合男:yes=是,no=否
* is_only_girl 只适合女:yes=是,no=否
* type 选项类型:one=单选,more=多选
* create_time 创建时间
*
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>
* id ID
* hdrdepartment_id 所属科室
* question 问卷问题
* fit_sex 适合对象:all=全部,gg=男,mm=女
* is_common 是否通用:yes=是,no=否
* is_only_boy 只适合男:yes=是,no=否
* is_only_girl 只适合女:yes=是,no=否
* type 选项类型:one=单选,more=多选
* create_time 创建时间
* update_time 更新时间

View File

@@ -64,12 +64,19 @@
* id ID
* hdrdepartment_id 所属科室
* question 问卷问题
* is_common 是否通用:yes=是,no=否
* is_only_boy 只适合男:yes=是,no=否
* is_only_girl 只适合女:yes=是,no=否
* type 选项类型:one=单选,more=多选
* create_time 创建时间
*
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>
* id ID
* hdrdepartment_id 所属科室
* question 问卷问题
* fit_sex 适合对象:all=全部,gg=男,mm=女
* is_common 是否通用:yes=是,no=否
* is_only_boy 只适合男:yes=是,no=否
* is_only_girl 只适合女:yes=是,no=否
* type 选项类型:one=单选,more=多选
* create_time 创建时间
* update_time 更新时间