修复模版生成bug

关联表
新增字段选择
This commit is contained in:
linwenxiang committed 2020-09-16 20:59:53 +08:00
1 parent 50464dc6e6
commit 21d217c42a
3 files changed
+43 -12

No files matched your search

+7
View File
@@ -141,6 +141,13 @@ func GenCodeV2(c *gin.Context) {
tools2.HasError(err, "", -1)
table.TableId = id
tab, _ := table.Get()
//for i := range tab.Columns {
// if tab.Columns[i].IsInsert == "1" {
// tab.Columns[i].IsInsert = "true"
// continue
// }
// tab.Columns[i].IsInsert = "false"
//}
if tab.IsActions == 1 {
ActionsGen(tab)