fixed
This commit is contained in:
@@ -23,6 +23,7 @@ class Hdrquestionnairequestion extends BaseHttpApi
|
|||||||
* 参数:
|
* 参数:
|
||||||
* 带分页
|
* 带分页
|
||||||
* current_page 当前页码
|
* current_page 当前页码
|
||||||
|
* list_rows 每页显示条数 默认15
|
||||||
* question 问卷问题
|
* question 问卷问题
|
||||||
* id ID
|
* id ID
|
||||||
* hdrdepartment_id 所属科室
|
* hdrdepartment_id 所属科室
|
||||||
@@ -30,7 +31,6 @@ class Hdrquestionnairequestion extends BaseHttpApi
|
|||||||
* is_common 是否通用:yes=是,no=否
|
* is_common 是否通用:yes=是,no=否
|
||||||
* is_only_boy 只适合男:yes=是,no=否
|
* is_only_boy 只适合男:yes=是,no=否
|
||||||
* is_only_girl 只适合女:yes=是,no=否
|
* is_only_girl 只适合女:yes=是,no=否
|
||||||
* type 选项类型:one=单选,more=多选
|
|
||||||
* type 选项类型:one=单选,more=多选
|
* type 选项类型:one=单选,more=多选
|
||||||
*
|
*
|
||||||
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
@@ -53,7 +53,7 @@ class Hdrquestionnairequestion extends BaseHttpApi
|
|||||||
|
|
||||||
$id = input('id');
|
$id = input('id');
|
||||||
$hdrdepartment_id = input('hdrdepartment_id');
|
$hdrdepartment_id = input('hdrdepartment_id');
|
||||||
if(empty($hdrdepartment_id)){
|
if(empty($hdrdepartment_id)){
|
||||||
return json(Tools::set_fail('hdrdepartment_id参数错误'));
|
return json(Tools::set_fail('hdrdepartment_id参数错误'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,20 +61,20 @@ class Hdrquestionnairequestion extends BaseHttpApi
|
|||||||
$is_common = input('is_common');
|
$is_common = input('is_common');
|
||||||
$is_only_boy = input('is_only_boy');
|
$is_only_boy = input('is_only_boy');
|
||||||
$is_only_girl = input('is_only_girl');
|
$is_only_girl = input('is_only_girl');
|
||||||
$type = input('type');
|
|
||||||
$type = input('type');
|
$type = input('type');
|
||||||
|
|
||||||
|
|
||||||
$model_obj = Db::table(TabConf::$fa_hdrquestionnairequestion);
|
$model_obj = Db::table(TabConf::$fa_hdrquestionnairequestion);
|
||||||
|
|
||||||
|
if(input('question')){
|
||||||
|
$model_obj->whereLike('question','%'.input('question').'%');
|
||||||
|
}
|
||||||
|
|
||||||
if(input('id')){
|
if(input('id')){
|
||||||
$model_obj->where('id',input('id'));
|
$model_obj->where('id',input('id'));
|
||||||
}
|
}
|
||||||
if(input('hdrdepartment_id')){
|
if(input('hdrdepartment_id')){
|
||||||
$model_obj->where('hdrdepartment_id',input('hdrdepartment_id'));
|
$model_obj->where('hdrdepartment_id',input('hdrdepartment_id'));
|
||||||
}
|
|
||||||
if(input('question')){
|
|
||||||
$model_obj->where('question',input('question'));
|
|
||||||
}
|
}
|
||||||
if(input('is_common')){
|
if(input('is_common')){
|
||||||
$model_obj->where('is_common',input('is_common'));
|
$model_obj->where('is_common',input('is_common'));
|
||||||
@@ -87,9 +87,6 @@ class Hdrquestionnairequestion extends BaseHttpApi
|
|||||||
}
|
}
|
||||||
if(input('type')){
|
if(input('type')){
|
||||||
$model_obj->where('type',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)])
|
$data = $model_obj->paginate(['page'=>input('current_page',1),'list_rows'=>input('list_rows',15)])
|
||||||
|
|||||||
Reference in New Issue
Block a user