jiangshuai
2024-01-05 e9439d34d4fad9a4133f573d4bd5f84d441300b7
调拨增加仓库位置
2个文件已修改
4 ■■■■ 已修改文件
models/operation.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
request/operation.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/operation.go
@@ -45,6 +45,8 @@
        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
@@ -29,6 +29,7 @@
    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
    ToLocationId      int                 `json:"toLocationId"    gorm:"type:int;not null;comment:仓库位置id"` //目标位置id
}
type OperationDetails struct {
@@ -74,6 +75,7 @@
    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
    ToLocationId      int                        `json:"toLocationId"    gorm:"type:int;not null;comment:仓库位置id"` //目标位置id
}
type OperationAllList struct {