models/move_history.go
@@ -2,7 +2,7 @@
import (
   "fmt"
   "google.golang.org/genproto/googleapis/type/decimal"
   "github.com/shopspring/decimal"
   "gorm.io/gorm"
   "wms/constvar"
   "wms/pkg/mysqlx"
@@ -22,7 +22,7 @@
      ProductName       string                     `json:"productName" gorm:"type:varchar(255);not null;comment:产品名称"`     //产品名称
      Amount            decimal.Decimal            `json:"amount" gorm:"type:decimal(20,2);not null;comment:数量"`           //数量
      Unit              string                     `json:"unit" gorm:"type:char(10);not null;comment:单位"`                  //单位
      Weight            string                     `json:"weight" gorm:"type:decimal(20,2);not null;comment:重量"`           //重量
      Weight            decimal.Decimal            `json:"weight" gorm:"type:decimal(20,2);not null;comment:重量"`           //重量
      FromLocationId    int                        `json:"fromLocationId"   gorm:"type:int;not null;comment:源位置id"`        //源位置id
      FromLocation      string                     `json:"fromLocation"     gorm:"type:varchar(255);not null;comment:源位置"` //源位置
      ToLocationId      int                        `json:"toLocationId"  gorm:"type:int;not null;comment:目标位置id"`          //目标位置id