Browse Source

去掉一些人才类别的显示

sandm 1 năm trước cách đây
mục cha
commit
5a20cef6b6
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      app/common/api/FileTypeApi.php

+ 4 - 3
app/common/api/FileTypeApi.php

@@ -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();