fix:重复生成判断回滚
This commit is contained in:
parent
f0969e09d3
commit
c993e2d070
|
@ -25,7 +25,7 @@ var AutoCodeHistoryServiceApp = new(AutoCodeHistoryService)
|
|||
func (autoCodeHistoryService *AutoCodeHistoryService) Repeat(structName string) bool {
|
||||
|
||||
var count int64
|
||||
global.GVA_DB.Model(&system.SysAutoCodeHistory{}).Where("struct_name = ?", structName).Count(&count)
|
||||
global.GVA_DB.Model(&system.SysAutoCodeHistory{}).Where("struct_name = ? and flag = 0", structName).Count(&count)
|
||||
return count > 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue