sugangqiang 1 年之前
父節點
當前提交
866c944d40
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      app/enterprise/controller/TalentAllowance.php

+ 5 - 1
app/enterprise/controller/TalentAllowance.php

@@ -938,7 +938,11 @@ class TalentAllowance extends EnterpriseController {
         $whr[] = ["project", "=", ProjectState::JBT];
         $whr[] = ["isConditionFile", "=", 0];
         $whr[] = ["delete", "=", 0];
-        $commonFileTypes = Db::table("new_common_filetype")->where($whr)->whereRaw("find_in_set(:enterpriseId,enterpriseIds)", ["enterpriseId" => $this->user["uid"]])->select()->toArray();
+        if ($this->user["type"] == CommonConst::ENTERPRISE_JC) {
+            $commonFileTypes = Db::table("new_common_filetype")->where($whr)->whereRaw("find_in_set(:enterpriseId,enterpriseIds)", ["enterpriseId" => $this->user["uid"]])->select()->toArray();
+        } else {
+            $commonFileTypes = Db::table("new_common_filetype")->where($whr)->select()->toArray();
+        }
 
         foreach ($list as $key => $item) {
             $list[$key]["ext"] = pathinfo($item["url"])["extension"];