|
@@ -517,39 +517,48 @@ class VerifyApi {
|
|
|
case 2://初审驳回
|
|
|
$where[] = ["tl.new_state", "=", TalentState::SCND_SAVE];
|
|
|
$where[] = ["tl.state", "=", TalentState::FST_VERIFY_REJECT];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
case 3://待初审(首次提交)
|
|
|
$where[] = ["tl.last_state", "<>", TalentState::FST_VERIFY_REJECT];
|
|
|
$where[] = ["tl.state", "=", TalentState::SCND_SUBMIT];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
case 4://待初审(重新提交)
|
|
|
$where[] = ["tl.last_state", "=", TalentState::FST_VERIFY_REJECT];
|
|
|
$where[] = ["tl.state", "=", TalentState::SCND_SUBMIT];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
case 5://待初审(部门并审驳回)
|
|
|
$where[] = ["tl.new_state", "=", TalentState::SCND_SUBMIT];
|
|
|
$where[] = ["tl.state", "=", TalentState::DEPT_VERIFY_REJECT];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
case 6://待初审(复审驳回)
|
|
|
$where[] = ["tl.new_state", "=", TalentState::SCND_SUBMIT];
|
|
|
$where[] = ["tl.state", "=", TalentState::REVERIFY_REJECT];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
case 7://初审通过(待部门并审)
|
|
|
$where[] = ["ti.pass_dept_check", "=", 0];
|
|
|
$where[] = ["tl.state", "=", TalentState::FST_VERIFY_PASS];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
case 8://初审通过(待复审)
|
|
|
$where[] = ["ti.pass_dept_check", "=", 1];
|
|
|
$where[] = ["tl.state", "=", TalentState::FST_VERIFY_PASS];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
case 9://初审不通过
|
|
|
$where[] = ["tl.state", "=", TalentState::FST_VERIFY_FAIL];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
break;
|
|
|
default:
|
|
|
//$whereRaw = sprintf("((tl.new_state=%d and ti.`delete`=0) or tl.new_state=%d or tl.state in (%d,%d) or tl.state>%d)", TalentState::SCND_SAVE, TalentState::SCND_SUBMIT, TalentState::FST_VERIFY_PASS, TalentState::FST_VERIFY_FAIL, TalentState::FST_VERIFY_REJECT);
|
|
|
if ($type == 2) {
|
|
|
$where[] = ["tl.state", "in", [TalentState::FST_VERIFY_REJECT, TalentState::SCND_SUBMIT,
|
|
|
TalentState::DEPT_VERIFY_REJECT, TalentState::REVERIFY_REJECT]];
|
|
|
+ $where[] = ["ti.delete", "=", 0];
|
|
|
} else {
|
|
|
$where[] = ["tl.state", "in", [TalentState::SCND_SAVE, TalentState::FST_VERIFY_REJECT, TalentState::SCND_SUBMIT,
|
|
|
TalentState::DEPT_VERIFY_REJECT, TalentState::REVERIFY_REJECT, TalentState::FST_VERIFY_PASS, TalentState::FST_VERIFY_FAIL]];
|