|
@@ -63,25 +63,20 @@ class EnterpriseApi {
|
|
|
|
|
|
if (($talentType || $org || $ins) && $uniCodes) {
|
|
if (($talentType || $org || $ins) && $uniCodes) {
|
|
if ($expUniCodes) {
|
|
if ($expUniCodes) {
|
|
- $whereRaw = sprintf('(enterpriseTag in ("%s") and organizationTag in ("%s") and institutionTag in ("%s") and idCard not in ("%s")) or idCard in ("%s")', implode('","', $talentType), implode('","', $org), implode('","', $ins), implode('","', $expUniCodes), implode('","', $uniCodes));
|
|
|
|
|
|
+ $whereRaw = sprintf('(enterpriseTag in ("%s") or organizationTag in ("%s") or institutionTag in ("%s") and idCard not in ("%s")) or idCard in ("%s")', implode('","', $talentType), implode('","', $org), implode('","', $ins), implode('","', $expUniCodes), implode('","', $uniCodes));
|
|
} else {
|
|
} else {
|
|
- $whereRaw = sprintf('enterpriseTag in ("%s") and organizationTag in ("%s") and institutionTag in ("%s") or idCard in ("%s")', implode('","', $talentType), implode('","', $org), implode('","', $ins), implode('","', $uniCodes));
|
|
|
|
|
|
+ $whereRaw = sprintf('enterpriseTag in ("%s") or organizationTag in ("%s") or institutionTag in ("%s") or idCard in ("%s")', implode('","', $talentType), implode('","', $org), implode('","', $ins), implode('","', $uniCodes));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
if (($talentType || $org || $ins) && !$uniCodes) {
|
|
if (($talentType || $org || $ins) && !$uniCodes) {
|
|
- if($talentType){
|
|
|
|
- $where[] = ["enterpriseTag", "in", $talentType];
|
|
|
|
- }
|
|
|
|
- if($org){
|
|
|
|
- $where[] = ["organizationTag", "in", $org];
|
|
|
|
- }
|
|
|
|
- if($ins){
|
|
|
|
- $where[] = ["institutionTag", "in", $ins];
|
|
|
|
- }
|
|
|
|
if ($expUniCodes) {
|
|
if ($expUniCodes) {
|
|
- $where[] = ["idCard", "not in", $expUniCodes];
|
|
|
|
|
|
+ $whereRaw = sprintf('enterpriseTag in ("%s") or organizationTag in ("%s") or institutionTag in ("%s") and idCard not in ("%s")', implode('","', $talentType), implode('","', $org), implode('","', $ins), implode('","', $expUniCodes));
|
|
|
|
+ } else {
|
|
|
|
+ $whereRaw = sprintf('enterpriseTag in ("%s") or organizationTag in ("%s") or institutionTag in ("%s") ', implode('","', $talentType), implode('","', $org), implode('","', $ins));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
if (!$talentType && !$org && !$ins && $uniCodes) {
|
|
if (!$talentType && !$org && !$ins && $uniCodes) {
|
|
$where[] = ["idCard", "in", $uniCodes];
|
|
$where[] = ["idCard", "in", $uniCodes];
|
|
}
|
|
}
|