|
@@ -22,15 +22,16 @@ class FileTypeApi {
|
|
|
if ($params["project"]) {
|
|
|
$where[] = ["project", "=", $params["project"]];
|
|
|
}
|
|
|
- if ($params["type"]) {
|
|
|
- $where[] = ["type", "=", session('user')['type']];
|
|
|
- }
|
|
|
+// if ($params["type"]) {
|
|
|
+// $where[] = ["type", "=", session('user')['type']];
|
|
|
+// }
|
|
|
if ($params["must"]) {
|
|
|
$where[] = ["must", "=", $params["must"]];
|
|
|
}
|
|
|
if ($params["active"]) {
|
|
|
$where[] = ["active", "=", $params["active"]];
|
|
|
}
|
|
|
+ $where[] = ["type", "=", session('user')['type']];
|
|
|
$projectNameKvs = DictApi::selectByParentCode("declare_type");
|
|
|
$count = FileType::where($where)->count();
|
|
|
$list = FileType::where($where)->limit($offset, $limit)->order("createTime " . $order)->select()->toArray();
|