fix
zhangqian
2023-08-30 03e90032dda5d20d9652c60d7f3d1279ecaddf29
fix
1个文件已修改
2 ■■■■■ 已修改文件
model/salesReturn.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/salesReturn.go
@@ -16,6 +16,7 @@
        Client              Client                         `json:"client" gorm:"foreignKey:ClientId"`
        SourceType          constvar.SalesReturnSourceType `gorm:"source_type" json:"sourceType"` // 源单类型(1销售明细)
        SourceId            int                            `gorm:"source_id" json:"sourceId"`     // 源单id
        Source              SalesDetails                   `gorm:"foreignKey:SourceId" json:"Source"`
        Number              string                         `json:"number" gorm:"column:number;type:varchar(255);comment:退货单号"`
        Repository          string                         `json:"repository" gorm:"column:repository;type:varchar(255);comment:仓库"`
        MemberId            int                            `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
@@ -73,6 +74,7 @@
    if slf.Preload {
        db = db.Preload("Client").
            Preload("Member").
            Preload("Source").
            Preload("SalesReturnStatus").
            Preload("Products")
    }