mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-03 21:26:35 +08:00
refactor: base.repo与app重构优化
This commit is contained in:
@@ -58,7 +58,7 @@ func addJob[T entity.DbJob](ctx context.Context, repo dbJobBaseImpl[T], jobs any
|
||||
}
|
||||
|
||||
var res []string
|
||||
err := db.Model(repo.GetModel()).Select("db_name").
|
||||
err := db.Model(repo.NewModel()).Select("db_name").
|
||||
Where("db_instance_id = ?", instanceId).
|
||||
Where("db_name in ?", dbNames).
|
||||
Where("repeated = true").
|
||||
|
||||
Reference in New Issue
Block a user