|
@@ -83,6 +83,22 @@ class TalentBasicChange extends AdminController {
|
|
|
$responseObj->msg = "系统错误,请联系管理员";
|
|
|
return $responseObj;
|
|
|
}
|
|
|
+ if (strlen($info["talentId"]) == 19) {
|
|
|
+ //旧系统申请兼容处理
|
|
|
+ unset($where);
|
|
|
+ $where[] = ["enterprise_id", "=", $info["enterpriseId"]];
|
|
|
+ $where[] = ["card_type", "=", $info["oldCardType"]];
|
|
|
+ $where[] = ["card_number", "=", $info["oldIdCard"]];
|
|
|
+ $where[] = ["checkState", "=", \app\common\api\TalentState::CERTIFICATED];
|
|
|
+ $where[] = ["active", "=", 1];
|
|
|
+ $where[] = ["delete", "=", 0];
|
|
|
+ $ti = \app\enterprise\model\Talent::where($where)->order("createTime desc")->find();
|
|
|
+ if (!$ti) {
|
|
|
+ $responseObj->msg = "未匹配到人才数据";
|
|
|
+ return $responseObj;
|
|
|
+ }
|
|
|
+ $info["talentId"] = $ti["id"];
|
|
|
+ }
|
|
|
if (!$checkState) {
|
|
|
$responseObj->msg = "请选择审核状态";
|
|
|
return $responseObj;
|