|
@@ -793,7 +793,7 @@ class Talent extends AdminController {
|
|
|
$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");
|
|
|
+ $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 {
|