| | |
| | | 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) |
| | | } |
| | | } |
| | |
| | | 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:联系人"` //联系人 |
| | | } |