liujiandao
2023-11-03 4a9bc4b7c84985047c7ebe0b991e8c8364bb56a2
models/db.go
@@ -81,10 +81,11 @@
      Operation{},
      OperationDetails{},
      Scrap{},
      MoveHistory{},
      //Product{},
      ProductCategory{},
      Material{},
      LocationProduct{},
      LocationProductAmount{},
      ReorderRule{},
   )
   return err
}
@@ -96,6 +97,7 @@
func InsertDefaultData() {
   models := []interface{}{
      NewDepartmentSearch(),
      NewLocationSearch(),
   }
   for _, model := range models {
      if id, ok := model.(InitDefaultData); ok {