jiangshuai
2023-11-24 24ea241d02de6abf9d18f305af64844b4eb6f610
修改movehistory表结构bug
1个文件已修改
30 ■■■■ 已修改文件
models/move_history.go 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/move_history.go
@@ -13,21 +13,21 @@
    MoveHistory struct {
        WmsModel
        Id                int                        `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
        Number            string                     `json:"number" gorm:"column:number;type:varchar(255)"`                  //单号
        BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:基础作业类型"`  //基础作业类型
        OperationTypeId   int                        `json:"operationTypeId" gorm:"type:int;not null;comment:作业类型id"`        //作业类型id
        OperationTypeName string                     `json:"operationTypeName" gorm:"type:int;not null;comment:作业类型名称"`      //作业类型名称
        OperationId       int                        `json:"operationRecordId" gorm:"type:int;not null;comment:操作id"`        //操作id
        ProductId         int                        `json:"productId" gorm:"type:int;not null;comment:产品id"`                //产品id
        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            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
        ToLocation        string                     `json:"toLocation"    gorm:"type:varchar(255);not null;comment:目标位置"`   //目标位置
        Operator          string                     `json:"operator"    gorm:"type:varchar(255);not null;comment:操作者"`      //操作者
        Number            string                     `json:"number" gorm:"column:number;type:varchar(255)"`                      //单号
        BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"type:tinyint;not null;comment:基础作业类型"`      //基础作业类型
        OperationTypeId   int                        `json:"operationTypeId" gorm:"type:int;not null;comment:作业类型id"`            //作业类型id
        OperationTypeName string                     `json:"operationTypeName" gorm:"type:varchar(127);not null;comment:作业类型名称"` //作业类型名称
        OperationId       int                        `json:"operationRecordId" gorm:"type:int;not null;comment:操作id"`            //操作id
        ProductId         int                        `json:"productId" gorm:"type:int;not null;comment:产品id"`                    //产品id
        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            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
        ToLocation        string                     `json:"toLocation"    gorm:"type:varchar(255);not null;comment:目标位置"`       //目标位置
        Operator          string                     `json:"operator"    gorm:"type:varchar(255);not null;comment:操作者"`          //操作者
    }
    MoveHistorySearch struct {