Code generation changed to physical deletion

This commit is contained in:
zhangwenjian committed 2020-05-09 14:50:39 +08:00
1 parent 99e038cb35
commit 429bc5fb18
1 file changed
+1 -1
+1 -1
View File
@@ -144,7 +144,7 @@ func (e *SysTables) Delete() (success bool, err error) {
}
func (e *SysTables) BatchDelete(id []int) (Result bool, err error) {
if err = orm.Eloquent.Table(e.TableName()).Where(" table_id in (?)", id).Delete(&SysColumns{}).Error; err != nil {
if err = orm.Eloquent.Unscoped().Table(e.TableName()).Where(" table_id in (?)", id).Delete(&SysColumns{}).Error; err != nil {
return
}
Result = true