model/work_order.go
@@ -3,13 +3,13 @@ import ( "apsClient/pkg/sqlitex" "fmt" "github.com/jinzhu/gorm" "github.com/shopspring/decimal" "gorm.io/gorm" ) type ( Order struct { gorm.Model `json:"-"` gorm.Model WorkOrderID string `gorm:"index;type:varchar(191);not null;comment:工单ID" json:"workOrderId"` OrderID string `gorm:"index;type:varchar(191);not null;comment:订单ID" json:"orderId"` ProductID string `gorm:"type:varchar(191);comment:产品ID" json:"productId"`