|
@@ -339,13 +339,13 @@ class VerifyApi {
|
|
|
return self::getDeptList($params, $where);
|
|
|
}
|
|
|
if ($process == 5) {
|
|
|
- $whereRaw = sprintf("(ti.checkState in (14,15,16)) or (ti.checkState=12 and ti.pass_dept_check=0) or (ti.checkState=10 and ti.pass_dept_check=1) or (ti.checkState=10 and (tc.companyIds is null or tc.companyIds = ''))");
|
|
|
+ $whereRaw = sprintf("(tl.state in (14,15,16)) or (tl.state=12 and ti.pass_dept_check=0) or (tl.state=10 and ti.pass_dept_check=1) or (tl.state=10 and (tc.companyIds is null or tc.companyIds = ''))");
|
|
|
switch ($params["checkState"]) {
|
|
|
case 1:
|
|
|
- $where[] = ["ti.checkState", "in", [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS]];
|
|
|
+ $where[] = ["tl.state", "in", [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS]];
|
|
|
break;
|
|
|
case -1:
|
|
|
- $where[] = ["ti.checkState", "=", TalentState::REVERIFY_FAIL];
|
|
|
+ $where[] = ["tl.state", "=", TalentState::REVERIFY_FAIL];
|
|
|
break;
|
|
|
}
|
|
|
$count = Talent::alias("ti")
|