Răsfoiți Sursa

修复发证失败

sugangqiang 1 an în urmă
părinte
comite
73c0669cf5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app/admin/controller/Talent.php

+ 1 - 1
app/admin/controller/Talent.php

@@ -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 {