sugangqiang 2 years ago
parent
commit
091a43a79c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/common/api/EnterpriseApi.php

+ 2 - 2
app/common/api/EnterpriseApi.php

@@ -38,7 +38,7 @@ class EnterpriseApi {
                     $uniCodes = array_merge($uniCodes, (array) $codes);
                 }
                 if ($talentType && $uniCodes) {
-                    $whereRaw = sprintf('enterpriseTag in (%s) or idCard in (%s)', explode(",", $talentType), explode(",", $uniCodes));
+                    $whereRaw = sprintf('enterpriseTag in ("%s") or idCard in ("%s")', implode('","', $talentType), implode('","', $uniCodes));
                 }
                 if ($talentType && !$uniCodes) {
                     $where[] = ["enterpriseTag", "in", $talentType];
@@ -143,7 +143,7 @@ class EnterpriseApi {
                     $uniCodes = array_merge($uniCodes, (array) $codes);
                 }
                 if ($talentType && $uniCodes) {
-                    $whereRaw = sprintf('newEnterpriseTag in (%s) or newIdCard in (%s)', explode(",", $talentType), explode(",", $uniCodes));
+                    $whereRaw = sprintf('newEnterpriseTag in ("%s") or newIdCard in ("%s")', implode('","', $talentType), implode('","', $uniCodes));
                 }
                 if ($talentType && !$uniCodes) {
                     $where[] = ["newEnterpriseTag", "in", $talentType];