|
@@ -207,6 +207,18 @@ class TalentQuit extends EnterpriseController {
|
|
|
return $responseObj;
|
|
|
}
|
|
|
$ti = \app\common\api\VerifyApi::getTalentInfoById($talentQuit["talentId"]);
|
|
|
+ if (!$ti) {
|
|
|
+ unset($where);
|
|
|
+ $where[] = ["card_number", "=", $idCard];
|
|
|
+ $where[] = ["checkState", "=", \app\common\api\TalentState::CERTIFICATED];
|
|
|
+ $where[] = ["active", "=", 2];
|
|
|
+ $where[] = ["delete", "=", 0];
|
|
|
+ $ti = \app\enterprise\model\Talent::where($where)->order("createTime desc")->find();
|
|
|
+ }
|
|
|
+ if (!$ti) {
|
|
|
+ $responseObj->msg = "未匹配到人才数据";
|
|
|
+ return $responseObj;
|
|
|
+ }
|
|
|
if ($ti["active"] == 1) {
|
|
|
$responseObj->msg = "您所申报的优秀人才处于在职状态,请先办理离职后再做申请!";
|
|
|
return $responseObj;
|