From 2299813664e1e0798638402fe96a100df6ef1ddf Mon Sep 17 00:00:00 2001 From: lq Date: Tue, 13 May 2025 16:49:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=8B=E8=BD=BD=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/core/CodeGenerationService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Service/core/CodeGenerationService.php b/app/Service/core/CodeGenerationService.php index 58e500fa..fbe44639 100644 --- a/app/Service/core/CodeGenerationService.php +++ b/app/Service/core/CodeGenerationService.php @@ -187,7 +187,6 @@ class CodeGenerationService */ public function generate($params): mixed { - ds($params); $this->param = $params; DB::beginTransaction(); try { @@ -265,7 +264,7 @@ class CodeGenerationService $sql .= " {$v['name']} {$v['type']} {$v['not_null']} NULL COMMENT '{$v['comment']}', "; } else { // 编写sql语句 - $sql .= " {$v['name']} {$v['type']}({$v['type_number']}) {$v['default']} {$v['not_null']} NULL COMMENT '{$v['comment']}', "; + $sql .= " {$v['name']} {$v['type']}({$v['type_length']}) {$v['default']} {$v['not_null']} NULL COMMENT '{$v['comment']}', "; } }