jiangshuai
2024-01-05 e9439d34d4fad9a4133f573d4bd5f84d441300b7
调拨增加仓库位置
2个文件已修改
12 ■■■■■ 已修改文件
models/operation.go 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
request/operation.go 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/operation.go
@@ -43,8 +43,10 @@
        ReceiverPhone string `json:"receiverPhone" gorm:"type:varchar(31);comment:联系电话"`
        ReceiverAddr  string `json:"receiverAddr" gorm:"type:varchar(255);comment:收货地址"`
        LocationID int      `json:"locationID"   gorm:"type:int;not null;comment:源位置id"` //源位置id
        Location   Location `json:"location" gorm:"foreignkey:LocationID;references:Id"` //源位置
        LocationID   int      `json:"locationID"   gorm:"type:int;not null;comment:源位置id"`          //源位置id
        Location     Location `json:"location" gorm:"foreignkey:LocationID;references:Id"`          //源位置
        ToLocationID int      `json:"toLocationId"    gorm:"type:int;not null;comment:仓库位置id"`      //目标位置id
        ToLocation   Location `json:"toLocation"      gorm:"foreignKey:ToLocationID;references:Id"` //目标位置
    }
    OperationSearch struct {
request/operation.go
@@ -28,7 +28,8 @@
    ReceiverName      string              `json:"receiverName" gorm:"type:varchar(31);comment:收货人姓名"`
    ReceiverPhone     string              `json:"receiverPhone" gorm:"type:varchar(31);comment:联系电话"`
    ReceiverAddr      string              `json:"receiverAddr" gorm:"type:varchar(255);comment:收货地址"`
    LocationId        int                 `json:"locationId"   gorm:"type:int;not null;comment:源位置id"` //源位置id
    LocationId        int                 `json:"locationId"   gorm:"type:int;not null;comment:源位置id"`     //源位置id
    ToLocationId      int                 `json:"toLocationId"    gorm:"type:int;not null;comment:仓库位置id"` //目标位置id
}
type OperationDetails struct {
@@ -73,7 +74,8 @@
    ReceiverName      string                     `json:"receiverName" gorm:"type:varchar(31);comment:收货人姓名"`
    ReceiverPhone     string                     `json:"receiverPhone" gorm:"type:varchar(31);comment:联系电话"`
    ReceiverAddr      string                     `json:"receiverAddr" gorm:"type:varchar(255);comment:收货地址"`
    LocationId        int                        `json:"locationId"   gorm:"type:int;not null;comment:源位置id"` //源位置id
    LocationId        int                        `json:"locationId"   gorm:"type:int;not null;comment:源位置id"`     //源位置id
    ToLocationId      int                        `json:"toLocationId"    gorm:"type:int;not null;comment:仓库位置id"` //目标位置id
}
type OperationAllList struct {