|
@@ -589,13 +589,13 @@ class Talent extends AdminController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 预备人才库-批量发证
|
|
|
+ * 预备人才库-批量发放人才码
|
|
|
* @auth {{/talentInfo/prepareCertification}}
|
|
|
*/
|
|
|
public function prepareCertification() {
|
|
|
$lockFile = fopen("send_certificate.lock", "a");
|
|
|
if (flock($lockFile, LOCK_EX | LOCK_NB)) {//文件锁(独占)
|
|
|
-//查询所有待发证的数据
|
|
|
+//查询所有待发放人才码的数据
|
|
|
$params = $this->request->param();
|
|
|
$ids = array_filter(explode(",", $params["ids"]));
|
|
|
//晋江市优秀人才证书:当前年份+层次+四位递增数字
|
|
@@ -609,7 +609,7 @@ class Talent extends AdminController {
|
|
|
foreach ($talent_list as $talent_info) {
|
|
|
if ($talent_info["checkState"] != TalentState::PUBLISH_PASS) {
|
|
|
Db::rollback();
|
|
|
- return json(["msg" => "只能对公布通过的对象进行发证,请核查待发证名单后再重新发证"]);
|
|
|
+ return json(["msg" => "只能对公布通过的对象发放人才码,请核查待发放人才码名单后再重新发放人才码"]);
|
|
|
}
|
|
|
|
|
|
$no_prefix = $year . $talent_info["talent_arrange"];
|
|
@@ -636,7 +636,7 @@ class Talent extends AdminController {
|
|
|
$log["mainId"] = $talent_info["id"];
|
|
|
$log["companyId"] = $user["companyId"];
|
|
|
$log["active"] = 1;
|
|
|
- $log["description"] = "人才编号为:" . $max_no;
|
|
|
+ $log["description"] = "人才码为:" . $max_no;
|
|
|
$log["createUser"] = sprintf("%s(%s)", $user["account"], $user["companyName"] ?: $user["rolename"]);
|
|
|
$log["createTime"] = date("Y-m-d H:i:s");
|
|
|
Db::table("new_talent_checklog")->insert($log);
|
|
@@ -644,14 +644,14 @@ class Talent extends AdminController {
|
|
|
$talent_max_no[$talent_info["talent_arrange"]] = $max_no;
|
|
|
}
|
|
|
Db::commit();
|
|
|
- return json(["code" => 200, "msg" => "发证成功"]);
|
|
|
+ return json(["code" => 200, "msg" => "发放人才码成功"]);
|
|
|
} catch (\Exception $e) {
|
|
|
Db::rollback();
|
|
|
- return json(["msg" => "发证失败:" . $e->getMessage()]);
|
|
|
+ return json(["msg" => "发放人才码失败:" . $e->getMessage()]);
|
|
|
}
|
|
|
flock($lockFile, LOCK_UN);
|
|
|
} else {
|
|
|
- return json(["msg" => "同一时间只能有一个管理员进行发证操作"]);
|
|
|
+ return json(["msg" => "同一时间只能有一个管理员进行发放人才码操作"]);
|
|
|
}
|
|
|
}
|
|
|
|