|
@@ -90,16 +90,26 @@ class Talent extends EnterpriseController {
|
|
}
|
|
}
|
|
if ($request->isPost()) {
|
|
if ($request->isPost()) {
|
|
$checkState = $info["checkState"] ?: 0;
|
|
$checkState = $info["checkState"] ?: 0;
|
|
- if ($checkState == TalentState::SCND_SAVE || $checkState == 0) {
|
|
|
|
|
|
+ if ($checkState == TalentState::SCND_SAVE || $checkState == TalentState::FST_SAVE || $checkState == 0) {
|
|
switch ($type) {
|
|
switch ($type) {
|
|
- case 1:
|
|
|
|
|
|
+ case CommonConst::ENTERPRISE_NORMAL:
|
|
$this->mixSave($info, $request, TalentState::SCND_SAVE);
|
|
$this->mixSave($info, $request, TalentState::SCND_SAVE);
|
|
exit();
|
|
exit();
|
|
break;
|
|
break;
|
|
- case 2:
|
|
|
|
|
|
+ case CommonConst::ENTERPRISE_JC:
|
|
$this->icSave($info, $request, TalentState::SCND_SAVE);
|
|
$this->icSave($info, $request, TalentState::SCND_SAVE);
|
|
exit();
|
|
exit();
|
|
break;
|
|
break;
|
|
|
|
+ case CommonConst::ENTERPRISE_WJ:
|
|
|
|
+ if ($ep->isGeneral == 1) {
|
|
|
|
+ $this->wjSave($info, $request, TalentState::SCND_SAVE);
|
|
|
|
+ } else {
|
|
|
|
+ $this->wjSave($info, $request, TalentState::FST_SAVE);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case CommonConst::ENTERPRISE_GJ:
|
|
|
|
+ $this->gjSave($info, $request, TalentState::SCND_SAVE);
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
} else if (in_array($checkState, [TalentState::BASE_VERIFY_FAIL, TalentState::BASE_REVERIFY_FAIL, TalentState::FST_VERIFY_FAIL, TalentState::REVERIFY_FAIL])) {
|
|
} else if (in_array($checkState, [TalentState::BASE_VERIFY_FAIL, TalentState::BASE_REVERIFY_FAIL, TalentState::FST_VERIFY_FAIL, TalentState::REVERIFY_FAIL])) {
|
|
$res = ["msg" => "审核不通过,不能再保存"];
|
|
$res = ["msg" => "审核不通过,不能再保存"];
|
|
@@ -303,10 +313,14 @@ class Talent extends EnterpriseController {
|
|
|
|
|
|
public function submitToCheck() {
|
|
public function submitToCheck() {
|
|
switch ($this->user["type"]) {
|
|
switch ($this->user["type"]) {
|
|
- case 1:
|
|
|
|
|
|
+ case CommonConst::ENTERPRISE_NORMAL:
|
|
return $this->submitToCheck_JJRC();
|
|
return $this->submitToCheck_JJRC();
|
|
- case 2:
|
|
|
|
|
|
+ case CommonConst::ENTERPRISE_JC:
|
|
return $this->submitToCheck_IC();
|
|
return $this->submitToCheck_IC();
|
|
|
|
+ case CommonConst::ENTERPRISE_WJ:
|
|
|
|
+ return $this->submitToCheck_WJ();
|
|
|
|
+ case CommonConst::ENTERPRISE_GJ:
|
|
|
|
+ return $this->submitToCheck_GJ();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -508,7 +522,7 @@ class Talent extends EnterpriseController {
|
|
$whr = [];
|
|
$whr = [];
|
|
$whr[] = ["typeId", "in", $ft_ids];
|
|
$whr[] = ["typeId", "in", $ft_ids];
|
|
$whr[] = ["mainId", "=", $id];
|
|
$whr[] = ["mainId", "=", $id];
|
|
- $distinct_filetypes = Db::table("new_talent_file")->where($whr)->distinct(true)->field("typeId")->select();
|
|
|
|
|
|
+ $distinct_filetypes = Db::table("new_talent_file")->where($whr)->distinct(true)->field("typeId")->select()->toArray();
|
|
$upload_type_counts = count($distinct_filetypes);
|
|
$upload_type_counts = count($distinct_filetypes);
|
|
if ($upload_type_counts != count($ft_ids)) {
|
|
if ($upload_type_counts != count($ft_ids)) {
|
|
return json(["msg" => "请留意附件上传栏中带*号的内容均为必传项,请上传完整再提交审核"]);
|
|
return json(["msg" => "请留意附件上传栏中带*号的内容均为必传项,请上传完整再提交审核"]);
|
|
@@ -521,6 +535,75 @@ class Talent extends EnterpriseController {
|
|
return json(["msg" => "已提交审核,请耐心等待", "code" => 500]);
|
|
return json(["msg" => "已提交审核,请耐心等待", "code" => 500]);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 提交表单:卫健
|
|
|
|
+ */
|
|
|
|
+ private function submitToCheck_WJ() {
|
|
|
|
+ $params = $this->request->param();
|
|
|
|
+ $id = $params["id"];
|
|
|
|
+ if (!$info = TalentApi::chkIsOwner($id, $this->user["uid"])) {
|
|
|
|
+ return json(["msg" => "没有对应的人才认定申报信息"]);
|
|
|
|
+ }
|
|
|
|
+ if ($info) {
|
|
|
|
+ $info["real_state"] = TalentLogApi::getLastLog($id, 1)["state"];
|
|
|
|
+ }
|
|
|
|
+ $checkState = $info["checkState"];
|
|
|
|
+ if ($checkState == TalentState::SCND_SAVE || $checkState == TalentState::FST_SAVE) {
|
|
|
|
+ $field_dict = \app\common\api\DictApi::getTalentFields_WJ();
|
|
|
|
+
|
|
|
|
+ $no_empty = ["name", "sex", "nation", "politics", "card_type", "card_number", "birthday", "talent_type",
|
|
|
|
+ "highest_degree", "graduate_school", "major", "position", "cur_entry_time", "labor_contract_rangetime",
|
|
|
|
+ "talent_arrange", "talent_condition",
|
|
|
|
+ "bank", "bank_account", "bank_number", "bank_branch_name"];
|
|
|
|
+
|
|
|
|
+ $no_empty = array_filter($no_empty);
|
|
|
|
+ $return = [];
|
|
|
|
+ foreach ($no_empty as $key) {
|
|
|
|
+ if (!$info[$key]) {
|
|
|
|
+ $return[] = sprintf("请填写“%s”", $field_dict[$key]);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (count($return) > 0) {
|
|
|
|
+ return json(["msg" => implode("<br>", $return)]);
|
|
|
|
+ }
|
|
|
|
+ $condition_info = Db::table("new_talent_condition")->findOrEmpty($params["talent_condition"]);
|
|
|
|
+ if ($condition_info["bindFileTypes"]) {
|
|
|
|
+ $whr[] = ["id", "in", $condition_info["bindFileTypes"]];
|
|
|
|
+ $whr[] = ["must", "=", 1];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $where = [];
|
|
|
|
+ $where[] = ["project", "=", ProjectState::TALENT];
|
|
|
|
+ $where[] = ["type", "=", $this->user["type"]];
|
|
|
|
+ $where[] = ["must", "=", 1];
|
|
|
|
+ $where[] = ["active", "=", 1];
|
|
|
|
+ $where[] = ["delete", "=", 0];
|
|
|
|
+ $where[] = ["isConditionFile", "<>", 1];
|
|
|
|
+ if ($whr) {
|
|
|
|
+ $filetypes = Db::table("new_common_filetype")->whereOr([$where, $whr])->select()->toArray();
|
|
|
|
+ } else {
|
|
|
|
+ $filetypes = Db::table("new_common_filetype")->where($where)->select()->toArray();
|
|
|
|
+ }
|
|
|
|
+ $ft_ids = array_column($filetypes, "id");
|
|
|
|
+ $whr = [];
|
|
|
|
+ $whr[] = ["typeId", "in", $ft_ids];
|
|
|
|
+ $whr[] = ["mainId", "=", $id];
|
|
|
|
+ $distinct_filetypes = Db::table("new_talent_file")->where($whr)->distinct(true)->field("typeId")->select()->toArray();
|
|
|
|
+ $upload_type_counts = count($distinct_filetypes);
|
|
|
|
+ if ($upload_type_counts != count($ft_ids)) {
|
|
|
|
+ return json(["msg" => "请留意附件上传栏中带*号的内容均为必传项,请上传完整再提交审核"]);
|
|
|
|
+ }
|
|
|
|
+ if ($checkState == TalentState::FST_SAVE) {
|
|
|
|
+ return $this->wjSave($info, $this->request, TalentState::FST_SUBMIT);
|
|
|
|
+ } else {
|
|
|
|
+ return $this->wjSave($info, $this->request, TalentState::SCND_SUBMIT);
|
|
|
|
+ }
|
|
|
|
+ } else if (in_array($checkState, [TalentState::BASE_VERIFY_FAIL, TalentState::BASE_REVERIFY_FAIL, TalentState::FST_VERIFY_FAIL, TalentState::REVERIFY_FAIL, TalentState::ZX_FAIL, TalentState::ANNOUNCED_REVERIFY_FAIL, TalentState::PUBLISH_FAIL])) {
|
|
|
|
+ return json(["msg" => "审核不通过,不能再提交审核", "code" => 500]);
|
|
|
|
+ }
|
|
|
|
+ return json(["msg" => "已提交审核,请耐心等待", "code" => 500]);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 保存表单(旧第二步)
|
|
* 保存表单(旧第二步)
|
|
* @param type $info talent_info
|
|
* @param type $info talent_info
|
|
@@ -796,6 +879,7 @@ class Talent extends EnterpriseController {
|
|
$success_msg = "保存成功";
|
|
$success_msg = "保存成功";
|
|
if ($data["id"]) {
|
|
if ($data["id"]) {
|
|
//编辑
|
|
//编辑
|
|
|
|
+ $data["updateTime"] = date("Y-m-d H:i:s");
|
|
TalentModel::update($data);
|
|
TalentModel::update($data);
|
|
$last_log = TalentLogApi::getLastLog($data["id"], 1);
|
|
$last_log = TalentLogApi::getLastLog($data["id"], 1);
|
|
if ($last_log["new_state"] != TalentState::SCND_SAVE) {
|
|
if ($last_log["new_state"] != TalentState::SCND_SAVE) {
|
|
@@ -808,6 +892,7 @@ class Talent extends EnterpriseController {
|
|
} else {
|
|
} else {
|
|
//新增
|
|
//新增
|
|
$data["enterprise_id"] = $this->user["uid"];
|
|
$data["enterprise_id"] = $this->user["uid"];
|
|
|
|
+ $data["createTime"] = date("Y-m-d H:i:s");
|
|
$id = TalentModel::insertGetId($data);
|
|
$id = TalentModel::insertGetId($data);
|
|
TalentLogApi::write(1, $id, $checkState, "保存未提交", 1);
|
|
TalentLogApi::write(1, $id, $checkState, "保存未提交", 1);
|
|
$whr = [];
|
|
$whr = [];
|
|
@@ -822,10 +907,12 @@ class Talent extends EnterpriseController {
|
|
$data["new_submit_time"] = date("Y-m-d H:i:s");
|
|
$data["new_submit_time"] = date("Y-m-d H:i:s");
|
|
}
|
|
}
|
|
if ($data["id"]) {
|
|
if ($data["id"]) {
|
|
|
|
+ $data["updateTime"] = date("Y-m-d H:i:s");
|
|
TalentModel::update($data);
|
|
TalentModel::update($data);
|
|
} else {
|
|
} else {
|
|
//新增
|
|
//新增
|
|
$data["enterprise_id"] = $this->user["uid"];
|
|
$data["enterprise_id"] = $this->user["uid"];
|
|
|
|
+ $data["createTime"] = date("Y-m-d H:i:s");
|
|
$id = TalentModel::insertGetId($data);
|
|
$id = TalentModel::insertGetId($data);
|
|
$whr = [];
|
|
$whr = [];
|
|
$whr[] = ["fileId", "in", $files];
|
|
$whr[] = ["fileId", "in", $files];
|
|
@@ -962,6 +1049,7 @@ class Talent extends EnterpriseController {
|
|
$success_msg = "保存成功";
|
|
$success_msg = "保存成功";
|
|
if ($data["id"]) {
|
|
if ($data["id"]) {
|
|
//编辑
|
|
//编辑
|
|
|
|
+ $data["updateTime"] = date("Y-m-d H:i:s");
|
|
TalentModel::update($data);
|
|
TalentModel::update($data);
|
|
$last_log = TalentLogApi::getLastLog($data["id"], 1);
|
|
$last_log = TalentLogApi::getLastLog($data["id"], 1);
|
|
if ($last_log["new_state"] != TalentState::SCND_SAVE) {
|
|
if ($last_log["new_state"] != TalentState::SCND_SAVE) {
|
|
@@ -974,6 +1062,7 @@ class Talent extends EnterpriseController {
|
|
} else {
|
|
} else {
|
|
//新增
|
|
//新增
|
|
$data["enterprise_id"] = $this->user["uid"];
|
|
$data["enterprise_id"] = $this->user["uid"];
|
|
|
|
+ $data["createTime"] = date("Y-m-d H:i:s");
|
|
$id = TalentModel::insertGetId($data);
|
|
$id = TalentModel::insertGetId($data);
|
|
TalentLogApi::write(1, $id, $checkState, "保存未提交", 1);
|
|
TalentLogApi::write(1, $id, $checkState, "保存未提交", 1);
|
|
$whr = [];
|
|
$whr = [];
|
|
@@ -986,6 +1075,7 @@ class Talent extends EnterpriseController {
|
|
exit();
|
|
exit();
|
|
} else if ($checkState == TalentState::SCND_SUBMIT) {
|
|
} else if ($checkState == TalentState::SCND_SUBMIT) {
|
|
$data["new_submit_time"] = date("Y-m-d H:i:s");
|
|
$data["new_submit_time"] = date("Y-m-d H:i:s");
|
|
|
|
+ $data["updateTime"] = date("Y-m-d H:i:s");
|
|
TalentModel::update($data);
|
|
TalentModel::update($data);
|
|
TalentLogApi::write(1, $data["id"], $checkState, "确认提交审核", 1);
|
|
TalentLogApi::write(1, $data["id"], $checkState, "确认提交审核", 1);
|
|
return json(["msg" => $success_msg, "code" => 200]);
|
|
return json(["msg" => $success_msg, "code" => 200]);
|
|
@@ -1020,6 +1110,145 @@ class Talent extends EnterpriseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 卫健保存
|
|
|
|
+ * @param type $info
|
|
|
|
+ * @param \think\Request $request
|
|
|
|
+ * @param type $checkState
|
|
|
|
+ * @return type
|
|
|
|
+ * @throws ValidateException
|
|
|
|
+ */
|
|
|
|
+ private function wjSave($info, \think\Request $request, $checkState) {
|
|
|
|
+ try {
|
|
|
|
+ $batch = BatchApi::checkBatchValid(["type" => ProjectState::TALENT, "year" => $info["apply_year"], "first_submit_time" => $info["first_submit_time"]], $this->user["type"]);
|
|
|
|
+ if ($batch["code"] != 200) {
|
|
|
|
+ throw new ValidateException($batch["msg"]);
|
|
|
|
+ }
|
|
|
|
+ $param = $request->param();
|
|
|
|
+ validate(TalentInfo::class)->check($param);
|
|
|
|
+ $id = $param["id"];
|
|
|
|
+ if ($id) {
|
|
|
|
+ if (!$info || $info["id"] != $id || $info["enterprise_id"] != $this->user["uid"]) {
|
|
|
|
+ throw new ValidateException("没有对应的人才认定申报信息");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $files = $param["uploadFiles"];
|
|
|
|
+ $data["headimgurl"] = $info["headimgurl"];
|
|
|
|
+ if ($request->file()) {
|
|
|
|
+ $headimg = $request->file("photo");
|
|
|
|
+ $upload = new \app\common\api\UploadApi();
|
|
|
|
+ $result = $upload->uploadOne($headimg, "image", "talent/photo");
|
|
|
|
+ $file = imagecreatefromstring(file_get_contents("storage/" . $result->filepath));
|
|
|
|
+ $width = imagesx($file);
|
|
|
|
+ $height = imagesy($file);
|
|
|
|
+ //免冠二寸照长宽413:579
|
|
|
|
+ if ($width * 579 != $height * 413) {
|
|
|
|
+ @unlink("storage/" . $result->filepath); //像素不符合,删除上传文件
|
|
|
|
+ throw new ValidateException("近期免冠半身彩照(二寸)不符合二寸像素标准。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
|
|
+ }
|
|
|
|
+ if ($info && $info["headimgurl"]) {
|
|
|
|
+ //如果新照片符合像素要求,则删除旧照片
|
|
|
|
+ $old_head_url = "storage/" . $info["headimgurl"];
|
|
|
|
+ if (file_exists($old_head_url))
|
|
|
|
+ @unlink($old_head_url);
|
|
|
|
+ }
|
|
|
|
+ $data["headimgurl"] = $result->filepath;
|
|
|
|
+ }
|
|
|
|
+ if (!$data["headimgurl"] && ($checkState == TalentState::SCND_SUBMIT || $checkState == TalentState::FST_SUBMIT))
|
|
|
|
+ throw new ValidateException("请上传头像。*<span style='color:#ff0000;'>二寸像素标准[413*579]</span>");
|
|
|
|
+
|
|
|
|
+ $data["apply_year"] = $batch["batch"];
|
|
|
|
+
|
|
|
|
+ $all_valid_keys = ["name", "sex", "nation", "politics", "card_type", "card_number", "birthday", "talent_type",
|
|
|
|
+ "highest_degree", "graduate_school", "major", "study_abroad", "abroad_school", "abroad_major",
|
|
|
|
+ "position", "cur_entry_time", "labor_contract_rangetime", "title",
|
|
|
|
+ "talent_arrange", "talent_condition",
|
|
|
|
+ "phone", "email", "bank", "bank_account", "bank_number", "bank_branch_name", "experience", "education"];
|
|
|
|
+ foreach ($all_valid_keys as $key) {
|
|
|
|
+ $value = trim($param[$key]);
|
|
|
|
+ if ($value) {
|
|
|
|
+ $data[$key] = $value;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if ($info["real_state"] == TalentState::FST_VERIFY_REJECT || $info["real_state"] == TalentState::BASE_REJECT) {
|
|
|
|
+ //真实状态11是驳回,需要判断什么字段可以提交
|
|
|
|
+ $modify_fields = array_filter(explode(",", $info["modify_fields"]));
|
|
|
|
+ $tmp_data = $data;
|
|
|
|
+ $data = [];
|
|
|
|
+ foreach ($modify_fields as $field) {
|
|
|
|
+ $data[$field] = $tmp_data[$field];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $data["checkState"] = $checkState;
|
|
|
|
+ $data["id"] = $id;
|
|
|
|
+ $success_msg = "提交成功";
|
|
|
|
+ $error_msg = "提交失败";
|
|
|
|
+ if ($checkState == TalentState::SCND_SAVE || $checkState == TalentState::FST_SAVE) {
|
|
|
|
+ $success_msg = "保存成功";
|
|
|
|
+ if ($data["id"]) {
|
|
|
|
+ //编辑
|
|
|
|
+ $data["updateTime"] = date("Y-m-d H:i:s");
|
|
|
|
+ TalentModel::update($data);
|
|
|
|
+ $last_log = TalentLogApi::getLastLog($data["id"], 1);
|
|
|
|
+ if ($last_log["new_state"] != TalentState::SCND_SAVE || $last_log["new_state"] != TalentState::FST_SAVE) {
|
|
|
|
+ TalentLogApi::write(1, $data["id"], $checkState, "保存未提交", 1);
|
|
|
|
+ } else {
|
|
|
|
+ if (!$last_log["companyId"]) {
|
|
|
|
+ TalentLogApi::setActive($last_log["id"], 1); //更新修改时间
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ //新增
|
|
|
|
+ $data["enterprise_id"] = $this->user["uid"];
|
|
|
|
+ $data["createTime"] = date("Y-m-d H:i:s");
|
|
|
|
+ $id = TalentModel::insertGetId($data);
|
|
|
|
+ TalentLogApi::write(1, $id, $checkState, "保存未提交", 1);
|
|
|
|
+ $whr = [];
|
|
|
|
+ $whr[] = ["fileId", "in", $files];
|
|
|
|
+ $upd_checklog["mainId"] = $id;
|
|
|
|
+ Db::table("new_talent_checklog")->where($whr)->save($upd_checklog);
|
|
|
|
+ }
|
|
|
|
+ $res = ["code" => 200, "msg" => $success_msg, "obj" => ["id" => $id, "checkState" => $checkState]];
|
|
|
|
+ echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
|
|
|
|
+ exit();
|
|
|
|
+ } else if ($checkState == TalentState::SCND_SUBMIT || $checkState == TalentState::FST_SUBMIT) {
|
|
|
|
+ $data["new_submit_time"] = date("Y-m-d H:i:s");
|
|
|
|
+ $data["updateTime"] = date("Y-m-d H:i:s");
|
|
|
|
+ TalentModel::update($data);
|
|
|
|
+ TalentLogApi::write(1, $data["id"], $checkState, "确认提交审核", 1);
|
|
|
|
+ return json(["msg" => $success_msg, "code" => 200]);
|
|
|
|
+ } else {
|
|
|
|
+ throw new ValidateException($error_msg);
|
|
|
|
+ }
|
|
|
|
+ } catch (ValidateException $e) {
|
|
|
|
+ if ($checkState == TalentState::SCND_SAVE) {
|
|
|
|
+ $res = ["msg" => $e->getMessage()];
|
|
|
|
+ echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
|
|
|
|
+ exit();
|
|
|
|
+ } else {
|
|
|
|
+ return json(["msg" => $e->getMessage()]);
|
|
|
|
+ }
|
|
|
|
+ } catch (\think\Exception $e) {
|
|
|
|
+ $res = ["msg" => "发生预料外错误,请联系管理员处理,错误代码:" . $e->getCode()];
|
|
|
|
+ $logInfo = [
|
|
|
|
+ "enterprise_id" => $this->user["uid"],
|
|
|
|
+ "data" => $data,
|
|
|
|
+ "controller" => $this->request->controller(),
|
|
|
|
+ "action" => $this->request->action(),
|
|
|
|
+ "errCode" => $e->getCode(),
|
|
|
|
+ "errMsg" => $e->getMessage()
|
|
|
|
+ ];
|
|
|
|
+ Log::write($logInfo, "error");
|
|
|
|
+ if ($checkState == TalentState::SCND_SAVE || $checkState == TalentState::FST_SAVE) {
|
|
|
|
+ echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
|
|
|
|
+ exit();
|
|
|
|
+ } else {
|
|
|
|
+ return json($res);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
public function delete() {
|
|
public function delete() {
|
|
$id = $this->request->param("talentInfoId");
|
|
$id = $this->request->param("talentInfoId");
|
|
$info = Talent::chkIsOwner($id, $this->user["uid"]);
|
|
$info = Talent::chkIsOwner($id, $this->user["uid"]);
|
|
@@ -1035,12 +1264,13 @@ class Talent extends EnterpriseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
$data["id"] = $id;
|
|
$data["id"] = $id;
|
|
|
|
+ $data["updateTime"] = date("Y-m-d H:i:s");
|
|
$data["delete"] = 1;
|
|
$data["delete"] = 1;
|
|
TalentModel::update($data);
|
|
TalentModel::update($data);
|
|
return json(["msg" => "删除成功"]);
|
|
return json(["msg" => "删除成功"]);
|
|
}
|
|
}
|
|
|
|
|
|
- public function detail(){
|
|
|
|
|
|
+ public function detail() {
|
|
$id = $this->request->param("id");
|
|
$id = $this->request->param("id");
|
|
$info = $this->getInfoById($id);
|
|
$info = $this->getInfoById($id);
|
|
return json($info);
|
|
return json($info);
|