lishihai
2024-07-04 a1a9aed81231a1685e3a615b07712bd94b1c98e4
models/operation.go
@@ -95,6 +95,12 @@
   return &OperationSearch{Orm: mysqlx.GetDB()}
}
func (slf *OperationSearch) BeforeCreate(tx *gorm.DB) {
   for k := range slf.Details {
      slf.Details[k].BaseOperationType = slf.BaseOperationType
   }
}
func (slf *OperationSearch) SetOrm(tx *gorm.DB) *OperationSearch {
   slf.Orm = tx
   return slf