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"];