|
@@ -32,6 +32,7 @@ class ReVerifyChecker extends Command {
|
|
$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 = ''))");
|
|
$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 = ''))");
|
|
//$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("(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 = ''))");
|
|
$where[] = ["ti.checkState", "in", [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS]];
|
|
$where[] = ["ti.checkState", "in", [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS]];
|
|
|
|
+ $where[] = ["e.type", "=", 1]; //只对晋江人才相关部门发送短信
|
|
$list = Talent::alias("ti")
|
|
$list = Talent::alias("ti")
|
|
->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
|
|
->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
|
|
->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|