Explorar o código

Default Changelist

yingzi %!s(int64=2) %!d(string=hai) anos
pai
achega
26e6473ff2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/system/controller/Audit.php

+ 1 - 1
app/system/controller/Audit.php

@@ -223,7 +223,7 @@ class Audit extends BaseController
         }
         //审核通过
         if ($post['type'] == 1) {
-            $employee_number = 'MYJ' . date('Ymd') . str_pad((new TypeAudit)->max('id') + 1, 6, '0', STR_PAD_LEFT);
+            $employee_number = 'MYJ' . date('Ymd') . str_pad((new TypeAudit)->count() + 100000, 6, '0', STR_PAD_LEFT);
             (new TypeAudit)
                 ->where('id', $post['id'])
                 ->save([