|
@@ -271,12 +271,11 @@ class Api extends BaseController {
|
|
|
$params = $this->request->param();
|
|
|
$type = $params["type"]; //人才类型不默认,需要传
|
|
|
$declare_type = $params["project"] ?: 1; //默认人才认定
|
|
|
- $step = $params["step"] ?: 2; //默认第二步,目前仅人才认定有两步
|
|
|
$active = $params["active"] ?: 1; //默认查找启用的附件
|
|
|
$where[] = ["type", "=", $type];
|
|
|
$where[] = ["project", "=", $declare_type];
|
|
|
- $where[] = ["step", "=", $step];
|
|
|
$where[] = ["active", "=", $active];
|
|
|
+ $where[] = ["isConditionFile", "=", 1];
|
|
|
$list = Db::table("new_common_filetype")->where($where)->order("sn " . $order)->select()->toArray();
|
|
|
return json($list);
|
|
|
}
|