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']}', "; } }