|
@@ -809,15 +809,6 @@ class Talent extends AdminController {
|
|
$new_no = intval(substr($max_no, $subindex)) + 1;
|
|
$new_no = intval(substr($max_no, $subindex)) + 1;
|
|
$max_no = $no_prefix . str_pad($new_no, 4, "0", STR_PAD_LEFT);
|
|
$max_no = $no_prefix . str_pad($new_no, 4, "0", STR_PAD_LEFT);
|
|
}
|
|
}
|
|
- $no_prefix = $_prefix_type . $year . $talent_info["talent_arrange"];
|
|
|
|
- $where = [];
|
|
|
|
- $where[] = ["certificateNo", "like", $no_prefix . "%"];
|
|
|
|
- $max_no = $talent_max_no[$talent_info["talent_arrange"]] ?: Db::table("new_talent_info")->where($where)->max("certificateNo", false);
|
|
|
|
- if (!$max_no) {
|
|
|
|
- $max_no = $no_prefix . "0001";
|
|
|
|
- } else {
|
|
|
|
- $new_no = intval(substr($max_no, 5)) + 1;
|
|
|
|
- $max_no = $no_prefix . str_pad($new_no, 4, "0", STR_PAD_LEFT);
|
|
|
|
}
|
|
}
|
|
//更新证书编号
|
|
//更新证书编号
|
|
$data["id"] = $talent_info["id"];
|
|
$data["id"] = $talent_info["id"];
|