Skip to content

Commit

Permalink
fix: 自动化代码回滚后不可复用的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Nov 17, 2024
1 parent b954457 commit 4671013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service/system/auto_code_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *autoCodeHistory) First(ctx context.Context, info common.GetById) (strin
// Author [songzhibin97](https://github.com/songzhibin97)
func (s *autoCodeHistory) Repeat(businessDB, structName, abbreviation, Package string) bool {
var count int64
global.GVA_DB.Model(&model.SysAutoCodeHistory{}).Where("business_db = ? and (struct_name = ? OR abbreviation = ?) and package = ?", businessDB, structName, abbreviation, Package).Count(&count).Debug()
global.GVA_DB.Model(&model.SysAutoCodeHistory{}).Where("business_db = ? and (struct_name = ? OR abbreviation = ?) and package = ? and flag = ?", businessDB, structName, abbreviation, Package, 0).Count(&count).Debug()
return count > 0
}

Expand Down

0 comments on commit 4671013

Please sign in to comment.