jiangshuai
2023-10-19 55bd24a2d654052d4c4c8eb6e7bee244af81d446
models/db.go
@@ -77,6 +77,16 @@
      Warehouse{},
      OperationType{},
      Location{},
      OperationType{},
      Operation{},
      OperationDetails{},
      Scrap{},
      MoveHistory{},
      //Product{},
      ProductCategory{},
      Material{},
      LocationProduct{},
      LocationProductAmount{},
   )
   return err
}
@@ -88,6 +98,7 @@
func InsertDefaultData() {
   models := []interface{}{
      NewDepartmentSearch(),
      NewLocationSearch(),
   }
   for _, model := range models {
      if id, ok := model.(InitDefaultData); ok {