jiangshuai
2023-11-13 8e216cfa89d3bcd6f010376ecb4f2f0e90724ea0
models/db.go
@@ -81,9 +81,13 @@
      Operation{},
      OperationDetails{},
      Scrap{},
      MoveHistory{},
      Product{},
      ProductCategory{},
      Material{},
      LocationProduct{},
      LocationProductAmount{},
      ReorderRule{},
      Attachment{},
      LogisticCompany{},
   )
   return err
}
@@ -95,6 +99,7 @@
func InsertDefaultData() {
   models := []interface{}{
      NewDepartmentSearch(),
      NewLocationSearch(),
   }
   for _, model := range models {
      if id, ok := model.(InitDefaultData); ok {