fix
zhangqian
2024-03-26 3e2e0ba01b514a55e09eb088300967f14f163688
fix
2个文件已修改
7 ■■■■ 已修改文件
controllers/location.go 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/warehouse.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/location.go
@@ -103,7 +103,10 @@
                tree = append(tree, location)
                continue
            }
            m[location.ParentId].Children = make([]*models.Location, 0)
            if m[location.ParentId].Children == nil {
                m[location.ParentId].Children = make([]*models.Location, 0)
            }
            m[location.ParentId].Children = append(m[location.ParentId].Children, location)
        }
    }
models/warehouse.go
@@ -25,7 +25,7 @@
        Address                string       `json:"address" gorm:"type:varchar(512);comment:地址"`         //地址
        InboundTransportation  int          `json:"inboundTransportation" gorm:"type:int;comment:入向运输"`  //入向运输
        OutboundTransportation int          `json:"outboundTransportation" gorm:"type:int;comment:出库运输"` //出库运输
        LocationId             int          `json:"locationId" gorm:"type:int;comment:位置id"`             //位置id
        LocationId             int          `json:"locationId" gorm:"type:int;comment:位置id"`             //默认位置id
        WarehouseLocation      string       `json:"warehouseLocation" gorm:"-"`                          //库存位置
        Contacts               string       `json:"contacts" gorm:"type:varchar(255);comment:联系人"`       //联系人
    }