取消表格导出功能,修复回滚(删表)功能的painc (#1310)
* [feature]:取消表格导出功能 * 修复回滚(删表)painc的问题 * [feature]:修改初始化
This commit is contained in:
@@ -403,9 +403,9 @@ func (autoCodeService *AutoCodeService) GetAllTplFile(pathName string, fileList
|
||||
|
||||
func (autoCodeService *AutoCodeService) DropTable(BusinessDb, tableName string) error {
|
||||
if BusinessDb != "" {
|
||||
return global.GVA_DB.Exec("DROP TABLE " + tableName).Error
|
||||
} else {
|
||||
return global.MustGetGlobalDBByDBName(BusinessDb).Exec("DROP TABLE " + tableName).Error
|
||||
} else {
|
||||
return global.GVA_DB.Exec("DROP TABLE " + tableName).Error
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user