代码下载接口

This commit is contained in:
2025-05-13 16:49:45 +08:00
parent 93d99abc97
commit 2299813664

View File

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