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